Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

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.

Data Structures

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
}
 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 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.


Enumeration Type Documentation

anonymous enum
 

Constants for Regular Expression Match Modes.

ICU 2.4

Enumeration values:
UREGEX_CANON_EQ  Forces normalization of pattern and strings.

ICU 2.4

UREGEX_CASE_INSENSITIVE  Enable case insensitive matching.

ICU 2.4

UREGEX_COMMENTS  Allow white space and comments within patterns ICU 2.4.
UREGEX_DOTALL  If set, '.' matches line terminators, otherwise '.' matching stops at line end.

ICU 2.4

UREGEX_MULTILINE  Control behavior of "$" and "^" If set, recognize line terminators within string, otherwise, match only at start and end of input string.

ICU 2.4


Generated on Wed Sep 3 17:47:10 2003 for ICU 2.6 by doxygen 1.3.2