Public Methods | |
cmt_not_char_list_node (cmt_string list) | |
const cmt_regexp::iterator | match (const cmt_string& text, int pos) const |
|
Definition at line 409 of file cmt_regexp.cxx. 00409 : 00410 cmt_char_list_node (list) 00411 { 00412 } |
|
Reimplemented from cmt_char_list_node. Definition at line 414 of file cmt_regexp.cxx. 00416 { 00417 if ((pos < 0) || (pos > text.size ())) 00418 { 00419 return (cmt_regexp::iterator::null ()); 00420 } 00421 00422 char c = text[pos]; 00423 00424 int i; 00425 00426 for (i = 0; i < _choices.size (); i++) 00427 { 00428 if (c == _choices[i]) return (cmt_regexp::iterator::null ()); 00429 } 00430 00431 return (cmt_regexp::iterator (pos, 1)); 00432 } |