|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.module.AbstractQuercusModule
com.caucho.quercus.lib.regexp.RegexpModule
public class RegexpModule
PHP regexp routines.
| Field Summary | |
|---|---|
static int |
PCRE_UTF8
|
static int |
PREG_GREP_INVERT
|
static int |
PREG_OFFSET_CAPTURE
|
static int |
PREG_PATTERN_ORDER
|
static int |
PREG_REPLACE_EVAL
|
static int |
PREG_SET_ORDER
|
static int |
PREG_SPLIT_DELIM_CAPTURE
|
static int |
PREG_SPLIT_NO_EMPTY
|
static int |
PREG_SPLIT_OFFSET_CAPTURE
|
| Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule |
|---|
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER |
| Constructor Summary | |
|---|---|
RegexpModule()
|
|
| Method Summary | |
|---|---|
static Value |
ereg_replace(Env env,
Value pattern,
Value replacement,
StringValue subject)
Replaces values using regexps |
static Value |
ereg(Env env,
Value pattern,
StringValue string,
Value regsV)
Returns the index of the first match. |
static Value |
eregi_replace(Env env,
Value pattern,
Value replacement,
StringValue subject)
Replaces values using regexps |
static Value |
eregi(Env env,
Value pattern,
StringValue string,
Value regsV)
Returns the index of the first match. |
java.lang.String[] |
getLoadedExtensions()
Returns the extensions loaded by the module. |
static Value |
preg_grep(Env env,
StringValue patternString,
ArrayValue input,
int flag)
Returns an array of all the values that matched the given pattern if the flag no flag is passed. |
static Value |
preg_match_all(Env env,
StringValue regexp,
StringValue subject,
Value matchRef,
int flags,
int offset)
Returns the index of the first match. |
static Value |
preg_match(Env env,
StringValue regexp,
StringValue subject,
Value matchRef,
int flags,
int offset)
Returns the index of the first match. |
static StringValue |
preg_quote(Env env,
StringValue string,
StringValue delim)
Quotes regexp values |
static Value |
preg_replace_callback(Env env,
Value pattern,
Callback fun,
Value subject,
long limit,
Value count)
Loops through subject if subject is array of strings |
static Value |
preg_replace(Env env,
Value pattern,
Value replacement,
Value subject,
long limit,
Value count)
Loops through subject if subject is array of strings |
static Value |
preg_split(Env env,
StringValue patternString,
StringValue string,
long limit,
int flags)
Returns array of substrings or of arrays ([0] => substring [1] => offset) if PREG_SPLIT_OFFSET_CAPTURE is set |
static Value |
split(Env env,
StringValue patternString,
StringValue string,
long limit)
Returns the index of the first match. |
static Value |
spliti(Env env,
StringValue patternString,
StringValue string,
long limit)
Returns an array of strings produces from splitting the passed string around the provided pattern. |
static StringValue |
sql_regcase(Env env,
StringValue string)
Makes a regexp for a case-insensitive match. |
| Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule |
|---|
getConstMap, getIniDefinitions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PREG_REPLACE_EVAL
public static final int PCRE_UTF8
public static final int PREG_PATTERN_ORDER
public static final int PREG_SET_ORDER
public static final int PREG_OFFSET_CAPTURE
public static final int PREG_SPLIT_NO_EMPTY
public static final int PREG_SPLIT_DELIM_CAPTURE
public static final int PREG_SPLIT_OFFSET_CAPTURE
public static final int PREG_GREP_INVERT
| Constructor Detail |
|---|
public RegexpModule()
| Method Detail |
|---|
public java.lang.String[] getLoadedExtensions()
AbstractQuercusModule
getLoadedExtensions in interface QuercusModulegetLoadedExtensions in class AbstractQuercusModule
public static Value ereg(Env env,
Value pattern,
StringValue string,
Value regsV)
env - the calling environment
public static Value eregi(Env env,
Value pattern,
StringValue string,
Value regsV)
env - the calling environment
public static Value preg_match(Env env,
StringValue regexp,
StringValue subject,
Value matchRef,
int flags,
int offset)
env - the calling environment
public static Value preg_match_all(Env env,
StringValue regexp,
StringValue subject,
Value matchRef,
int flags,
int offset)
env - the calling environment
public static StringValue preg_quote(Env env,
StringValue string,
StringValue delim)
public static Value preg_replace(Env env,
Value pattern,
Value replacement,
Value subject,
long limit,
Value count)
env - pattern - string or arrayreplacement - string or arraysubject - string or arraylimit - count -
public static Value ereg_replace(Env env,
Value pattern,
Value replacement,
StringValue subject)
public static Value eregi_replace(Env env,
Value pattern,
Value replacement,
StringValue subject)
public static Value preg_replace_callback(Env env,
Value pattern,
Callback fun,
Value subject,
long limit,
Value count)
env - pattern - fun - subject - limit - count -
public static Value preg_split(Env env,
StringValue patternString,
StringValue string,
long limit,
int flags)
env - the calling environment
public static StringValue sql_regcase(Env env,
StringValue string)
public static Value split(Env env,
StringValue patternString,
StringValue string,
long limit)
env - the calling environment
public static Value preg_grep(Env env,
StringValue patternString,
ArrayValue input,
int flag)
patternString - the patterninput - the array to check the pattern againstflag - 0 for matching and 1 for elements that do not match
public static Value spliti(Env env,
StringValue patternString,
StringValue string,
long limit)
patternString - the patternstring - the string to splitlimit - if specified, the maximum number of elements in the array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||