DCL 3.7.4
Loading...
Searching...
No Matches
Regex::MatchResults Class Reference

#include <Regex.h>

Public Member Functions

 MatchResults ()
 ~MatchResults ()
const match_resultoperator[] (size_t _index) const __DCL_THROWS1(InvalidIndexException *)
size_t size () const

Friends

class Regex

Detailed Description

Definition at line 45 of file Regex.h.

Constructor & Destructor Documentation

◆ MatchResults()

Regex::MatchResults::MatchResults ( )

Definition at line 39 of file Regex.cpp.

40{
41 __results = NULL;
42 __size = 0;
43}
#define NULL
Definition Config.h:312

◆ ~MatchResults()

Regex::MatchResults::~MatchResults ( )

Definition at line 45 of file Regex.cpp.

46{
47 if (__results) {
48 __matches_free(__results);
49// __results = NULL;
50 }
51}
void __matches_free(match_result *_results)
Definition _regex.cpp:89

Member Function Documentation

◆ operator[]()

const match_result & Regex::MatchResults::operator[] ( size_t _index) const

Definition at line 64 of file Regex.cpp.

66{
67 __DCL_ASSERT(__results != NULL);
68
69 if (!(_index < __size)) {
70 throw(new InvalidIndexException(0, (ssize_t)(__size - 1), _index));
71 }
72 return __results[_index];
73}
#define __DCL_ASSERT(expr)
Definition Object.h:394

◆ size()

size_t Regex::MatchResults::size ( ) const
inline

Definition at line 57 of file Regex.h.

57{ return __size; }

◆ Regex

friend class Regex
friend

Definition at line 51 of file Regex.h.


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