Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

regex.h File Reference

C++ API: Regular Expressions. More...

#include "unicode/utypes.h"
#include "unicode/uobject.h"
#include "unicode/unistr.h"
#include "unicode/parseerr.h"

Go to the source code of this file.

Compounds

class  RegexMatcher
 class RegexMatcher bundles together a reular expression pattern and input text to which the expression can be applied. More...

class  RegexPattern
 Class RegexPattern represents a compiled regular expression. More...


Enumerations

enum  {
  UREGEX_CANON_EQ = 128, UREGEX_CASE_INSENSITIVE = 2, UREGEX_COMMENTS = 4, UREGEX_DOTALL = 32,
  UREGEX_MULTILINE = 8, UREGEX_UWORD = 256
}
 Constants for Regular Expression Match Modes. More...


Variables

U_NAMESPACE_BEGIN class RegexMatcher


Detailed Description

C++ API: Regular Expressions.

Regular Expression API

The ICU API for processing regular expressions consists of two classes, RegexPattern and RegexMatcher. RegexPattern objects represent a pre-processed, or compiled regular expression. They are created from a regular expression pattern string, and can be used to create <RegexMatcher> objects for the pattern.

Class RegexMatcher bundles together a regular expression pattern and a target string to which the search pattern will be applied. RegexMatcher includes API for doing plain find or search operations, for search and replace operations, and for obtaining detailed information about bounds of a match.

Definition in file regex.h.


Enumeration Type Documentation

anonymous enum
 

Constants for Regular Expression Match Modes.

Draft:
This API has been introduced in ICU 2.4. It is still in draft state and may be modified in a future release.
Enumeration values:
UREGEX_CANON_EQ  Forces normalization of pattern and strings.

Draft:
This API has been introduced in ICU 2.4. It is still in draft state and may be modified in a future release.
UREGEX_CASE_INSENSITIVE  Enable case insensitive matching.

Draft:
This API has been introduced in ICU 2.4. It is still in draft state and may be modified in a future release.
UREGEX_COMMENTS  Allow white space and comments within patterns.

Draft:
This API has been introduced in ICU 2.4. It is still in draft state and may be modified in a future release.
UREGEX_DOTALL  If set, '.' matches line terminators, otherwise '.' matching stops at line end.

Draft:
This API has been introduced in ICU 2.4. It is still in draft state and may be modified in a future release.
UREGEX_MULTILINE  Control behavior of "$" and "^" If set, recognize line terminators within string, otherwise, match only at start and end of input string.

Draft:
This API has been introduced in ICU 2.4. It is still in draft state and may be modified in a future release.
UREGEX_UWORD  Unicode word boundaries.

If set, uses the Unicode TR 29 definition of word boundaries. Warning: Unicode word boundaries are quite different from traditional regular expression word boundaries. See http://unicode.org/reports/tr29/#Word_Boundaries

Draft:
This API has been introduced in ICU 2.8. It is still in draft state and may be modified in a future release.

Definition at line 66 of file regex.h.


Variable Documentation

U_NAMESPACE_BEGIN class RegexMatcher
 

Definition at line 52 of file regex.h.


Generated on Mon Nov 24 14:35:48 2003 for ICU 2.8 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001