Public Methods | |
cmt_zero_one (cmt_node* n) | |
~cmt_zero_one () | |
const cmt_regexp::iterator | match (const cmt_string& text, int pos) const |
Protected Attributes | |
cmt_node* | _node |
|
Definition at line 449 of file cmt_regexp.cxx. 00449 : _node (n) 00450 { 00451 } |
|
Definition at line 453 of file cmt_regexp.cxx. 00454 { 00455 delete _node; 00456 } |
|
Reimplemented from cmt_node. Definition at line 458 of file cmt_regexp.cxx. 00460 { 00461 if ((pos < 0) || (pos > text.size ())) 00462 { 00463 return (cmt_regexp::iterator::null ()); 00464 } 00465 00466 int total = 0; 00467 00468 if (pos < text.size ()) 00469 { 00470 const cmt_regexp::iterator it = _node->match (text, pos); 00471 if (it != cmt_regexp::iterator::null ()) 00472 { 00473 total += it._length; 00474 pos += it._length; 00475 } 00476 } 00477 00478 return (cmt_regexp::iterator (pos, total)); 00479 } |
|
Definition at line 103 of file cmt_regexp.cxx. |