Doxygen
Loading...
Searching...
No Matches
regex.cpp File Reference
#include "regex.h"
#include <cstdint>
#include <vector>
#include <cctype>
#include <cassert>
#include <algorithm>
+ Include dependency graph for regex.cpp:

Go to the source code of this file.

Classes

class  reg::PToken
 Class representing a token in the compiled regular expression token stream. More...
 
class  reg::Ex::Private
 Private members of a regular expression. More...
 

Namespaces

namespace  reg
 Namespace for the regular expression functions.
 

Macros

#define ENABLE_DEBUG   0
 
#define DBG(fmt, ...)
 

Functions

static bool reg::isspace (char c)
 
static bool reg::isalpha (char c)
 
static bool reg::isdigit (char c)
 
static bool reg::isalnum (char c)
 
static std::string reg::wildcard2regex (std::string_view pattern)
 
bool reg::search (std::string_view str, Match &match, const Ex &re, size_t pos=0)
 Search in a given string str starting at position pos for a match against regular expression re.
 
bool reg::search (std::string_view str, const Ex &re, size_t pos=0)
 Search in a given string str starting at position pos for a match against regular expression re.
 
bool reg::match (std::string_view str, Match &match, const Ex &re)
 Matches a given string str for a match against regular expression re.
 
bool reg::match (std::string_view str, const Ex &re)
 Matches a given string str for a match against regular expression re.
 
std::string reg::replace (std::string_view str, const Ex &re, std::string_view replacement)
 Searching in a given input string for parts that match regular expression re and replaces those parts by string replacement.
 

Macro Definition Documentation

◆ DBG

#define DBG ( fmt,
... )
Value:
do {} while(0)

Definition at line 27 of file regex.cpp.

◆ ENABLE_DEBUG

#define ENABLE_DEBUG   0

Definition at line 23 of file regex.cpp.