com.caucho.quercus.lib.regexp
Class RegexpState

java.lang.Object
  extended by com.caucho.quercus.lib.regexp.RegexpState

public class RegexpState
extends java.lang.Object


Field Summary
static int FAIL
           
static int SUCCESS
           
 
Method Summary
static RegexpState create(Env env, Regexp regexp)
           
static RegexpState create(Env env, Regexp regexp, StringValue subject)
           
 int end()
           
 int end(int i)
           
 int exec(Env env, StringValue subject, int start)
          XXX: not proper behaviour with /g
 boolean find()
           
 boolean find(Env env, StringValue subject)
           
 int find(Env env, StringValue subject, int first)
           
static void free(Env env, RegexpState state)
           
 int getBegin(int i)
           
 int getEnd(int i)
           
 StringValue getGroupName(int i)
           
 int getLength()
           
 int getSubjectLength()
           
 StringValue group(Env env)
           
 StringValue group(Env env, int i)
           
 int groupCount()
           
 boolean isMatchedGroup(int i)
           
 int length()
           
 void setBegin(int i, int v)
           
 void setEnd(int i, int v)
           
 void setFirst(int first)
           
 void setLength(int length)
           
 boolean setSubject(Env env, StringValue subject)
           
 int start()
           
 int start(int i)
           
 StringValue substring(Env env, int start)
           
 StringValue substring(Env env, int start, int end)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FAIL

public static final int FAIL
See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
See Also:
Constant Field Values
Method Detail

create

public static RegexpState create(Env env,
                                 Regexp regexp)

create

public static RegexpState create(Env env,
                                 Regexp regexp,
                                 StringValue subject)

free

public static void free(Env env,
                        RegexpState state)

getSubjectLength

public int getSubjectLength()

setSubject

public boolean setSubject(Env env,
                          StringValue subject)

setFirst

public void setFirst(int first)

find

public boolean find()

find

public boolean find(Env env,
                    StringValue subject)

find

public int find(Env env,
                StringValue subject,
                int first)

exec

public int exec(Env env,
                StringValue subject,
                int start)
XXX: not proper behaviour with /g


getBegin

public int getBegin(int i)

getEnd

public int getEnd(int i)

setBegin

public void setBegin(int i,
                     int v)

setEnd

public void setEnd(int i,
                   int v)

getLength

public int getLength()

setLength

public void setLength(int length)

length

public int length()

start

public int start()

start

public int start(int i)

end

public int end()

end

public int end(int i)

groupCount

public int groupCount()

isMatchedGroup

public boolean isMatchedGroup(int i)

group

public StringValue group(Env env)

group

public StringValue group(Env env,
                         int i)

getGroupName

public StringValue getGroupName(int i)

substring

public StringValue substring(Env env,
                             int start)

substring

public StringValue substring(Env env,
                             int start,
                             int end)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object