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

RWTRegexMatchIterator<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+");
RWCString      str("aabbccaadd");

RWTRegexMatchIterator<char> i(pattern, str);

Description

Class RWTRegexMatchIterator<T> is an iterator class provided with RWTRegex for iteration over matches of a pattern in a given string.

Persistence

None

Example

Public Constructors

RWTRegexMatchIterator();
RWTRegexMatchIterator(const RWTRegexMatchIterator<T>& source);
RWTRegexMatchIterator(RWTRegex<T>&       regex,
                      const RChar*       str,
                      size_t             start  = size_t(0),
                      size_t             length = size_t(-1));
RWTRegexMatchIterator(RWTRegex<T>&       regex,
                      const RString&     str,
                      size_t             start  = size_t(0),
                      size_t             length = size_t(-1));

Destructor

~RWTRegexMatchIterator();

Operators

RWTRegexMatchIterator&      
operator=(const RWTRegexMatchIterator& rhs);
RWTRegexMatchIterator&      
operator++();
const RWTRegexMatchIterator 
operator++(int);
RWTRegexMatchIterator&      
operator+=(size_t count);
RWTRegexResult<T>&                
operator*() const;
RWTRegexResult<T>*                
operator->() const;
RWBoolean                   
operator==(const RWTRegexMatchIterator& rhs) const;
RWBoolean                   
operator!=(const RWTRegexMatchIterator& rhs) 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.