Compound list   File list   Header files   Compound Members   File Members  

QaRegExpMatch Class Reference

Holds match offset and strings from a previous match. More...

#include <qaregexpmatch.hpp>

List of all members.

Public Members


Detailed Description

Holds match offset and strings from a previous match.

It keeps a list of QaRegExpRange's from a match done earlier. It will also calculate the match strings on demand.


Member Function Documentation

QaRegExpMatch::QaRegExpMatch()

An empty match.

QaRegExpMatch::QaRegExpMatch( const QString &s )

Just the string

QaRegExpMatch::QaRegExpMatch( const QString &s, const regmatch_t m[], int size )

A match of the given string.

QaRegExpMatch::~QaRegExpMatch()

Destroys the object

void QaRegExpMatch::appendMatch( const QaRegExpRange &r )

Appends a match range to the list.

const QStringList& QaRegExpMatch::toString()

Will calculate the substrings of the match if not already done.

Returns:
A list of strings.

const QString& QaRegExpMatch::toString( int o )

Returns:
The given substring.

const QaRegExpRange& QaRegExpMatch::operator[]( int o ) const

Returns:
The range of a given subexpression.


The documentation for this class was generated from the following files:
Generated at Mon Aug 16 02:11:02 1999 for QaRegExp by doxygen  written by Dimitri van Heesch, © 1997-1998