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