MatchResults

Namespace: Regex

Regular expression match results

Type: Reference type

Methods

Declaration Description
MatchResults@ MatchResults() Constructor
MatchResults@ MatchResults(const MatchResults@ pOther) Copy constructor
bool IsEmpty() const Returns whether this match results object is empty or not
size_t GetSize() const Returns the number of matches
size_t GetMaxSize() const Returns the maximum size
SubMatch opIndex(size_t uiIndex) const Returns the sub match object at the given index
SubMatch GetPrefix() const Gets the prefix submatch
SubMatch GetSuffix() const Gets the suffix submatch
int GetLength(size_t uiIndex = 0) const Gets the length of the given submatch
int GetPosition(size_t uiIndex = 0) const Gets the position of the given submatch
string GetString(size_t uiIndex = 0) const Gets the given submatch as a string
string Format(const string& in szFormat, MatchFlagType flags = Regex::match_default) const Gets the length of the given submatch
void Swap(MatchResults@ other) Swaps these match results with the given results.