Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internationalization Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWURegexResult

Module:  Internationalization Module   Group:  Unicode String Processing


Does Not Inherit

Local Index

Members

Header File

#include <rw/i18n/RWURegexResult.h>

Description

RWURegexResult stores regular expression match results.

Instances of RWURegexResult are returned from the RWURegularExpression methods search() and matchAt(), and by RWURegexMatchIterator member operators operator*() and operator->(). These results can be used later to obtain details concerning the regular expression match.

This class has a conversion to bool operator, which indicates whether the search() or matchAt() operation was, in fact, a match. Iterators to the beginning and ending of the overall match, or of a subexpression match, can be obtained.

Example

Related Classes

RWURegularExpression

Public Constructors

RWURegexResult(const RWURegexResult& source);

Public Destructor

~RWURegexResult();

Public Member Operators

RWURegexResult&
operator=(const RWURegexResult& rhs);
operator bool() const;

Public Member Functions

RWUConstStringIterator
begin(const RWUString& str, size_t matchID = 0) const;
RWUConstStringIterator
end(const RWUString& str, size_t matchID = 0) const;
size_t
getLength(size_t matchID = 0) const;
size_t
getStart(size_t matchID = 0) const;
size_t
subCount() const;
RWUConstSubString
subString(const RWUString& str, size_t matchID = 0) const;


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.