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

# cmt_string_node Class Reference

Inheritance diagram for cmt_string_node

[legend]
Collaboration diagram for cmt_string_node:

[legend]
List of all members.

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

## Constructor & Destructor Documentation

cmt_string_node::cmt_string_node ( | const cmt_string & s )

| Definition at line 296 of file cmt_regexp.cxx.
    00297 {
    00298   _s = s;
    00299 }

## Member Function Documentation

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

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

## Member Data Documentation

cmt_string cmt_string_node::_s`[private]`

| Definition at line 57 of file cmt_regexp.cxx.

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

- cmt_regexp.cxx