Class pat.StrPos
All Packages Class Hierarchy This Package Previous Next Index
Class pat.StrPos
java.lang.Object
|
+----pat.StrPos
- public class StrPos
- extends Object
Shareware: package pat
Copyright 1996, Steven R. Brandt
StrPos is used internally by regex to parse the regular expression.
-
StrPos(String, int)
- Initialize a StrPos by giving it a String, and a
position within the String.
-
StrPos(StrPos)
- initialize a StrPos from another StrPos.
-
dup(StrPos)
- copy a StrPos from sp to this.
-
escaped()
- Returns true if the character is escaped (preceeded by "\").
-
getPatInt()
-
-
inc()
- Advance the place where StrPos points within the String.
-
match(char)
- Increment the string pointer if the character
pointed to is not escaped (preceeded by "\"), and matches
ch
.
-
match(String)
- Increment the string pointer by each character in
st
that matches a non-escaped
character.
StrPos
public StrPos(StrPos sp)
- initialize a StrPos from another StrPos.
StrPos
public StrPos(String s,
int pos)
- Initialize a StrPos by giving it a String, and a
position within the String.
dup
public void dup(StrPos sp)
- copy a StrPos from sp to this.
inc
public StrPos inc()
- Advance the place where StrPos points within the String.
Counts a backslash as part of the next character.
match
public boolean match(char ch)
- Increment the string pointer if the character
pointed to is not escaped (preceeded by "\"), and matches
ch
.
escaped
public boolean escaped()
- Returns true if the character is escaped (preceeded by "\").
match
public boolean match(String st)
- Increment the string pointer by each character in
st
that matches a non-escaped
character.
getPatInt
public patInt getPatInt()
All Packages Class Hierarchy This Package Previous Next Index