#include <cxxtools/regex.h>
Public Member Functions | |
| unsigned | size () const |
| returns the number of expressions, which were found | |
| regoff_t | offsetBegin (unsigned n) const |
| returns the start position of the n-th expression | |
| regoff_t | offsetEnd (unsigned n) const |
| returns the end position of the n-th expression | |
| bool | has (unsigned n) const |
| returns true if the n-th element is set. | |
| std::string | get (unsigned n) const |
| returns the n-th element. No range checking is done. | |
| std::string | format (const std::string &s) const |
| replace each occurence of "$n" with the n-th element (n: 0..9). | |
| std::string | operator[] (unsigned n) const |
| returns the n-th element. No range checking is done. | |
Friends | |
| class | Regex |