org.enhydra.apache.xerces.utils.regex
Class REUtil

java.lang.Object
  |
  +--org.enhydra.apache.xerces.utils.regex.REUtil

public final class REUtil
extends Object


Field Summary
(package private) static int CACHESIZE
           
(package private) static RegularExpression[] regexCache
           
 
Method Summary
(package private) static int composeFromSurrogates(int high, int low)
           
(package private) static String createOptionString(int options)
           
static RegularExpression createRegex(String pattern, String options)
          Creates a RegularExpression instance.
(package private) static String decomposeToSurrogates(int ch)
           
(package private) static void dumpString(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(String[] argv)
          Sample entry.
static boolean matches(String regex, String target)
           
static boolean matches(String regex, String options, String target)
           
(package private) static int parseOptions(String opts)
           
static String quoteMeta(String literal)
           
(package private) static String stripExtendedComment(String regex)
           
(package private) static String substring(CharacterIterator iterator, int begin, int end)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHESIZE

static final int CACHESIZE

regexCache

static 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 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.