Class Index | Cross Index | Namespace Index |
Regular Expression Match
Contained in: global
Derived from:
none
Derived by:
none
#include "general/regexmatch.hh"
public function member index: |
|||
RegexMatch | (size_t nmatches = 0) throw (std::bad_alloc); | ||
~RegexMatch | () throw ( ); | ||
inline size_t | getNMatches | () const throw ( ); | Get Number of Matches |
inline const char* | getSubEnd | (size_t m) throw ( ); | Get Substring End |
inline int | getSubEndOffset | (size_t m) throw ( ); | Get Substring Ending Offset |
inline size_t | getSubLength | (size_t m) throw ( ); | Get Substring Length |
inline const char* | getSubStart | (size_t m) throw ( ); | Get Substring Start |
inline int | getSubStartOffset | (size_t m) throw ( ); | Get Substring Starting Offset |
std::string | getSubString | (size_t m) throw ( ); | |
inline bool | isSubValid | (size_t m) throw ( ); | Check Substring Match Validity |
bool | match | (const Regex& r, const char* string, int eflags = 0) throw ( ); | |
Returns the maximum number of matches which this object can hold. This is equal to the number of matches which was passed to the constructor.
Return value:
size_t
Returns a pointer to the end of a substring match. If the requested match is not valid, a null pointer is returned.
Parameters:
Parameter | Description |
size_t m |
Return value:
const char*
Returns the offset to the end of a substring match. If the requested match is not valid, then -1 is returned.
Parameters:
Parameter | Description |
size_t m |
Return value:
const char*
Returns the number of characters in a substring match.
Parameters:
Parameter | Description |
size_t m |
Return value:
size_t
Returns a pointer to the beginning of a substring match. If the requested match is not valid, a null pointer is returned.
Parameters:
Parameter | Description |
size_t m |
Return value:
const char*
Returns the offset to the beginning of a substring match. If the requested match is not valid, then -1 is returned.
Parameters:
Parameter | Description |
size_t m |
Return value:
const char*
This returns whether or not a substring match exists at the specified index.
Parameters:
Parameter | Description |
size_t m |
Return value:
bool