Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide

RWTRegexResult<T>

Module:  Essential Tools Module   Group:  String Processing


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

Public Constructors

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

Destructor

~RWTRegexResult();

Operators

RWTRegexResult<E>&      
operator=(const RWTRegexResult& rhs);
RWBoolean
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

©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, 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.