libcommonc++  0.7
RegExpMatch Class Reference

A regular expression substring match. More...

#include <RegExp.h++>

Public Member Functions

 RegExpMatch ()
 Constructor. More...
 
bool isValid () const
 Determine if this match is valid. More...
 
uint_t getStartIndex () const
 Get the start index of the substring. More...
 
uint_t getEndIndex () const
 Get the end index of the substring. More...
 

Friends

class RegExp
 

Detailed Description

A regular expression substring match.

This class represents the portion of a string that matched a subgroup in a regular expression.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ RegExpMatch()

RegExpMatch ( )
inline

Constructor.

Member Function Documentation

◆ getEndIndex()

uint_t getEndIndex ( ) const
inline

Get the end index of the substring.

If both the start and end index are 0, a non-match is indicated.

◆ getStartIndex()

uint_t getStartIndex ( ) const
inline

Get the start index of the substring.

◆ isValid()

bool isValid ( ) const
inline

Determine if this match is valid.

Friends And Related Function Documentation

◆ RegExp

friend class RegExp
friend

The documentation for this class was generated from the following file: