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.


Constructor Index

 o StrPos(String, int)
Initialize a StrPos by giving it a String, and a position within the String.
 o StrPos(StrPos)
initialize a StrPos from another StrPos.

Method Index

 o dup(StrPos)
copy a StrPos from sp to this.
 o escaped()
Returns true if the character is escaped (preceeded by "\").
 o getPatInt()
 o inc()
Advance the place where StrPos points within the String.
 o match(char)
Increment the string pointer if the character pointed to is not escaped (preceeded by "\"), and matches
ch
.
 o match(String)
Increment the string pointer by each character in
st
that matches a non-escaped character.

Constructors

 o StrPos
  public StrPos(StrPos sp)
initialize a StrPos from another StrPos.

 o StrPos
  public StrPos(String s,
                int pos)
Initialize a StrPos by giving it a String, and a position within the String.

Methods

 o dup
  public void dup(StrPos sp)
copy a StrPos from sp to this.

 o inc
  public StrPos inc()
Advance the place where StrPos points within the String. Counts a backslash as part of the next character.

 o match
  public boolean match(char ch)
Increment the string pointer if the character pointed to is not escaped (preceeded by "\"), and matches
ch
.

 o escaped
  public boolean escaped()
Returns true if the character is escaped (preceeded by "\").

 o match
  public boolean match(String st)
Increment the string pointer by each character in
st
that matches a non-escaped character.

 o getPatInt
  public patInt getPatInt()

All Packages  Class Hierarchy  This Package  Previous  Next  Index