DCL 4.0
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 41 of file Regex.cpp.

42{
43 __results = NULL;
44 __size = 0;
45}
#define NULL
Definition Config.h:340

◆ ~MatchResults()

Regex::MatchResults::~MatchResults ( )

Definition at line 47 of file Regex.cpp.

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

Member Function Documentation

◆ operator[]()

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

Definition at line 66 of file Regex.cpp.

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

◆ 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: