Logo Search packages:      
Sourcecode: icu version File versions  Download package

regex.h File Reference

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

#include "unicode/utypes.h"
#include "unicode/uobject.h"
#include "unicode/unistr.h"
#include "unicode/utext.h"
#include "unicode/parseerr.h"
#include "unicode/uregex.h"
Include dependency graph for regex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RegexMatcher
class  RegexPattern

Defines

#define RegexPatternDump(pat)

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.

Note that by constructing RegexMatcher objects directly from regular expression pattern strings application code can be simplified and the explicit need for RegexPattern objects can usually be eliminated.

Definition in file regex.h.


Generated by  Doxygen 1.6.0   Back to index