SF Area/Download
Docs:
User
Internal/Devel
Support This Project
SourceForge.net Logo

CSMatch Class Reference

Item storage. More...

#include <csregex.h>

List of all members.

Public Attributes

unsigned int buf_idx
 index into the compiled string.
unsigned int start
 start of match. index into parse string.
unsigned int end
 end of match.
int rpt
 index of repeat. -1 is empty.


Detailed Description

Item storage.

Stores the state for each item. Note that start and end have different meaning when this item is for a closing round bracket (rg_cpn, rg_cpa, rg_cpa1..rg_cpa9). In that case, start is the buf_idx of the opening round bracket, and end is the match index of the opening round braket. As alternatives are choosen, the buf_idx of the opening round bracket is advanced to the next | rg_orm or closing round bracket (before backtracking).

While the open bracket is open and we have not yet reached the closing bracket, the last entry in par will hold the opening bracket's original buf_idx and also its match index. However, after it is closed, this par entry is deleted, but this information must still be saved in case of backtracking. So it is stored in the start and end entries of the closing bracket.

Definition at line 100 of file csregex.h.


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

Docs for CSRegEx created on Tue Dec 11 14:36:53 2007 by Doxygen 1.4.3


Webmaster: Cléo Saulnier