[Mulgara-svn] r1088 - trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa
pag at mulgara.org
pag at mulgara.org
Thu Jul 17 16:17:02 UTC 2008
Author: pag
Date: 2008-07-17 09:17:01 -0700 (Thu, 17 Jul 2008)
New Revision: 1088
Modified:
trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPStringImpl.java
Log:
Fixed ascii tests on the language code
Modified: trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPStringImpl.java
===================================================================
--- trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPStringImpl.java 2008-07-16 22:14:26 UTC (rev 1087)
+++ trunk/src/jar/store-stringpool/java/org/mulgara/store/stringpool/xa/SPStringImpl.java 2008-07-17 16:17:01 UTC (rev 1088)
@@ -228,7 +228,7 @@
* @return <code>true</code> if the character meets the pattern [a-zA-Z0-9]
*/
private static boolean isAsciiLetterDigit(char c) {
- return (c > 'A' && c < 'Z') || (c > 'a' && c < 'z') || (c > '0' && c < '9');
+ return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9');
}
/**
@@ -237,7 +237,7 @@
* @return <code>true</code> if the character meets the pattern [a-zA-Z]
*/
private static boolean isAsciiLetter(char c) {
- return (c > 'A' && c < 'Z') || (c > 'a' && c < 'z');
+ return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
}
}
More information about the Mulgara-svn
mailing list