Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.xerces.utils.regex
Class REUtil  view REUtil download REUtil.java

java.lang.Object
  extended byorg.apache.xerces.utils.regex.REUtil

public final class REUtil
extends java.lang.Object


Field Summary
(package private) static int CACHESIZE
           
(package private) static RegularExpression[] regexCache
           
 
Constructor Summary
private REUtil()
           
 
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
 

Field Detail

CACHESIZE

static final int CACHESIZE
See Also:
Constant Field Values

regexCache

static RegularExpression[] regexCache
Constructor Detail

REUtil

private REUtil()
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

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.


matches

public static boolean matches(java.lang.String regex,
                              java.lang.String target)
                       throws ParseException

matches

public static boolean matches(java.lang.String regex,
                              java.lang.String options,
                              java.lang.String target)
                       throws ParseException

quoteMeta

public static java.lang.String quoteMeta(java.lang.String literal)

dumpString

static void dumpString(java.lang.String v)