Package com.sun.msv.datatype.regexp
Class REUtil
- java.lang.Object
-
- com.sun.msv.datatype.regexp.REUtil
-
final class REUtil extends java.lang.Object
- Version:
- REUtil.java,v 1.7 2002/11/20 00:49:47 twl Exp
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
CACHESIZE
(package private) static RegularExpression[]
regexCache
-
Constructor Summary
Constructors Modifier Constructor Description private
REUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (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)
-
-
-
Field Detail
-
CACHESIZE
static final int CACHESIZE
- See Also:
- Constant Field Values
-
regexCache
static final RegularExpression[] regexCache
-
-
Method Detail
-
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
- Throws:
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.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.- Throws:
ParseException
- See Also:
RegularExpression(java.lang.String, java.lang.String)
-
matches
public static boolean matches(java.lang.String regex, java.lang.String target) throws ParseException
- Throws:
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
- Throws:
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)
-
-