Main Page Class Hierarchy Compound List File List Compound Members File Members

# cmt_zero_one Class Reference

Inheritance diagram for cmt_zero_one

[legend]
Collaboration diagram for cmt_zero_one:

[legend]
List of all members.

## 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

## Constructor & Destructor Documentation

cmt_zero_one::cmt_zero_one ( | cmt_node * n )

| Definition at line 449 of file cmt_regexp.cxx.
    00449                                        : _node (n)
    00450 {
    00451 }

cmt_zero_one::~cmt_zero_one ( | )

| Definition at line 453 of file cmt_regexp.cxx.
    00454 {
    00455   delete _node;
    00456 }

## Member Function Documentation

const cmt_regexp::iterator cmt_zero_one::match ( | const cmt_string & text,
| int pos ) const`[virtual]`

| 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 }

## Member Data Documentation

cmt_node * cmt_zero_one::_node`[protected]`

| Definition at line 103 of file cmt_regexp.cxx.

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

- cmt_regexp.cxx