org.enhydra.apache.xerces.utils.regex
Class REUtil
java.lang.Object
|
+--org.enhydra.apache.xerces.utils.regex.REUtil
- public final class REUtil
- extends java.lang.Object
Method Summary |
(package private) static int |
composeFromSurrogates(int high,
int low)
|
(package private) static java.lang.String |
createOptionString(int options)
|
static RegularExpression |
createRegex(java.lang.String pattern,
java.lang.String options)
Creates a RegularExpression instance. |
(package private) static java.lang.String |
decomposeToSurrogates(int ch)
|
(package private) static void |
dumpString(java.lang.String v)
|
(package private) static int |
getOptionValue(int ch)
|
(package private) static boolean |
isHighSurrogate(int ch)
|
(package private) static boolean |
isLowSurrogate(int ch)
|
static void |
main(java.lang.String[] argv)
Sample entry. |
static boolean |
matches(java.lang.String regex,
java.lang.String target)
|
static boolean |
matches(java.lang.String regex,
java.lang.String options,
java.lang.String target)
|
(package private) static int |
parseOptions(java.lang.String opts)
|
static java.lang.String |
quoteMeta(java.lang.String literal)
|
(package private) static java.lang.String |
stripExtendedComment(java.lang.String regex)
|
(package private) static java.lang.String |
substring(java.text.CharacterIterator iterator,
int begin,
int end)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHESIZE
static final int CACHESIZE
- See Also:
- Constant Field Values
regexCache
static RegularExpression[] regexCache
composeFromSurrogates
static final int composeFromSurrogates(int high,
int low)
isLowSurrogate
static final boolean isLowSurrogate(int ch)
isHighSurrogate
static final boolean isHighSurrogate(int ch)
decomposeToSurrogates
static final java.lang.String decomposeToSurrogates(int ch)
substring
static final java.lang.String substring(java.text.CharacterIterator iterator,
int begin,
int end)
getOptionValue
static final int getOptionValue(int ch)
parseOptions
static final int parseOptions(java.lang.String opts)
throws ParseException
ParseException
createOptionString
static final java.lang.String createOptionString(int options)
stripExtendedComment
static java.lang.String stripExtendedComment(java.lang.String regex)
main
public static void main(java.lang.String[] argv)
- Sample entry.
Usage: org.enhydra.apache.xerces.utils.regex.REUtil <regex> <string>
createRegex
public static RegularExpression createRegex(java.lang.String pattern,
java.lang.String options)
throws ParseException
- Creates a RegularExpression instance.
This method caches created instances.
ParseException
- See Also:
RegularExpression.RegularExpression(java.lang.String, java.lang.String)
matches
public static boolean matches(java.lang.String regex,
java.lang.String target)
throws ParseException
ParseException
- See Also:
RegularExpression.matches(java.lang.String)
matches
public static boolean matches(java.lang.String regex,
java.lang.String options,
java.lang.String target)
throws ParseException
ParseException
- See Also:
RegularExpression.matches(java.lang.String)
quoteMeta
public static java.lang.String quoteMeta(java.lang.String literal)
dumpString
static void dumpString(java.lang.String v)
Copyright © 1999 The Apache Software Foundation. All Rights reserved.