C++ Native Functions: com.teracloud.streams.regex.xpressive
- <enum E> public boolean regexCompile(rstring pattern, E patternIndex)
-
Compiles and indexes regular expression pattern.
- Parameters
-
- pattern
-
regular expression pattern of type rstring.
- patternIndex
-
regular expression index of enum type (e.g. enum{_1}).
- Returns
-
boolean regular expression compilation success.
- <enum E> public boolean regexFullMatch(rstring str, E patternIndex)
-
Performs a full match of the whole string with the pattern - runs in compiled mode (uses compiled regex index to identify the pattern).
- Parameters
-
- str
-
string to match of type rstring.
- patternIndex
-
regular expression index of enum type (e.g. enum{_1}).
- Returns
-
boolean matching success.
- public boolean regexFullMatch(rstring str, rstring pattern)
-
Performs a full match of the whole string with the pattern - runs in interpretation mode (like SPL regexMatch function).
- Parameters
-
- str
-
string to match of type rstring.
- pattern
-
regular expression of type rstring.
- Returns
-
boolean matching success.
- <enum E> public rstring regexGlobalReplace(rstring str, E patternIndex, rstring rewrite)
-
Performs all replacements of the string after matching the pattern - runs in compiled mode (uses compiled regex index to identify the pattern).
- Parameters
-
- str
-
string to match of type rstring.
- patternIndex
-
regular expression index of enum type (e.g. enum{_1}).
- rewrite
-
replace string of type rstring.
- Returns
-
rstring number of matching successes.
- <enum E> public boolean regexPartialMatch(rstring str, E patternIndex)
-
Performs a partial match of the string with the pattern - runs in compiled mode (uses compiled regex index to identify the pattern).
- Parameters
-
- str
-
string to match of type rstring.
- patternIndex
-
regular expression index of enum type (e.g. enum{_1}).
- Returns
-
boolean matching success.
- public boolean regexPartialMatch(rstring str, rstring pattern)
-
Performs a partial match of the string with the pattern - runs in interpretation mode (like SPL regexMatch function).
- Parameters
-
- str
-
string to match of type rstring.
- pattern
-
regular expression of type rstring.
- Returns
-
boolean matching success.