"Fossies" - the Fresh Open Source Software Archive

Member "regex_8h.html" (3 Oct 2019, 6718 Bytes) of package /linux/misc/icu4c-65_1-docs.zip:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

ICU 65.1  65.1
Data Structures | Namespaces
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"

Go to the source code of this file.

Data Structures

class  icu::RegexPattern
 Class RegexPattern represents a compiled regular expression. More...
 
class  icu::RegexMatcher
 class RegexMatcher bundles together a regular expression pattern and input text to which the expression can be applied. More...
 

Namespaces

 icu
 File coll.h.
 

Detailed Description

C++ API: Regular Expressions.

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.