Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2012-09-20 13:12:01 +0000
committerThomas Watson2012-09-20 14:08:04 +0000
commit0a18aee6699903748b81fadeffc92b88aee0d444 (patch)
tree0108f925dfaa58876645d9778a0b83ba85d22f80 /bundles/org.eclipse.osgi/supplement
parentb5efc532bd6588376fd61371ab42e5ea44d7991c (diff)
downloadrt.equinox.framework-0a18aee6699903748b81fadeffc92b88aee0d444.tar.gz
rt.equinox.framework-0a18aee6699903748b81fadeffc92b88aee0d444.tar.xz
rt.equinox.framework-0a18aee6699903748b81fadeffc92b88aee0d444.zip
Use fuzzy compare ~= to match and do not lower case the attribute values for native code.
Diffstat (limited to 'bundles/org.eclipse.osgi/supplement')
-rw-r--r--bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/internal/core/Tokenizer.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/internal/core/Tokenizer.java b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/internal/core/Tokenizer.java
index 2cbf602d9..33310209a 100644
--- a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/internal/core/Tokenizer.java
+++ b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/internal/core/Tokenizer.java
@@ -110,7 +110,6 @@ public class Tokenizer {
StringBuffer sb = new StringBuffer();
cur++; /* skip quote */
char c = '\0';
- int begin = cur;
for (; cur < max; cur++) {
c = val[cur];
// this is an escaped char
@@ -126,19 +125,18 @@ public class Tokenizer {
}
sb.append(c);
}
- int count = cur - begin;
+
if (c == '\"') {
cur++;
- }
+ } // TODO else error; no closing quote?
+
cursor = cur;
- if (count > 0) {
- skipWhiteSpace();
- return sb.toString();
- }
- } else /* not a quoted string; same as token */
- {
- return getToken(terminals);
+ skipWhiteSpace();
+ return sb.toString();
+
}
+ /* not a quoted string; same as token */
+ return getToken(terminals);
}
return (null);
}

Back to the top