|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
�PREV CLASS�� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CResult { public: CResult(); ~CResult(); public: void Add(int nOffset, int nLength); int GetSize(); void GetAt(int nIndex, int &nOffset, int &nLength); void RemoveAll(); };
The capture array obtained as the result of successful regular expression match.
The capture array consists of pairs (offset, length). The nth element of this array contains the offset of the nth capture in the input string, and the length of the nth capture.
Constructor/Destructor Summary | |
CResult
();
����������Constructs the capture array. |
|
~CResult
();
����������Destroys the capture array. |
Function Summary | |
void
|
Add
(int nOffset, int nLength);
����������Adds an (offset, length) pair to the end of this capture array. |
int
|
GetSize
();
����������Returns a number of captures in this capture array. |
void
|
GetAt
(int nIndex, int &nOffset, int &nLength);
����������Returns parameters of a capture at the specified index. |
void
|
RemoveAll
();
����������Removes all captures from this capture array. |
Constructor/Destructor Detail |
CResult();
Constructs the capture array.
~CResult();
Destroys the capture array.
Function Detail |
void Add(int nOffset, int nLength);
Adds an (offset, length) pair to the end of this capture array.
nOffset
- the offset of the capture in
the input stringnLength
- the length of the captureint GetSize();
Returns a number of captures in this capture array.
void GetAt(int nIndex, int &nOffset, int &nLength);
Returns parameters of a capture at the specified index.
nIndex
- the index (zero-based)nOffset
- on return, the offset of the
capture at the specified indexnLength
- on return, the length of the
capture at the specified indexvoid RemoveAll();
Removes all captures from this capture array.
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
�PREV CLASS�� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |