Doxygen
regex.cpp 文件参考
#include "regex.h"
#include <cstdint>
#include <vector>
#include <cctype>
#include <cassert>
#include <algorithm>
+ regex.cpp 的引用(Include)关系图:

浏览源代码.

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

命名空间

 reg
 Namespace for the regular expression functions
 

宏定义

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

函数

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 (const std::string &pattern)
 
bool reg::search (const std::string &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 (const std::string &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 (const std::string &str, Match &match, const Ex &re)
 Matches a given string str for a match against regular expression re. 更多...
 
bool reg::match (const std::string &str, const Ex &re)
 Matches a given string str for a match against regular expression re. 更多...
 
std::string reg::replace (const std::string &str, const Ex &re, const std::string &replacement)
 Searching in a given input string for parts that match regular expression re and replaces those parts by string replacement. 更多...
 

宏定义说明

◆ DBG

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

在文件 regex.cpp27 行定义.

◆ ENABLE_DEBUG

#define ENABLE_DEBUG   0

在文件 regex.cpp23 行定义.