|
libdap Updated for version 3.18.1
|
#include <GNURegex.h>
Public Member Functions | |
| int | match (const char *s, int len, int pos=0) |
| Does the pattern match. More... | |
| Regex (const char *t) | |
| Regex (const char *t, int dummy) | |
| int | search (const char *s, int len, int &matchlen, int pos=0) |
| How much of the string does the pattern match. More... | |
a C++ interface to POSIX regular expression functions.
Definition at line 35 of file GNURegex.h.
| libdap::Regex::Regex | ( | const char * | t | ) |
Initialize a POSIX regular expression (using the 'extended' features).
| t | The regular expression pattern. |
Definition at line 96 of file GNURegex.cc.
| libdap::Regex::Regex | ( | const char * | t, |
| int | dummy | ||
| ) |
| libdap::Regex::~Regex | ( | ) |
Definition at line 86 of file GNURegex.cc.
| int libdap::Regex::match | ( | const char * | s, |
| int | len, | ||
| int | pos = 0 |
||
| ) |
Does the pattern match.
Does the regular expression match the string?
| s | The string |
| len | The length of string to consider |
| pos | Start looking at this position in the string |
Definition at line 115 of file GNURegex.cc.
| int libdap::Regex::search | ( | const char * | s, |
| int | len, | ||
| int & | matchlen, | ||
| int | pos = 0 |
||
| ) |
How much of the string does the pattern match.
Does the regular expression match the string?
| s | The string |
| len | The length of string to consider |
| matchlen | Return the length of the matched portion in this value-result parameter. |
| pos | Start looking at this position in the string |
Definition at line 147 of file GNURegex.cc.