ICU 77.1
77.1
|
C API: Regular Expressions. More...
#include "unicode/utext.h"
#include "unicode/utypes.h"
#include "unicode/parseerr.h"
#include "unicode/localpointer.h"
Go to the source code of this file.
Namespaces | |
icu | |
File coll.h. | |
Typedefs | |
typedef struct URegularExpression | URegularExpression |
Structure representing a compiled regular expression, plus the results of a match operation. More... | |
typedef enum URegexpFlag | URegexpFlag |
Constants for Regular Expression Match Modes. More... | |
typedef UBool | URegexMatchCallback(const void *context, int32_t steps) |
Function pointer for a regular expression matching callback function. More... | |
typedef UBool | URegexFindProgressCallback(const void *context, int64_t matchIndex) |
Function pointer for a regular expression find callback function. More... | |
Enumerations | |
enum | URegexpFlag { UREGEX_CANON_EQ = 128 , UREGEX_CASE_INSENSITIVE = 2 , UREGEX_COMMENTS = 4 , UREGEX_DOTALL = 32 , UREGEX_LITERAL = 16 , UREGEX_MULTILINE = 8 , UREGEX_UNIX_LINES = 1 , UREGEX_UWORD = 256 , UREGEX_ERROR_ON_UNKNOWN_ESCAPES = 512 } |
Constants for Regular Expression Match Modes. More... | |
Functions | |
U_CAPI URegularExpression * | uregex_open (const UChar *pattern, int32_t patternLength, uint32_t flags, UParseError *pe, UErrorCode *status) |
Open (compile) an ICU regular expression. More... | |
U_CAPI URegularExpression * | uregex_openUText (UText *pattern, uint32_t flags, UParseError *pe, UErrorCode *status) |
Open (compile) an ICU regular expression. More... | |
U_CAPI URegularExpression * | uregex_openC (const char *pattern, uint32_t flags, UParseError *pe, UErrorCode *status) |
Open (compile) an ICU regular expression. More... | |
U_CAPI void | uregex_close (URegularExpression *regexp) |
Close the regular expression, recovering all resources (memory) it was holding. More... | |
U_CAPI URegularExpression * | uregex_clone (const URegularExpression *regexp, UErrorCode *status) |
Make a copy of a compiled regular expression. More... | |
U_CAPI const UChar * | uregex_pattern (const URegularExpression *regexp, int32_t *patLength, UErrorCode *status) |
Returns a pointer to the source form of the pattern for this regular expression. More... | |
U_CAPI UText * | uregex_patternUText (const URegularExpression *regexp, UErrorCode *status) |
Returns the source text of the pattern for this regular expression. More... | |
U_CAPI int32_t | uregex_flags (const URegularExpression *regexp, UErrorCode *status) |
Get the match mode flags that were specified when compiling this regular expression. More... | |
U_CAPI void | uregex_setText (URegularExpression *regexp, const UChar *text, int32_t textLength, UErrorCode *status) |
Set the subject text string upon which the regular expression will look for matches. More... | |
U_CAPI void | uregex_setUText (URegularExpression *regexp, UText *text, UErrorCode *status) |
Set the subject text string upon which the regular expression will look for matches. More... | |
U_CAPI const UChar * | uregex_getText (URegularExpression *regexp, int32_t *textLength, UErrorCode *status) |
Get the subject text that is currently associated with this regular expression object. More... | |
U_CAPI UText * | uregex_getUText (URegularExpression *regexp, UText *dest, UErrorCode *status) |
Get the subject text that is currently associated with this regular expression object. More... | |
U_CAPI void | uregex_refreshUText (URegularExpression *regexp, UText *text, UErrorCode *status) |
Set the subject text string upon which the regular expression is looking for matches without changing any other aspect of the matching state. More... | |
U_CAPI UBool | uregex_matches (URegularExpression *regexp, int32_t startIndex, UErrorCode *status) |
Attempts to match the input string against the pattern. More... | |
U_CAPI UBool | uregex_matches64 ( |