Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

cmt_any_node Class Reference

Inheritance diagram for cmt_any_node:

Inheritance graph
[legend]
Collaboration diagram for cmt_any_node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

const cmt_regexp::iterator match (const cmt_string &text, int pos) const
void dump () const

Member Function Documentation

void cmt_any_node::dump  )  const [virtual]
 

Reimplemented from cmt_regexp_node.

Definition at line 524 of file cmt_regexp.cxx.

References tab().

00525 {
00526   tab (); cout << "any (" << this << ") " << endl;
00527 }

const cmt_regexp::iterator cmt_any_node::match const cmt_string text,
int  pos
const [virtual]
 

Reimplemented from cmt_regexp_node.

Definition at line 513 of file cmt_regexp.cxx.

References cmt_regexp::iterator::null(), and cmt_string::size().

00515 {
00516   if ((pos < 0) | (pos >= text.size ())) 
00517     {
00518       return (cmt_regexp::iterator::null ());
00519     }
00520   
00521   return (cmt_regexp::iterator (pos, 1));
00522 }


The documentation for this class was generated from the following file:
Generated on Mon May 2 10:25:28 2005 for CMT by doxygen 1.3.5