Top Fields Constructors Methods
com.sun.msv.datatype.regexp

pack-priv final Class REUtil

extends Object
Class Inheritance
Imports
java.text.CharacterIterator

Version
REUtil.java,v 1.7 2002/11/20 00:49:47 twl Exp

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final RegularExpression[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static final int
composeFromSurrogates(int high, int low)

pack-priv static final String
createOptionString(int options)

public static RegularExpression
createRegex(String pattern, String options)

Creates a RegularExpression instance.

pack-priv static final String
pack-priv static void
pack-priv static final int
pack-priv static final boolean
pack-priv static final boolean
public static void
main(String[] argv)

Sample entry.

public static boolean
matches(String regex, String target)

public static boolean
matches(String regex, String options, String target)

pack-priv static final int
public static String
quoteMeta(String literal)

pack-priv static String
pack-priv static final String
substring(CharacterIterator iterator, int begin, int end)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CACHESIZEback to summary
pack-priv static final int CACHESIZE
regexCacheback to summary
pack-priv static final RegularExpression[] regexCache

Constructor Detail

REUtilback to summary
private REUtil()

Method Detail

composeFromSurrogatesback to summary
pack-priv static final int composeFromSurrogates(int high, int low)
createOptionStringback to summary
pack-priv static final String createOptionString(int options)
createRegexback to summary
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)
decomposeToSurrogatesback to summary
pack-priv static final String decomposeToSurrogates(int ch)
dumpStringback to summary
pack-priv static void dumpString(String v)
getOptionValueback to summary
pack-priv static final int getOptionValue(int ch)
isHighSurrogateback to summary
pack-priv static final boolean isHighSurrogate(int ch)
isLowSurrogateback to summary
pack-priv static final boolean isLowSurrogate(int ch)
mainback to summary
public static void main(String[] argv)

Sample entry.

Usage: org.apache.xerces.utils.regex.REUtil <regex> <string>
matchesback to summary
public static boolean matches(String regex, String target) throws ParseException
See Also
RegularExpression#matches(java.lang.String)
matchesback to summary
public static boolean matches(String regex, String options, String target) throws ParseException
See Also
RegularExpression#matches(java.lang.String)
parseOptionsback to summary
pack-priv static final int parseOptions(String opts) throws ParseException
quoteMetaback to summary
public static String quoteMeta(String literal)
stripExtendedCommentback to summary
pack-priv static String stripExtendedComment(String regex)
substringback to summary
pack-priv static final String substring(CharacterIterator iterator, int begin, int end)