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

RWTRegexResult<T>

Module:  Essential Tools Module   Group:  String Processing Classes


Does not inherit

Local Index

Members

Synopsis

#include <rw/tools/regex.h>
#include <rw/cstring.h>

RWTRegex<char> pattern("a+");
RWTRegexResult<char> result = pattern.search("aabbccaadd");

Description

Class RWTRegexResult<T> is a class template that encapsulates the result of a matchAt or search operation executed on an instance of RWTRegex<T>.

Persistence

None

Example

Program Output:

Public Constructors

RWTRegexResult();
RWTRegexResult(const RWTRegexResult<E>& source);

Destructor

~RWTRegexResult();

Operators

RWTRegexResult<E>&      
operator=(const RWTRegexResult& rhs);
bool
operator() const

Public Member Operators

size_t
size() const;
size_t
getStart(size_t matchID = 0) const;
size_t 
getLength(size_t matchID = 0) const;
RString
subString(const RString& 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.