* java/text/SimpleDateFormat.java (compileFormat):
isLowerCase() and isUpperCase() allow too many characters.
Just use >= 'A' && <= 'Z' || >= 'a' && <= 'z'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74188
138bc75d-0d04-0410-961f-
82ee72b054a4
+2003-12-02 Ito Kazumitsu <kaz@maczuka.gcd.org>
+
+ * java/text/SimpleDateFormat.java (compileFormat):
+ isLowerCase() and isUpperCase() allow too many characters.
+ Just use >= 'A' && <= 'Z' || >= 'a' && <= 'z'.
+
2003-12-02 Dalibor Topic <robilad@kaffe.org>
* java/text/FieldPosition.java (equals): Fixed comment.
field = formatData.getLocalPatternChars().indexOf(thisChar);
if (field == -1) {
current = null;
- if (Character.isLowerCase (thisChar)
- || Character.isUpperCase (thisChar)) {
+ if ((thisChar >= 'A' && thisChar <= 'Z')
+ || (thisChar >= 'a' && thisChar <= 'z')) {
// Not a valid letter
tokens.add(new FieldSizePair(-1,0));
} else if (thisChar == '\'') {