Open (compile) an ICU regular expression. The resulting regular expression handle can then be used to perform various matching operations.
This function is the same as uregex_open, except that the pattern is supplied as an 8 bit char * string in the default code page.
|pattern ||The Regular Expression pattern to be compiled, NUL termintated. |
|flags ||Flags that alter the default matching behavior for the regular expression, UREGEX_CASE_INSENSITIVE, for example. For default behavior, set this parameter to zero. See |
enum URegexpFlag. All desired flags are bitwise-ORed together.
|pe ||Receives the position (line and column nubers) of any syntax error within the source regular expression string. If this information is not wanted, pass NULL for this parameter. |
|status ||Receives errors detected by this function. |
- The URegularExpression object representing the compiled pattern.
Definition at line 25 of file uregexc.cpp.
References UnicodeString::getBuffer(), UnicodeString::length(), NULL, U_FAILURE, and U_ILLEGAL_ARGUMENT_ERROR.