A B C D E F G H I J K L M N O P Q R S T U V W

A

accept(File, String) - Method in class com.stevesoft.pat.Regex
This method implements FilenameFilter, allowing one to use a Regex to search through a directory using File.list.
accept(File, String) - Method in class com.stevesoft.pat.FileRegex
This is the method required by FileNameFilter.
action(Event, Object) - Method in class com.stevesoft.pat.apps.ReGap
 
action(Event, Object) - Method in class com.stevesoft.pat.apps.Message
This action will dispose of this graphics object and deliver whatever action event it receives to the component object supplied by the ask method.
action(Event, Object) - Method in class com.stevesoft.pat.apps.ReGame
 
add(Color, String) - Method in class com.stevesoft.pat.apps.ColorLine
Add a string s with color c to this line of text.
add(Pattern) - Method in class com.stevesoft.pat.Regex
Only needed for creating your own extensions of Regex.
add(Pattern) - Method in class com.stevesoft.pat.Pattern
add a Pattern to the singly-linked Pattern chain.
add(Regex) - Method in class com.stevesoft.pat.Transformer
Add a new Regex to the set of Regex's.
add(ReplaceRule) - Method in class com.stevesoft.pat.ReplaceRule
 
add(String) - Method in class com.stevesoft.pat.Transformer
Add a new Regex by calling Regex.perlCode
add(String[]) - Method in class com.stevesoft.pat.Transformer
Add an array of Strings (which will be converted to Regex's via the Regex.perlCode method.
addButton(Button) - Method in class com.stevesoft.pat.apps.Message
Add a button to the message with text b.
addCentered(String) - Method in class com.stevesoft.pat.apps.Message
Add a centered line of text to the message.
addColorLine(ColorLine) - Method in class com.stevesoft.pat.apps.ColorText
Add a colored line of text to the ColorText object.
addLeft(String) - Method in class com.stevesoft.pat.apps.Message
Add a left justified line of text to the message.
addRight(String) - Method in class com.stevesoft.pat.apps.Message
Add a right justified line of text to the message.
addRule(ReplaceRule) - Method in class com.stevesoft.pat.ReplaceRule
Add another ReplaceRule to the linked list.
allTokens() - Method in class com.stevesoft.pat.RegexTokenizer
Returns all tokens in the String
AmpersandRule - class com.stevesoft.pat.AmpersandRule.
This implements the $& element of the second argument to Regex.
AmpersandRule() - Constructor for class com.stevesoft.pat.AmpersandRule
 
ans_txt - Variable in class com.stevesoft.pat.apps.ReGame
 
answers - Variable in class com.stevesoft.pat.apps.ReGame
 
append(char) - Method in class com.stevesoft.pat.StringBufferLike
 
append(char) - Method in interface com.stevesoft.pat.BasicStringBufferLike
 
append(char) - Method in class com.stevesoft.pat.wrap.WriterWrap
 
append(char) - Method in class com.stevesoft.pat.wrap.CharArrayBufferWrap
 
append(char) - Method in class com.stevesoft.pat.wrap.StringBufferWrap
 
append(String) - Method in class com.stevesoft.pat.StringBufferLike
 
append(String) - Method in interface com.stevesoft.pat.BasicStringBufferLike
 
append(String) - Method in class com.stevesoft.pat.wrap.WriterWrap
 
append(String) - Method in class com.stevesoft.pat.wrap.CharArrayBufferWrap
 
append(String) - Method in class com.stevesoft.pat.wrap.StringBufferWrap
 
apply(Regex) - Method in class com.stevesoft.pat.Replacer
Another form of apply, it is the same as apply(r,r.getReplaceRule()).
apply(RegRes, ReplaceRule) - Method in class com.stevesoft.pat.Replacer
This method allows you to apply the results of several matches in a sequence to modify a String of text.
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.ReplaceRule
This function appends to the StringBufferLike the text you want to replaced the portion of the String last matched.
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.SpecialRule
 
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.WantMoreTextReplaceRule
 
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.LeftRule
 
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.AmpersandRule
 
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.PushRule
 
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.StringRule
 
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.BackRefRule
 
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.RightRule
 
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.ChangeRule
 
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.NullRule
 
apply(StringBufferLike, RegRes) - Method in class com.stevesoft.pat.CodeRule
 
apply1(RegRes) - Method in class com.stevesoft.pat.Replacer
 
arg(String) - Method in class com.stevesoft.pat.ReplaceRule
Modified the behavior of a ReplaceRule by supplying an argument.
arg(String) - Method in class com.stevesoft.pat.Validator
 
ask(Component) - Method in class com.stevesoft.pat.apps.Message
Open the window.

B

BackRefRule - class com.stevesoft.pat.BackRefRule.
This method implements the pattern elements $1, $2, etc in a substitution rule.
BackRefRule(int) - Constructor for class com.stevesoft.pat.BackRefRule
 
BasicStringBufferLike - interface com.stevesoft.pat.BasicStringBufferLike.
An abstraction of the StringBuffer which only implements a subset of StringBuffer's methods.
Bits - class com.stevesoft.pat.Bits.
 
bn - Variable in class com.stevesoft.pat.apps.ReGap
 

C

c - Variable in class com.stevesoft.pat.apps.Message
 
CaseMgr - class com.stevesoft.pat.CaseMgr.
Encapsulates the Unicode definitions of Upper, Lower, and Title case as defined by unicode.org.
CaseMgr() - Constructor for class com.stevesoft.pat.CaseMgr
 
cbits - Variable in class com.stevesoft.pat.Pthings
The mask to use when dontMatchInQuotes is set.
ChangeRule - class com.stevesoft.pat.ChangeRule.
This class implements user defined special replacement rules of the form ${=name}.
ChangeRule(ChangeRule) - Constructor for class com.stevesoft.pat.ChangeRule
 
ChangeRule(String, Regex) - Constructor for class com.stevesoft.pat.ChangeRule
 
ChangeRule(String, Transformer) - Constructor for class com.stevesoft.pat.ChangeRule
 
CharArrayBufferWrap - class com.stevesoft.pat.wrap.CharArrayBufferWrap.
Allows the outcome of a replaceAll() or replaceFirst() to be an array of characters rather than a String.
CharArrayBufferWrap() - Constructor for class com.stevesoft.pat.wrap.CharArrayBufferWrap
 
CharArrayWrap - class com.stevesoft.pat.wrap.CharArrayWrap.
This provides a wrapper for a char array so that it can be searched by Regex.
CharArrayWrap(char[]) - Constructor for class com.stevesoft.pat.wrap.CharArrayWrap
 
charAt(int) - Method in class com.stevesoft.pat.RegexWriter
The character at location i in the StringBuffer.
charAt(int) - Method in interface com.stevesoft.pat.StringLike
 
charAt(int) - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
charAt(int) - Method in class com.stevesoft.pat.wrap.CharArrayWrap
 
charAt(int) - Method in class com.stevesoft.pat.wrap.StringWrap
 
charsMatched_ - Variable in class com.stevesoft.pat.RegRes
 
charsMatched() - Method in class com.stevesoft.pat.RegRes
After a successful match, this returns the number of characters in the match, or -1 if the match failed.
charsMatched(int) - Method in class com.stevesoft.pat.RegRes
Obtains the number of characters matched by backreference i, or -1 if backreference i was not matched.
clear() - Method in class com.stevesoft.pat.apps.ColorText
Remove all lines of text from ColorText object.
clone() - Method in class com.stevesoft.pat.RegRes
 
clone() - Method in class com.stevesoft.pat.Regex
A clone by any other name would smell as sweet.
clone() - Method in class com.stevesoft.pat.ReplaceRule
 
clone() - Method in class com.stevesoft.pat.Replacer
 
clone() - Method in class com.stevesoft.pat.apps.TestGroup
 
clone() - Method in class com.stevesoft.pat.apps.ColorLine
 
clone() - Method in class com.stevesoft.pat.apps.ColorText
 
clone1() - Method in class com.stevesoft.pat.ReplaceRule
A rule describing how to clone only the current ReplaceRule, and none of the others in this linked list.
clone1() - Method in class com.stevesoft.pat.PushRule
 
clone1() - Method in class com.stevesoft.pat.StringRule
 
clone1() - Method in class com.stevesoft.pat.BackRefRule
 
clone1() - Method in class com.stevesoft.pat.ChangeRule
 
close() - Method in class com.stevesoft.pat.RegexReader
 
close() - Method in class com.stevesoft.pat.RegexWriter
 
cmap - Static variable in class com.stevesoft.pat.Ctrl
 
CodeRule - class com.stevesoft.pat.CodeRule.
Implements the rules for \U, \L, \E, \Q in substitutions.
CodeRule() - Constructor for class com.stevesoft.pat.CodeRule
 
CodeRule(char) - Constructor for class com.stevesoft.pat.CodeRule
 
ColorLine - class com.stevesoft.pat.apps.ColorLine.
 
ColorLine() - Constructor for class com.stevesoft.pat.apps.ColorLine
 
ColorText - class com.stevesoft.pat.apps.ColorText.
This is a simple class whose only purpose is to display text with colors.
ColorText() - Constructor for class com.stevesoft.pat.apps.ColorText
 
com.stevesoft.pat - package com.stevesoft.pat
 
com.stevesoft.pat.apps - package com.stevesoft.pat.apps
 
com.stevesoft.pat.wrap - package com.stevesoft.pat.wrap
 
compile(String) - Method in class com.stevesoft.pat.Regex
This method compiles a regular expression, making it possible to call the search or matchAt methods.
compile(String) - Method in class com.stevesoft.pat.FileRegex
Compile a new pattern.
compile1(StrPos, Rthings) - Method in class com.stevesoft.pat.Regex
You only need to use this method if you are creating your own extentions to Regex.
copyOutOf(RegRes) - Method in class com.stevesoft.pat.RegRes
 
countMaxChars() - Method in class com.stevesoft.pat.Regex
You only need to know about this if you are inventing your own pattern elements.
countMaxChars() - Method in class com.stevesoft.pat.Pattern
return maximum number of characters in pattern
countMinChars() - Method in class com.stevesoft.pat.Regex
You only need to know about this if you are inventing your own pattern elements.
countMinChars() - Method in class com.stevesoft.pat.Pattern
return minimum number of characters in pattern
countTokens() - Method in class com.stevesoft.pat.RegexTokenizer
Determines the # of remaining tokens
Ctrl - class com.stevesoft.pat.Ctrl.
 
Ctrl() - Constructor for class com.stevesoft.pat.Ctrl
 
ctxt - Variable in class com.stevesoft.pat.apps.TestGroup
 
currency - Static variable in class com.stevesoft.pat.Bits
 

D

dec() - Method in class com.stevesoft.pat.patInt
Decrement the value of this by 1.
decimal_digit - Static variable in class com.stevesoft.pat.Bits
 
Deck - class com.stevesoft.pat.apps.Deck.
An interface to java.util.Random which simulates a deck of "cards." Actually, it just supplies random numbers from 0 to ncards()-1 without ever repeating a number.
Deck(int) - Constructor for class com.stevesoft.pat.apps.Deck
Initialize the size of the deck.
define(String, Regex) - Static method in class com.stevesoft.pat.ReplaceRule
 
define(String, ReplaceRule) - Static method in class com.stevesoft.pat.ReplaceRule
 
define(String, String) - Static method in class com.stevesoft.pat.Regex
Defines a shorthand for a pattern.
define(String, String, Validator) - Static method in class com.stevesoft.pat.Regex
Defines a method to create a new rule.
define(String, Transformer) - Static method in class com.stevesoft.pat.ReplaceRule
 
didMatch_ - Variable in class com.stevesoft.pat.RegRes
 
didMatch() - Method in class com.stevesoft.pat.RegRes
Contains true if the last match was successful.
DirFileRegex - class com.stevesoft.pat.DirFileRegex.
This class is just like FileRegex, except that its accept method only returns true if the file matching the pattern is a directory.
DirFileRegex() - Constructor for class com.stevesoft.pat.DirFileRegex
 
DirFileRegex(String) - Constructor for class com.stevesoft.pat.DirFileRegex
 
discard(int) - Method in class com.stevesoft.pat.apps.Deck
 
doFile(String) - Static method in class com.stevesoft.pat.apps.java2html
 
dontMatchInQuotes - Variable in class com.stevesoft.pat.Rthings
Needed in case (?Q) is encountered, to pass back the message that dontMatchInQuotes should be set.
dotDoesntMatchCR - Static variable in class com.stevesoft.pat.Regex
Set this to change the default behavior of the "." pattern.
dotDoesntMatchCR - Variable in class com.stevesoft.pat.Pthings
Used to set the behavior of "." By default, it now fails to match the '\n' character.
draw() - Method in class com.stevesoft.pat.apps.Deck
 
dup(StrPos) - Method in class com.stevesoft.pat.StrPos
copy a StrPos from sp to this.

E

eos() - Method in class com.stevesoft.pat.StrPos
tell whether we are at end of string
equals(Object) - Method in class com.stevesoft.pat.Regex
 
equals(Object) - Method in class com.stevesoft.pat.Pattern
 
equals(patInt) - Method in class com.stevesoft.pat.patInt
Test to see if two patterns are equal.
equals(RegRes) - Method in class com.stevesoft.pat.RegRes
 
esc - Variable in class com.stevesoft.pat.Regex
By default, the escape character is the backslash, but you can make it anything you want by setting this variable.
esc - Variable in class com.stevesoft.pat.StrPos
This contains the escape character, which is \ by default.
ESC - Static variable in class com.stevesoft.pat.Pattern
The ESC character, the user can provide his own value for the escape character through regex.esc
escaped() - Method in class com.stevesoft.pat.StrPos
Returns true if the current character is escaped (preceeded by "\").
escMatch(char) - Method in class com.stevesoft.pat.StrPos
As match, but only matches if the character is escaped.

F

FastBracket - class com.stevesoft.pat.FastBracket.
Uses table lookup to match [] type constructs, but only if it can use a lookup table 256 bits in size.
FileRegex - class com.stevesoft.pat.FileRegex.
This class is a different form of Regex designed to work more like the file matching utility of a Unix shell.
FileRegex() - Constructor for class com.stevesoft.pat.FileRegex
Build an unitialized FileRegex.
FileRegex(String) - Constructor for class com.stevesoft.pat.FileRegex
Build a FileRegex form String s.
find(String, int, int) - Method in class com.stevesoft.pat.SkipBMH
 
find(StringLike) - Method in class com.stevesoft.pat.Skip
The same as find(s,0,s.length())
find(StringLike, int, int) - Method in class com.stevesoft.pat.Skip
Searches a given region of text beginning at position start and ending at position end for the skip object.
find(StringLike, int, int) - Method in class com.stevesoft.pat.Skip2
 
find(StringLike, int, int) - Method in class com.stevesoft.pat.SkipBMH
 
finish() - Method in class com.stevesoft.pat.Replacer
This finishes the replacement, appending the right() part of the last RegRes given to substitute(RegRes).
finite() - Method in class com.stevesoft.pat.patInt
Tests to see if this represents an infinite quantity.
flush() - Method in class com.stevesoft.pat.RegexWriter
 

G

get(int) - Method in class com.stevesoft.pat.Bits
 
getBufferSize() - Method in class com.stevesoft.pat.RegexReader
Get the size of the working buffer.
getBufferSize() - Method in class com.stevesoft.pat.RegexWriter
Get the buffer size.
getBufferSize() - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
getCharArray() - Method in class com.stevesoft.pat.wrap.CharArrayWrap
 
getDefaultMFlag() - Static method in class com.stevesoft.pat.Regex
Get the default value of the m flag.
getDontMatchInQuotes() - Method in class com.stevesoft.pat.Regex
Find out if the dontMatchInQuotes flag is enabled.
getEOLchar() - Method in class com.stevesoft.pat.RegexReader
Deprecated.  
getEOLchar() - Method in class com.stevesoft.pat.RegexWriter
Deprecated.  
getGFlag() - Method in class com.stevesoft.pat.Regex
Get the state of the 'g' flag.
getIFlag() - Method in class com.stevesoft.pat.apps.Grep
The ignore case flag
getIgnoreCase() - Method in class com.stevesoft.pat.Regex
Get the state of the ignoreCase flag.
getInterval() - Method in class com.stevesoft.pat.RegexWriter
Get the interval at which regex matches are checked.
getMaxLines() - Method in class com.stevesoft.pat.RegexReader
Deprecated.  
getMaxLines() - Method in class com.stevesoft.pat.RegexWriter
Deprecated.  
getMFlag() - Method in class com.stevesoft.pat.Regex
Get the state of the sFlag
getMinimumSize() - Method in class com.stevesoft.pat.apps.ColorText
 
getNext() - Method in class com.stevesoft.pat.Pattern
This gets the next element of a Pattern that we wish to match.
getOffset() - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
getPatInt() - Method in class com.stevesoft.pat.StrPos
Read in an integer.
getPFlag() - Method in class com.stevesoft.pat.apps.Grep
The paragraph mode flag
getPreferredSize() - Method in class com.stevesoft.pat.apps.ColorText
 
getRegex() - Method in class com.stevesoft.pat.Replacer
 
getRegex() - Method in class com.stevesoft.pat.apps.Grep
The pattern to be searched for
getRegexAt(int) - Method in class com.stevesoft.pat.Transformer
Get the Regex at position i in this Transformer.
getReplacer() - Method in class com.stevesoft.pat.Regex
 
getReplacer() - Method in class com.stevesoft.pat.Transformer
Get a replacer to that works with the current Regex.
getReplaceRule() - Method in class com.stevesoft.pat.Regex
Get the current ReplaceRule.
getSFlag() - Method in class com.stevesoft.pat.Regex
Get the state of the sFlag
getSize(FontMetrics) - Method in class com.stevesoft.pat.apps.ColorLine
 
getString() - Method in class com.stevesoft.pat.RegRes
Obtain the text String that was matched against.
getString() - Method in class com.stevesoft.pat.StrPos
get the string that we are processing.
getStringLike() - Method in class com.stevesoft.pat.RegRes
Obtain the source StringLike object.
getVerbose() - Method in class com.stevesoft.pat.apps.Grep
Determine if file and line number info is written.
getVFlag() - Method in class com.stevesoft.pat.apps.Grep
If the vflag is true, then only lines not matching the supplied pattern will be printed.
Grep - class com.stevesoft.pat.apps.Grep.
This provides the functionality of the UNIX utility grep.
Grep() - Constructor for class com.stevesoft.pat.apps.Grep
 
guigrep - class com.stevesoft.pat.apps.guigrep.
A graphical-interfaced program to search the contents of files with path names based on the current directory.
guigrep() - Constructor for class com.stevesoft.pat.apps.guigrep
 

H

hasMoreElements() - Method in class com.stevesoft.pat.RegexTokenizer
Tells whether there are more tokens in the pattern.
hasMoreTokens() - Method in class com.stevesoft.pat.RegexTokenizer
Tells whether there are more tokens in the pattern, but in the fashion of StringTokenizer.
home_btn - Variable in class com.stevesoft.pat.apps.ReGame
 

I

ignoreCase - Variable in class com.stevesoft.pat.Pthings
Whether we should ignore the case of letters in this match.
ignoreCase - Variable in class com.stevesoft.pat.Rthings
Needed in case (?i) is encountered, to pass back the message that ignoreCase should be set.
inc() - Method in class com.stevesoft.pat.StrPos
Advance the place where StrPos points within the String.
inc() - Method in class com.stevesoft.pat.patInt
Increment the value of this by 1.
incMatch(String) - Method in class com.stevesoft.pat.StrPos
Increment the string pointer by each character in
indexOf(char) - Method in interface com.stevesoft.pat.StringLike
 
indexOf(char) - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
indexOf(char) - Method in class com.stevesoft.pat.wrap.CharArrayWrap
 
indexOf(char) - Method in class com.stevesoft.pat.wrap.StringWrap
 
init() - Method in class com.stevesoft.pat.apps.ReGap
 
init() - Method in class com.stevesoft.pat.apps.ReGame
 
intValue() - Method in class com.stevesoft.pat.patInt
Converts to a patInt to an int.
isAlphabetic(char) - Static method in class com.stevesoft.pat.Prop
Is this a "Alphabetic" according to Unicode?
isCurrency(char) - Static method in class com.stevesoft.pat.Prop
Is this a "Currency" according to Unicode?
isDecimalDigit(char) - Static method in class com.stevesoft.pat.Prop
Is this a "Decimal Digit" according to Unicode?
isDefined(String) - Static method in class com.stevesoft.pat.Regex
Test to see if a custom defined rule exists.
isDefined(String) - Static method in class com.stevesoft.pat.ReplaceRule
 
isLiteral() - Method in class com.stevesoft.pat.Regex
Checks to see if there are only literal and no special pattern elements in this Regex.
isLiteral() - Method in class com.stevesoft.pat.FileRegex
 
isMath(char) - Static method in class com.stevesoft.pat.Prop
Is this a "Math" according to Unicode?
isPunct(char) - Static method in class com.stevesoft.pat.Prop
Is c a punctuation character according to Unicode?
isSpecial(ReplaceRule) - Method in class com.stevesoft.pat.Replacer
 
isWhite(char) - Static method in class com.stevesoft.pat.Prop
Is c a white space character according to Unicode?

J

java2html - class com.stevesoft.pat.apps.java2html.
java2html makes your code an in-color web page -- to use it just type
java2html() - Constructor for class com.stevesoft.pat.apps.java2html
 

K

Key - class com.stevesoft.pat.Key.
This package provides the method registeredTo() which makes it possible for registered users to disable the startup message.
Key() - Constructor for class com.stevesoft.pat.Key
 

L

lastMatchedTo() - Method in class com.stevesoft.pat.Replacer
 
left() - Method in class com.stevesoft.pat.RegRes
This returns the part of the string that preceeds the match, or null if the match failed.
left(int) - Method in class com.stevesoft.pat.RegRes
This returns the part of the string that follows the ith backreference, or null if the backreference did not match.
LeftRule - class com.stevesoft.pat.LeftRule.
The apply(StringBufferLike sb,RegRes res) method of this derivation of ReplaceRule appends the contents of res.left() to the StringBuffer sb.
LeftRule() - Constructor for class com.stevesoft.pat.LeftRule
 
length() - Method in class com.stevesoft.pat.RegexWriter
The current size of the StringBuffer in use by RegexWriter.
length() - Method in interface com.stevesoft.pat.StringLike
 
length() - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
length() - Method in class com.stevesoft.pat.wrap.CharArrayWrap
 
length() - Method in class com.stevesoft.pat.wrap.CharArrayBufferWrap
 
length() - Method in class com.stevesoft.pat.wrap.StringBufferWrap
 
length() - Method in class com.stevesoft.pat.wrap.StringWrap
 
lessEq(patInt) - Method in class com.stevesoft.pat.patInt
Test to see if this is less than or equal to j.
letter - Static variable in class com.stevesoft.pat.Bits
 
list(String) - Static method in class com.stevesoft.pat.FileRegex
Provides an alternative to File.list -- this separates its argument according to File.pathSeparator.
list(String) - Static method in class com.stevesoft.pat.DirFileRegex
 
list(String) - Static method in class com.stevesoft.pat.NonDirFileRegex
 
lower - Static variable in class com.stevesoft.pat.Bits
 

M

main(String[]) - Static method in class com.stevesoft.pat.RegexWriter
 
main(String[]) - Static method in class com.stevesoft.pat.apps.ReGap
 
main(String[]) - Static method in class com.stevesoft.pat.apps.guigrep
 
main(String[]) - Static method in class com.stevesoft.pat.apps.Pie
 
main(String[]) - Static method in class com.stevesoft.pat.apps.java2html
 
main(String[]) - Static method in class com.stevesoft.pat.apps.Grep
 
main(String[]) - Static method in class com.stevesoft.pat.apps.ReGameDes
 
main(String[]) - Static method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
marks - Variable in class com.stevesoft.pat.RegRes
 
marks - Variable in class com.stevesoft.pat.Pthings
Used to keep track of backreferences.
markSupported() - Method in class com.stevesoft.pat.RegexReader
 
match(char) - Method in class com.stevesoft.pat.StrPos
Compare the (possibly escaped) character pointed to by StrPos.
match(StringLike, Pthings) - Method in class com.stevesoft.pat.Pattern
This can be used to perform a match test from within class Pattern.
matchAt(String, int) - Method in class com.stevesoft.pat.Regex
Attempt to match a Pattern beginning at a specified location within the string.
matchAt(StringLike, int) - Method in class com.stevesoft.pat.Regex
Attempt to match a Pattern beginning at a specified location within the StringLike.
matchAt(StringLike, int, Pthings) - Method in class com.stevesoft.pat.Pattern
This can be used to perform a match test from within class Pattern.
matchedFrom() - Method in class com.stevesoft.pat.RegRes
After a successful match, this returns the location of the first matching character, or -1 if the match failed.
matchedFrom(int) - Method in class com.stevesoft.pat.RegRes
Obtains the position backreference number i begins to match, or -1 if backreference i was not matched.
matchedTo() - Method in class com.stevesoft.pat.RegRes
This is matchedFrom()+charsMatched() after a successful match, or -1 otherwise.
matchedTo(int) - Method in class com.stevesoft.pat.RegRes
This is either equal to matchedFrom(i)+charsMatched(i) if the match was successful, or -1 if it was not.
matchFrom_ - Variable in class com.stevesoft.pat.RegRes
 
matchFrom() - Method in class com.stevesoft.pat.RegRes
An older name for matchedFrom.
matchFrom(int) - Method in class com.stevesoft.pat.RegRes
An older name for matchedFrom.
matchInternal(int, Pthings) - Method in class com.stevesoft.pat.Pattern
The interal match function, it must be provided by any class which wishes to extend Pattern.
matchInternal(int, Pthings) - Method in class com.stevesoft.pat.NoPattern
 
matchInternal(int, Pthings) - Method in class com.stevesoft.pat.FastBracket
 
math - Static variable in class com.stevesoft.pat.Bits
 
maxChars() - Method in class com.stevesoft.pat.Pattern
The maximum number of characters which this pattern element can match.
maxChars() - Method in class com.stevesoft.pat.Validator
For optimization it is helpful, but not necessary, that you define the maximum number of characters this validator will allow to match.
maxeq(patInt) - Method in class com.stevesoft.pat.patInt
If the argument p has a greater than this, then set this object equal to p.
mes - Variable in class com.stevesoft.pat.apps.ReGame
 
Message - class com.stevesoft.pat.apps.Message.
A simply class for making a message box with arbitrary text inside it.
Message() - Constructor for class com.stevesoft.pat.apps.Message
 
mFlag - Variable in class com.stevesoft.pat.Pthings
 
minChars() - Method in class com.stevesoft.pat.Pattern
The minimum number of characters which this pattern element can match.
minChars() - Method in class com.stevesoft.pat.Validator
For optimization it is helpful, but not necessary, that you define the minimum number of characters this validator will allow to match.
mineq(patInt) - Method in class com.stevesoft.pat.patInt
If the argument p has a smaller value than this, then set this Object equal to p.
mul(patInt) - Method in class com.stevesoft.pat.patInt
Returns a patInt with value equal to the product of the value of p and this.

N

ncards() - Method in class com.stevesoft.pat.apps.Deck
The number of cards remaining in this object.
newStringBufferLike() - Method in interface com.stevesoft.pat.StringLike
By default, the result is put in a String or char[] when a replace is done.
newStringBufferLike() - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
newStringBufferLike() - Method in class com.stevesoft.pat.wrap.CharArrayWrap
 
newStringBufferLike() - Method in class com.stevesoft.pat.wrap.StringWrap
 
next - Variable in class com.stevesoft.pat.ReplaceRule
points to the next ReplaceRule in the linked list.
nextElement() - Method in class com.stevesoft.pat.RegexTokenizer
This should always be cast to a String, as in StringTokenizer, and as in StringTokenizer one can do this by calling nextString().
nextMatch(int, Pthings) - Method in class com.stevesoft.pat.Pattern
This determines if the remainder of a Pattern matches.
nextString() - Method in class com.stevesoft.pat.Pattern
This is a toString() for the remainder of the Pattern elements after this one.
nextToken() - Method in class com.stevesoft.pat.RegexTokenizer
This is the equivalent (String)nextElement().
nextToken(Regex) - Method in class com.stevesoft.pat.RegexTokenizer
This asks for the next token, and changes the pattern being used at the same time.
nextToken(String) - Method in class com.stevesoft.pat.RegexTokenizer
This asks for the next token, and changes the pattern being used at the same time.
nMarks - Variable in class com.stevesoft.pat.Pthings
 
no_check - Variable in class com.stevesoft.pat.Pthings
Determine if Skipped strings need to be checked.
noBackRefs - Variable in class com.stevesoft.pat.Rthings
 
NonDirFileRegex - class com.stevesoft.pat.NonDirFileRegex.
This class is just like FileRegex, except that its accept method only returns true if the file matching the pattern is not a directory.
NonDirFileRegex() - Constructor for class com.stevesoft.pat.NonDirFileRegex
 
NonDirFileRegex(String) - Constructor for class com.stevesoft.pat.NonDirFileRegex
 
NoPattern - class com.stevesoft.pat.NoPattern.
The idea behind this class is simply to eliminate the need for testing to see if Regex.thePattern is null.
NoPattern() - Constructor for class com.stevesoft.pat.NoPattern
 
NotImplementedError - error com.stevesoft.pat.NotImplementedError.
 
NotImplementedError(String) - Constructor for class com.stevesoft.pat.NotImplementedError
 
NullRule - class com.stevesoft.pat.NullRule.
The apply(StringBufferLike sb,RegRes res) method of this derivation of ReplaceRule appends nothing to the contents of the StringBuffer sb.
NullRule() - Constructor for class com.stevesoft.pat.NullRule
 
numSubs_ - Variable in class com.stevesoft.pat.RegRes
 
numSubs() - Method in class com.stevesoft.pat.RegRes
This returns the number of backreferences (parenthesis) in the pattern, i.e.

O

offset(Regex) - Static method in class com.stevesoft.pat.Skip
Determine the offset of the String within the pattern that we are skipping to.
optimize() - Method in class com.stevesoft.pat.Regex
Once this method is called, the state of variables ignoreCase and dontMatchInQuotes should not be changed as the results will be unpredictable.
optimized() - Method in class com.stevesoft.pat.Regex
This function returns true if the optimize method has been called.
optimizeMe - Variable in class com.stevesoft.pat.Rthings
 

P

packNShow() - Method in class com.stevesoft.pat.apps.Pie
 
packNShow() - Method in class com.stevesoft.pat.apps.Message
 
paint(Graphics) - Method in class com.stevesoft.pat.apps.ColorText
Draw the text.
parenLevel - Variable in class com.stevesoft.pat.Rthings
 
pat - Variable in class com.stevesoft.pat.apps.ReGap
 
pat - Variable in class com.stevesoft.pat.apps.ReGame
 
patInt - class com.stevesoft.pat.patInt.
This is just an integer that can have infinite value.
patInt() - Constructor for class com.stevesoft.pat.patInt
Initialize to zero.
patInt(int) - Constructor for class com.stevesoft.pat.patInt
Initialize to the value of init.
patInt(patInt) - Constructor for class com.stevesoft.pat.patInt
Initialize to the value of p.
Pattern - class com.stevesoft.pat.Pattern.
Class Pattern is the base class on which all the other pattern elements are built.
Pattern() - Constructor for class com.stevesoft.pat.Pattern
 
patterns() - Method in class com.stevesoft.pat.Transformer
Returns the number of Regex's in this Transformer.
perlCode(String) - Static method in class com.stevesoft.pat.Regex
A bit of syntactic surgar for those who want to make their code look more perl-like.
perlCode(String) - Static method in class com.stevesoft.pat.ReplaceRule
Compile a ReplaceRule using the text that would go between the second and third /'s in a typical substitution pattern in Perl: s/ ...
Pie - class com.stevesoft.pat.apps.Pie.
The name of this utility was inspired by the option flags given to perl to modifiy a file in place (e.g.
Pie(String) - Constructor for class com.stevesoft.pat.apps.Pie
 
pluseq(patInt) - Method in class com.stevesoft.pat.patInt
This would be operator+=(patInt) if I were programming in C++.
PopRule - class com.stevesoft.pat.PopRule.
Implements substitution rule $POP.
PopRule() - Constructor for class com.stevesoft.pat.PopRule
 
pos() - Method in class com.stevesoft.pat.StrPos
Return the position in the string pointed to
Prop - class com.stevesoft.pat.Prop.
Get Unicode properties for a character.
Prop() - Constructor for class com.stevesoft.pat.Prop
 
Pthings - class com.stevesoft.pat.Pthings.
Things that need to be kept track of during a match.
Pthings() - Constructor for class com.stevesoft.pat.Pthings
 
punct - Static variable in class com.stevesoft.pat.Bits
 
PushRule - class com.stevesoft.pat.PushRule.
See the example file trans3.java for further examples of how this is used.
PushRule(PushRule) - Constructor for class com.stevesoft.pat.PushRule
 
PushRule(String, Regex) - Constructor for class com.stevesoft.pat.PushRule
 
PushRule(String, Transformer) - Constructor for class com.stevesoft.pat.PushRule
 

Q

qrand - Variable in class com.stevesoft.pat.apps.ReGame
 
quizes - Variable in class com.stevesoft.pat.apps.ReGame
 

R

r - Variable in class com.stevesoft.pat.apps.Deck
The random number generator this class uses.
RandomAccessFileWrap - class com.stevesoft.pat.wrap.RandomAccessFileWrap.
Provides a wrapper for a RandomAccessFile so that it can be searched by Regex.
RandomAccessFileWrap(RandomAccessFile) - Constructor for class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
RandomAccessFileWrap(String) - Constructor for class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
read() - Method in class com.stevesoft.pat.RegexReader
 
read(char[], int, int) - Method in class com.stevesoft.pat.RegexReader
 
ReadAndProcessFile(String) - Method in class com.stevesoft.pat.apps.ReGameDes
 
redraw - Variable in class com.stevesoft.pat.apps.ReGame
 
ReGame - class com.stevesoft.pat.apps.ReGame.
This is the applet for my ReGame page.
ReGame() - Constructor for class com.stevesoft.pat.apps.ReGame
 
ReGameDes - class com.stevesoft.pat.apps.ReGameDes.
This is the thing used to design the parameters for a regular expression game.
ReGameDes(String) - Constructor for class com.stevesoft.pat.apps.ReGameDes
 
ReGap - class com.stevesoft.pat.apps.ReGap.
This is the test applet in home page.
ReGap() - Constructor for class com.stevesoft.pat.apps.ReGap
 
Regex - class com.stevesoft.pat.Regex.
Regex provides the parser which constructs the linked list of Pattern classes from a String.
Regex() - Constructor for class com.stevesoft.pat.Regex
Initializes the object without a Pattern.
Regex(Regex) - Constructor for class com.stevesoft.pat.Regex
Essentially clones the Regex object
Regex(String) - Constructor for class com.stevesoft.pat.Regex
Create and compile a Regex, but do not throw any exceptions.
Regex(String, ReplaceRule) - Constructor for class com.stevesoft.pat.Regex
Create and compile a Regex, but give it the ReplaceRule specified.
Regex(String, String) - Constructor for class com.stevesoft.pat.Regex
Create and compile both a Regex and a ReplaceRule.
RegexReader - class com.stevesoft.pat.RegexReader.
This class allows you to replace the text in strings as you read them in.
RegexReader(Regex, Reader) - Constructor for class com.stevesoft.pat.RegexReader
 
RegexReader(Transformer, Reader) - Constructor for class com.stevesoft.pat.RegexReader
 
RegexTokenizer - class com.stevesoft.pat.RegexTokenizer.
The RegexTokenizer is similar to the StringTokenizer class provided with java, but allows one to tokenize using regular expressions, rather than a simple list of characters.
RegexTokenizer(String, Regex) - Constructor for class com.stevesoft.pat.RegexTokenizer
Initialize the tokenizer with a Regex object.
RegexTokenizer(String, String) - Constructor for class com.stevesoft.pat.RegexTokenizer
Initialize the tokenizer with a string of text and a pattern
RegexWriter - class com.stevesoft.pat.RegexWriter.
A basic extension of FilterWriter that uses Transformer to make replacements in data as it is written out.
RegexWriter(Regex, Writer) - Constructor for class com.stevesoft.pat.RegexWriter
 
RegexWriter(Transformer, Writer) - Constructor for class com.stevesoft.pat.RegexWriter
 
regionMatches(String, boolean, int, String, int, int) - Static method in class com.stevesoft.pat.CaseMgr
Duplicates the regionMatches routine of String -- but makes use of the definitions of upper, lower, and title case in this class when ignoreCase is set.
regionMatches(String, boolean, int, StringLike, int, int) - Static method in class com.stevesoft.pat.CaseMgr
Duplicates the regionMatches routine of String -- but makes use of the definitions of upper, lower, and title case in this class when ignoreCase is set.
regionMatches(StringLike, boolean, int, String, int, int) - Static method in class com.stevesoft.pat.CaseMgr
Duplicates the regionMatches routine of String -- but makes use of the definitions of upper, lower, and title case in this class when ignoreCase is set.
regionMatches(StringLike, boolean, int, StringLike, int, int) - Static method in class com.stevesoft.pat.CaseMgr
Duplicates the regionMatches routine of String -- but makes use of the definitions of upper, lower, and title case in this class when ignoreCase is set.
registeredTo(String) - Static method in class com.stevesoft.pat.Key
 
registeredTo(String, int) - Static method in class com.stevesoft.pat.Key
 
RegOpt - class com.stevesoft.pat.RegOpt.
This is just a place to put the optimizing function.
RegOpt() - Constructor for class com.stevesoft.pat.RegOpt
 
RegRes - class com.stevesoft.pat.RegRes.
This class is used to store a result from Regex
RegRes() - Constructor for class com.stevesoft.pat.RegRes
 
RegRes(RegRes) - Constructor for class com.stevesoft.pat.RegRes
 
RegSyntax - exception com.stevesoft.pat.RegSyntax.
This type of syntax error is thrown whenever a syntax error is encountered in the pattern.
RegSyntaxError - error com.stevesoft.pat.RegSyntaxError.
When enabled, this class is thrown instead of the normal RegSyntax.
RegSyntaxError() - Constructor for class com.stevesoft.pat.RegSyntaxError
 
RegSyntaxError(String) - Constructor for class com.stevesoft.pat.RegSyntaxError
 
RegSyntaxErrorEnabled - Static variable in class com.stevesoft.pat.RegSyntaxError
 
repaint() - Method in class com.stevesoft.pat.apps.TestGroup
 
replaceAll(String) - Method in class com.stevesoft.pat.Regex
Replace all occurences of this pattern in String s according to the ReplaceRule.
replaceAll(String) - Method in class com.stevesoft.pat.Replacer
 
replaceAll(String) - Method in class com.stevesoft.pat.Transformer
Replace all matches in the current String.
replaceAll(StringLike) - Method in class com.stevesoft.pat.Regex
 
replaceAll(StringLike) - Method in class com.stevesoft.pat.Replacer
 
replaceAll(StringLike) - Method in class com.stevesoft.pat.Transformer
 
replaceAllFrom(String, int) - Method in class com.stevesoft.pat.Regex
Replace all occurences of this pattern in String s beginning with position pos according to the ReplaceRule.
replaceAllFrom(String, int) - Method in class com.stevesoft.pat.Replacer
 
replaceAllFrom(String, int) - Method in class com.stevesoft.pat.Transformer
Replace all matching patterns beginning at position start.
replaceAllFrom(StringLike, int) - Method in class com.stevesoft.pat.Replacer
 
replaceAllRegion(String, int, int) - Method in class com.stevesoft.pat.Regex
Replace all occurences of this pattern in String s beginning with position start and ending with end according to the ReplaceRule.
replaceAllRegion(String, int, int) - Method in class com.stevesoft.pat.Replacer
 
replaceAllRegion(String, int, int) - Method in class com.stevesoft.pat.Transformer
Replace all matching patterns beginning between the positions start and end inclusive.
replaceAllRegion(StringLike, int, int) - Method in class com.stevesoft.pat.Replacer
 
replaceAllRegion(StringLike, Regex, int, int) - Method in class com.stevesoft.pat.Replacer
This method replaces all occurences of the Regex in the String starting with postition pos according to the Replacer rule of this object.
replaceAllRegion(String, Regex, int, int) - Method in class com.stevesoft.pat.Replacer
 
replaceFirst(String) - Method in class com.stevesoft.pat.Regex
Replace the first occurence of this pattern in String s according to the ReplaceRule.
replaceFirst(String) - Method in class com.stevesoft.pat.Transformer
Replace the first matching pattern in String s.
replaceFirst(StringLike) - Method in class com.stevesoft.pat.Replacer
 
replaceFirstFrom(String, int) - Method in class com.stevesoft.pat.Regex
Replace the first occurence of this pattern in String s beginning with position pos according to the ReplaceRule.
replaceFirstFrom(String, int) - Method in class com.stevesoft.pat.Transformer
Replace the first matching pattern after position start in String s.
replaceFirstFrom(StringLike, int) - Method in class com.stevesoft.pat.Replacer
 
replaceFirstRegion(String, int, int) - Method in class com.stevesoft.pat.Regex
Replace the first occurence of this pattern in String s beginning with position start and ending with end according to the ReplaceRule.
replaceFirstRegion(String, int, int) - Method in class com.stevesoft.pat.Transformer
Replace the first matching pattern that begins between start and end inclusive.
replaceFirstRegion(StringLike, int, int) - Method in class com.stevesoft.pat.Replacer
 
replaceFirstRegion(StringLike, Regex, int, int) - Method in class com.stevesoft.pat.Replacer
This method replaces the first occurence of the Regex in the String starting with position pos according to the Replacer rule of this object.
replaceFirstRegion(String, Regex, int, int) - Method in class com.stevesoft.pat.Replacer
 
Replacer - class com.stevesoft.pat.Replacer.
To use this class, first use either the getReplacer() method from Transformer or Regex.
Replacer() - Constructor for class com.stevesoft.pat.Replacer
Instantiate a new Replacer.
ReplaceRule - class com.stevesoft.pat.ReplaceRule.
ReplaceRule is a singly linked list of Objects which describe how to replace the matched portion of a String.
ReplaceRule() - Constructor for class com.stevesoft.pat.ReplaceRule
 
reset() - Method in class com.stevesoft.pat.RegexReader
 
result() - Method in class com.stevesoft.pat.Regex
Return a clone of the underlying RegRes object.
reverseSearch(String) - Method in class com.stevesoft.pat.Regex
 
reverseSearch(StringLike) - Method in class com.stevesoft.pat.Regex
 
right() - Method in class com.stevesoft.pat.RegRes
This returns the part of the string that follows the match, or null if the backreference did not match.
right(int) - Method in class com.stevesoft.pat.RegRes
This returns the string to the right of the ith backreference, or null if the backreference did not match.
RightRule - class com.stevesoft.pat.RightRule.
The apply(StringBufferLike sb,RegRes res) method of this derivation of ReplaceRule appends the contents of res.right() to the StringBufferLike sb.
RightRule() - Constructor for class com.stevesoft.pat.RightRule
 
Rthings - class com.stevesoft.pat.Rthings.
This class only exists to store data needed during the compilation of a regular expression.

S

score_txt - Variable in class com.stevesoft.pat.apps.ReGame
 
search(String) - Method in class com.stevesoft.pat.Regex
Search through a String for the first occurrence of a match.
search(String) - Method in class com.stevesoft.pat.SkipBMH
 
search(StringLike) - Method in class com.stevesoft.pat.Regex
 
searchFrom(String, int) - Method in class com.stevesoft.pat.Regex
Search through a String for the first occurence of a match, but start at position
searchFrom(String, int) - Method in class com.stevesoft.pat.SkipBMH
 
searchFrom(StringLike, int) - Method in class com.stevesoft.pat.Regex
 
searchRegion(String, int, int) - Method in class com.stevesoft.pat.Regex
Search through a region of a String for the first occurence of a match.
searchRegion(String, int, int) - Method in class com.stevesoft.pat.SkipBMH
Set to true if you only want to compare two of the characters in the String.
set(int, boolean) - Method in class com.stevesoft.pat.Bits
 
setBuffer(StringBufferLike) - Method in class com.stevesoft.pat.Replacer
 
setBufferSize(int) - Method in class com.stevesoft.pat.RegexReader
Set the size of the working buffer.
setBufferSize(int) - Method in class com.stevesoft.pat.RegexWriter
Set the buffer size.
setBufferSize(int) - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
setDefaultMFlag(boolean) - Static method in class com.stevesoft.pat.Regex
Set the default value of the m flag.
setDontMatchInQuotes(boolean) - Method in class com.stevesoft.pat.Regex
Set the dontMatch in quotes flag.
setEnabled(boolean) - Method in class com.stevesoft.pat.apps.Pie
 
setEOLchar(char) - Method in class com.stevesoft.pat.RegexReader
Deprecated.  
setEOLchar(char) - Method in class com.stevesoft.pat.RegexWriter
Deprecated.  
setGFlag(boolean) - Method in class com.stevesoft.pat.Regex
Set the 'g' flag
setIFlag(boolean) - Method in class com.stevesoft.pat.apps.Grep
The ignore case flag
setIgnoreCase(boolean) - Method in class com.stevesoft.pat.Regex
Set the state of the ignoreCase flag.
setInf(boolean) - Method in class com.stevesoft.pat.patInt
set this int to infinity.
setInterval(int) - Method in class com.stevesoft.pat.RegexWriter
Set the interval at which regex patterns are checked.
setMaxLines(int) - Method in class com.stevesoft.pat.RegexReader
Deprecated.  
setMaxLines(int) - Method in class com.stevesoft.pat.RegexWriter
Deprecated.  
setMode(char) - Method in class com.stevesoft.pat.StringBufferLike
 
setOffset(long) - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
setParent(Pattern) - Method in class com.stevesoft.pat.Pattern
Call this method if you have a pattern element that takes a sub pattern (such as Or), and after you have added a sub pattern to the current pattern element.
setPFlag(boolean) - Method in class com.stevesoft.pat.apps.Grep
The paragraph mode flag
setPos(int) - Method in class com.stevesoft.pat.Replacer
 
setRegex(Regex) - Method in class com.stevesoft.pat.apps.Grep
The pattern to be searched for
setRegexAt(Regex, int) - Method in class com.stevesoft.pat.Transformer
Set the Regex at position i in this Transformer.
setReplaceRule(ReplaceRule) - Method in class com.stevesoft.pat.Regex
Change the ReplaceRule of this Regex to rp.
setReplaceRule(String) - Method in class com.stevesoft.pat.Regex
Change the ReplaceRule of this Regex by compiling a new one using String rp.
setSource(StringLike) - Method in class com.stevesoft.pat.Replacer
 
setVerbose(boolean) - Method in class com.stevesoft.pat.apps.Grep
Determine if file and line number info is written.
setVFlag(boolean) - Method in class com.stevesoft.pat.apps.Grep
If the vflag is true, then only lines not matching the supplied pattern will be printed.
ShowError(RegSyntax) - Method in class com.stevesoft.pat.apps.TestGroup
 
ShowFail() - Method in class com.stevesoft.pat.apps.TestGroup
 
ShowRes(Regex) - Method in class com.stevesoft.pat.apps.TestGroup
 
ShowSuccess(Regex) - Method in class com.stevesoft.pat.apps.TestGroup
 
ShutDown - class com.stevesoft.pat.apps.ShutDown.
Just a little class to listen to the windowClosing event and call System.exit(0);
ShutDown() - Constructor for class com.stevesoft.pat.apps.ShutDown
 
SizeAndShow() - Method in class com.stevesoft.pat.apps.ReGameDes
 
Skip - class com.stevesoft.pat.Skip.
This class is used internally to search ahead for some optimized Regex objects.
skip(long) - Method in class com.stevesoft.pat.RegexReader
 
Skip(String, boolean, int) - Constructor for class com.stevesoft.pat.Skip
Initialize, give it a String to search for, tell it whether or not to ignoreCase, and what the offset is of the String within the String to be searched.
Skip2 - class com.stevesoft.pat.Skip2.
This is the same as Skip, except it needs a minimum of two characters in the initializing String.
Skip2(String, boolean, int) - Constructor for class com.stevesoft.pat.Skip2
 
SkipBMH - class com.stevesoft.pat.SkipBMH.
Like Skip, but implements a Boyer-Moore-Horspool type search method that has been modified to be more like a "T-search" (see the Michael Tamm''s article in C'T, magazin fuer computer und technic, August 97 p 292).
SkipBMH(String) - Constructor for class com.stevesoft.pat.SkipBMH
 
SkipBMH(String, boolean) - Constructor for class com.stevesoft.pat.SkipBMH
 
SkipBMH(String, boolean, int) - Constructor for class com.stevesoft.pat.SkipBMH
 
SpecialRule - class com.stevesoft.pat.SpecialRule.
 
SpecialRule() - Constructor for class com.stevesoft.pat.SpecialRule
 
src - Variable in class com.stevesoft.pat.RegRes
 
src - Variable in class com.stevesoft.pat.Pthings
The current text we are attempting to match.
start() - Method in class com.stevesoft.pat.apps.ReGame
 
string(Regex) - Static method in class com.stevesoft.pat.Skip
Examine a Regex to determine what String it will attempt to skip to when searching for patterns.
String1() - Method in class com.stevesoft.pat.PushRule
 
StringBufferLike - class com.stevesoft.pat.StringBufferLike.
A tool that is used to make the \E, \U, \L, and \Q elements of a substitution.
StringBufferLike(BasicStringBufferLike) - Constructor for class com.stevesoft.pat.StringBufferLike
 
StringBufferWrap - class com.stevesoft.pat.wrap.StringBufferWrap.
This provides a wrapper for StringBuffer to capture the output of a replacement.
StringBufferWrap() - Constructor for class com.stevesoft.pat.wrap.StringBufferWrap
 
StringLike - interface com.stevesoft.pat.StringLike.
Package pat can search anything that implements this interface.
stringMatched() - Method in class com.stevesoft.pat.RegRes
Obtains the match if successful, null otherwise.
stringMatched(int) - Method in class com.stevesoft.pat.RegRes
Obtains a substring matching the nth set of parenthesis from the pattern.
StringRule - class com.stevesoft.pat.StringRule.
The apply method of this ReplaceRule simply appends the text it was initialized with to the StringBufferLike.
StringRule(String) - Constructor for class com.stevesoft.pat.StringRule
 
StringWrap - class com.stevesoft.pat.wrap.StringWrap.
A basic wrapper for the String object.
StringWrap(String) - Constructor for class com.stevesoft.pat.wrap.StringWrap
 
StrPos - class com.stevesoft.pat.StrPos.
StrPos is used internally by regex to parse the regular expression.
StrPos(String, int) - Constructor for class com.stevesoft.pat.StrPos
Initialize a StrPos by giving it a String, and a position within the String.
StrPos(StrPos) - Constructor for class com.stevesoft.pat.StrPos
initialize a StrPos from another StrPos.
substring() - Method in class com.stevesoft.pat.RegRes
An older name for stringMatched().
substring(int) - Method in class com.stevesoft.pat.RegRes
An older name for stringMatched.
substring(int, int) - Method in interface com.stevesoft.pat.StringLike
 
substring(int, int) - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
substring(int, int) - Method in class com.stevesoft.pat.wrap.CharArrayWrap
 
substring(int, int) - Method in class com.stevesoft.pat.wrap.StringWrap
 

T

TestGroup - class com.stevesoft.pat.apps.TestGroup.
This class is used internally by ReGame
TestGroup(String, boolean) - Constructor for class com.stevesoft.pat.apps.TestGroup
 
tg - Variable in class com.stevesoft.pat.apps.ReGap
 
tgroup - Variable in class com.stevesoft.pat.apps.ReGame
 
tgroup2 - Variable in class com.stevesoft.pat.apps.ReGame
 
thisChar() - Method in class com.stevesoft.pat.StrPos
Returns the current, possibly escaped, character.
title - Static variable in class com.stevesoft.pat.Bits
 
toFileRegex(String) - Static method in class com.stevesoft.pat.FileRegex
This method takes a file regular expression, and translates it into the type of pattern used by a normal Regex.
toLowerCase(char) - Static method in class com.stevesoft.pat.CaseMgr
Convert a character to lower case.
toLowerCase(String) - Static method in class com.stevesoft.pat.CaseMgr
Convert a String to lower case.
toString() - Method in class com.stevesoft.pat.RegRes
 
toString() - Method in class com.stevesoft.pat.Regex
Converts the stored Pattern to a String -- this is a decompile.
toString() - Method in class com.stevesoft.pat.ReplaceRule
Convert to a String.
toString() - Method in interface com.stevesoft.pat.StringLike
 
toString() - Method in class com.stevesoft.pat.Pattern
 
toString() - Method in class com.stevesoft.pat.NoPattern
 
toString() - Method in class com.stevesoft.pat.StringBufferLike
 
toString() - Method in class com.stevesoft.pat.patInt
Formats the pattern as a String.
toString() - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
toString() - Method in class com.stevesoft.pat.wrap.CharArrayWrap
 
toString() - Method in class com.stevesoft.pat.wrap.CharArrayBufferWrap
 
toString() - Method in class com.stevesoft.pat.wrap.StringBufferWrap
 
toString() - Method in class com.stevesoft.pat.wrap.StringWrap
 
toString1() - Method in class com.stevesoft.pat.ReplaceRule
This tells how to convert just the current element (and none of the other items in the linked list) to a String.
toString1() - Method in class com.stevesoft.pat.WantMoreTextReplaceRule
 
toString1() - Method in class com.stevesoft.pat.LeftRule
 
toString1() - Method in class com.stevesoft.pat.AmpersandRule
 
toString1() - Method in class com.stevesoft.pat.PopRule
 
toString1() - Method in class com.stevesoft.pat.StringRule
 
toString1() - Method in class com.stevesoft.pat.BackRefRule
 
toString1() - Method in class com.stevesoft.pat.RightRule
 
toString1() - Method in class com.stevesoft.pat.ChangeRule
 
toString1() - Method in class com.stevesoft.pat.NullRule
 
toString1() - Method in class com.stevesoft.pat.CodeRule
 
toStringLike() - Method in class com.stevesoft.pat.StringBufferLike
 
toStringLike() - Method in interface com.stevesoft.pat.BasicStringBufferLike
 
toStringLike() - Method in class com.stevesoft.pat.wrap.WriterWrap
This operation can't really be done.
toStringLike() - Method in class com.stevesoft.pat.wrap.CharArrayBufferWrap
 
toStringLike() - Method in class com.stevesoft.pat.wrap.StringBufferWrap
 
toTitleCase(char) - Static method in class com.stevesoft.pat.CaseMgr
Convert a character to title case.
toTitleCase(String) - Static method in class com.stevesoft.pat.CaseMgr
Convert a String to title case.
toUpperCase(char) - Static method in class com.stevesoft.pat.CaseMgr
Convert a character to upper case .
toUpperCase(String) - Static method in class com.stevesoft.pat.CaseMgr
Convert a String to upper case.
Transformer - class com.stevesoft.pat.Transformer.
Sometimes you want to replace a whole bunch of things that might occur within a single line of text.
Transformer(boolean) - Constructor for class com.stevesoft.pat.Transformer
Instantiate a new Transformer object.
txt - Variable in class com.stevesoft.pat.apps.TestGroup
 

U

undefine(String) - Static method in class com.stevesoft.pat.Regex
Removes a custom defined rule.
undefine(String) - Static method in class com.stevesoft.pat.ReplaceRule
 
unwrap() - Method in interface com.stevesoft.pat.StringLike
Obtain the underlying object, be it a String, char[], RandomAccessFile, whatever.
unwrap() - Method in class com.stevesoft.pat.StringBufferLike
 
unwrap() - Method in interface com.stevesoft.pat.BasicStringBufferLike
 
unwrap() - Method in class com.stevesoft.pat.wrap.RandomAccessFileWrap
 
unwrap() - Method in class com.stevesoft.pat.wrap.CharArrayWrap
 
unwrap() - Method in class com.stevesoft.pat.wrap.WriterWrap
 
unwrap() - Method in class com.stevesoft.pat.wrap.CharArrayBufferWrap
 
unwrap() - Method in class com.stevesoft.pat.wrap.StringBufferWrap
 
unwrap() - Method in class com.stevesoft.pat.wrap.StringWrap
 
upper - Static variable in class com.stevesoft.pat.Bits
 

V

v - Variable in class com.stevesoft.pat.apps.Message
 
val - Variable in class com.stevesoft.pat.Rthings
The numeric identity of the next () to be encountered while compiling the pattern.
validate(StringLike, int, int) - Method in class com.stevesoft.pat.Validator
This method does extra checking on a matched section of a String beginning at position start and ending at end.
Validator - class com.stevesoft.pat.Validator.
This class makes it easy to create your own patterns and integrate them into Regex.
Validator() - Constructor for class com.stevesoft.pat.Validator
 
version() - Static method in class com.stevesoft.pat.Regex
The version of this package

W

WantMoreText() - Method in class com.stevesoft.pat.Replacer
 
WantMoreTextReplaceRule - class com.stevesoft.pat.WantMoreTextReplaceRule.
Triggers the reading of another line of text, allowing a longer pattern to match -- for details see WantMore.java.
WantMoreTextReplaceRule() - Constructor for class com.stevesoft.pat.WantMoreTextReplaceRule
 
white - Static variable in class com.stevesoft.pat.Bits
 
windowActivated(WindowEvent) - Method in class com.stevesoft.pat.apps.ShutDown
 
windowClosed(WindowEvent) - Method in class com.stevesoft.pat.apps.ShutDown
 
windowClosing(WindowEvent) - Method in class com.stevesoft.pat.apps.ShutDown
 
windowDeactivated(WindowEvent) - Method in class com.stevesoft.pat.apps.ShutDown
 
windowDeiconified(WindowEvent) - Method in class com.stevesoft.pat.apps.ShutDown
 
windowIconified(WindowEvent) - Method in class com.stevesoft.pat.apps.ShutDown
 
windowOpened(WindowEvent) - Method in class com.stevesoft.pat.apps.ShutDown
 
write(char[], int, int) - Method in class com.stevesoft.pat.RegexWriter
 
WriterWrap - class com.stevesoft.pat.wrap.WriterWrap.
Allows the outcome of a replaceAll() or replaceFirst() to be directed to a Writer rather than a String.
WriterWrap(Writer) - Constructor for class com.stevesoft.pat.wrap.WriterWrap
 

A B C D E F G H I J K L M N O P Q R S T U V W