SourcePro C++ 13.0 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
Encapsulates the results from a search using RWTRegex<T>. More...
#include <rw/tools/regexresult.h>
Public Member Functions | |
RWTRegexResult () | |
RWTRegexResult (const RWTRegexResult< T > &source) | |
RWTRegexResult (RWTRegexResult< T > &&rhs) | |
~RWTRegexResult () | |
size_t | getLength (size_t matchID=0) const |
size_t | getStart (size_t matchID=0) const |
operator bool () const | |
RWTRegexResult< T > & | operator= (const RWTRegexResult< T > &rhs) |
RWTRegexResult< T > & | operator= (RWTRegexResult< T > &&rhs) |
size_t | size () const |
RString | subString (const RString &str, size_t matchID=0) const |
void | swap (RWTRegexResult< T > &rhs) |
Class RWTRegexResult<T> is a class template that encapsulates the result of a RWTRegex<T>::matchAt() or RWTRegex<T>::search() operation executed on an instance of RWTRegex<T>.
None
RWTRegexResult< E >::RWTRegexResult | ( | ) |
Default constructor
RWTRegexResult< E >::RWTRegexResult | ( | const RWTRegexResult< T > & | source | ) |
Copy constructor
RWTRegexResult< E >::RWTRegexResult | ( | RWTRegexResult< T > && | rhs | ) |
Move constructor. The constructed instance takes ownership of the data owned by rhs.
RWTRegexResult< E >::~RWTRegexResult | ( | ) |
Destructor
size_t RWTRegexResult< E >::getLength | ( | size_t | matchID = 0 | ) | const |
Returns the length of the requested match.
size_t RWTRegexResult< E >::getStart | ( | size_t | matchID = 0 | ) | const |
Returns the offset of the start of the requested match.
RWTRegexResult< E >::operator bool | ( | ) | const |
Match operator
RWTRegexResult<T>& RWTRegexResult< E >::operator= | ( | const RWTRegexResult< T > & | rhs | ) |
Assignment operator
RWTRegexResult<T>& RWTRegexResult< E >::operator= | ( | RWTRegexResult< T > && | rhs | ) |
Move assignment. Self takes ownership of the data owned by rhs.
size_t RWTRegexResult< E >::size | ( | ) | const |
Returns the number of match identifiers (matchID
) available for request, including the 0
matchID. Hence, the largest matchID
that can be requested is size() -1.
RString RWTRegexResult< E >::subString | ( | const RString & | str, |
size_t | matchID = 0 |
||
) | const |
Returns a substring containing the requested match. Available only in C++ Standard Library builds.
void RWTRegexResult< E >::swap | ( | RWTRegexResult< T > & | rhs | ) |
Swaps the data owned by self with the data owned by rhs.
Copyright © 2014 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.
Provide feedback to Rogue Wave about its documentation.