Public Methods | |
cmt_string_node (const cmt_string& s) | |
const cmt_regexp::iterator | match (const cmt_string& text, int pos) const |
Private Attributes | |
cmt_string | _s |
|
Definition at line 296 of file cmt_regexp.cxx. 00297 { 00298 _s = s; 00299 } |
|
Reimplemented from cmt_node. Definition at line 301 of file cmt_regexp.cxx. 00303 { 00304 if ((pos < 0) || (pos > text.size ())) 00305 { 00306 return (cmt_regexp::iterator::null ()); 00307 } 00308 00309 int length = _s.size (); 00310 00311 cmt_string s = text.substr (pos, length); 00312 00313 if ((length == 0) || (s == _s)) 00314 { 00315 return (cmt_regexp::iterator (pos, length)); 00316 } 00317 00318 return (cmt_regexp::iterator::null ()); 00319 } |
|
Definition at line 57 of file cmt_regexp.cxx. |