summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-11-18 17:22:45 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-11-18 17:22:45 +0000
commit0b15034e505de05cfe04a017abccf3f330fe6d97 (patch)
tree8a5c1b84512782af6145f1c24f14119b54e4cc76 /gnu
parent6db23fc1255d12434b5b2c00fa47ae53ff877e19 (diff)
downloadclasspath-0b15034e505de05cfe04a017abccf3f330fe6d97.tar.gz
2006-11-13 Andrew John Hughes <gnu_andrew@member.fsf.org>
* gnu/java/util/regex/RETokenNamedProperty.java: (getHandler(String)): Add support for 'all'.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/java/util/regex/RETokenNamedProperty.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/java/util/regex/RETokenNamedProperty.java b/gnu/java/util/regex/RETokenNamedProperty.java
index a286c5be8..aec27583a 100644
--- a/gnu/java/util/regex/RETokenNamedProperty.java
+++ b/gnu/java/util/regex/RETokenNamedProperty.java
@@ -260,6 +260,14 @@ final class RETokenNamedProperty extends REToken {
return new UnicodeCategoryHandler(Character.UNASSIGNED);
if (name.equals("Lu"))
return new UnicodeCategoryHandler(Character.UPPERCASE_LETTER);
+ if (name.equals("all"))
+ return new Handler()
+ {
+ public boolean includes(char c)
+ {
+ return true;
+ }
+ };
throw new REException("unsupported name " + name, REException.REG_ESCAPE, 0);
}