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

RWURegexMatchIterator

Module:  Internationalization Module   Group:  Unicode String Processing


Does Not Inherit

Local Index

Members

Header File

#include <rw/i18n/RWURegexMatchIterator.h>

Description

RWURegexMatchIterator provides a convenient interface for finding all successive matches of a particular regular expression pattern in a string. RWURegexMatchIterator is a forward iterator, allowing forward searches over the specified string using pre-increment and post-increment operators

By default, only non-overlapping matches are reported, but this behavior can be changed in the constructor.


NOTE -- As with many iterators, changing the item being iterated over invalidates the iterator. If the regular expression pattern or search string used by an RWURegexMatchIterator is changed, then the iterator is invalidated.

Example

Related Classes

RWURegularExpression, RWURegexResult

Public Typedefs

typedef RW_SL_STD(forward_iterator_tag) iterator_category;
typedef value_type* pointer;
typedef value_type& reference;
typedef RWURegexResult value_type;

Public Constructors

RWURegexMatchIterator();
RWURegexMatchIterator(const RWURegexMatchIterator& source);
RWURegexMatchIterator(RWURegularExpression& regex,
                      const RWUString& str);
RWURegexMatchIterator(RWURegularExpression& regex,
                      const RWUString& str,
                      const RWUConstStringIterator& start);
RWURegexMatchIterator(RWURegularExpression& regex,
                      const RWUString& str,
                      const RWUConstStringIterator& start,
                      const RWUConstStringIterator& end,
                      bool overlap = false);

Public Destructor

~RWURegexMatchIterator();

Public Member Operators

RWURegexMatchIterator&
operator=(const RWURegexMatchIterator& rhs);
RWURegexMatchIterator&
operator++();
RWURegexMatchIterator
operator++(int);
RWURegexResult
operator*() const;
const RWURegexResult*
operator->() const;
bool
operator==(const RWURegexMatchIterator& rhs) const;
bool
operator!=(const RWURegexMatchIterator& rhs) 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.