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

# cmt_not_char_list_node Class Reference

Inheritance diagram for cmt_not_char_list_node

[legend]
Collaboration diagram for cmt_not_char_list_node:

[legend]
List of all members.

## Public Methods
| cmt_not_char_list_node (cmt_string list)
const cmt_regexp::iterator | match (const cmt_string& text, int pos) const

## Constructor & Destructor Documentation

cmt_not_char_list_node::cmt_not_char_list_node ( | cmt_string list )

| Definition at line 409 of file cmt_regexp.cxx.
    00409                                                                :
    00410         cmt_char_list_node (list)
    00411 {
    00412 }

## Member Function Documentation

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

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

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

- cmt_regexp.cxx