|
Anklang-0.3.0.dev551+gad1415e2 anklang-0.3.0.dev551+gad1415e2
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Wrapper for std::regex to simplify usage and reduce compilation time. More...
#include "regex.hh"
Public Types | |
| enum | Flags : int32_t { DEFAULT , ERE , I , M , N , S , X , XX , J , U } |
Static Public Member Functions | |
| static StringS | findall (const String ®ex, const String &input, Flags=DEFAULT) |
Find regex in input and return non-overlapping matches. | |
| static ssize_t | search (const String ®ex, const String &input, Flags=DEFAULT) |
Find regex in input and return match position >= 0 or return < 0 otherwise. | |
| static String | grep (const String ®ex, const String &input, int group=0, Flags=DEFAULT) |
Find regex in input and return matching string. | |
| static String | sub (const String ®ex, const String &subst, const String &input, Flags=DEFAULT) |
Substitute regex in input by sbref with backreferences $00…$99 or $&. | |
| static String | sub (const String ®ex, const String &subst, const String &input, uint count, Flags=DEFAULT) |
Substitute regex in input with subst up to count times. | |
Wrapper for std::regex to simplify usage and reduce compilation time.
|
static |
Find regex in input and return matching string.
Definition at line 225 of file regex.cc.
Referenced by Ase::WebSocketConnection::authenticated().
|
static |
Find regex in input and return match position >= 0 or return < 0 otherwise.
Definition at line 217 of file regex.cc.
Referenced by Ase::WebSocketConnection::http_request().