Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Ase::PcRe2 Struct Reference

Public Member Functions

 PcRe2 (const std::string &pattern, Re::Flags flags)
 
ssize_t search (const std::string &input)
 
std::string grep (const String &input, int group)
 
std::vector< std::stringfindall (const String &input_string)
 
std::string sub (const std::string &substitution, const std::string &input, ssize_t maxsubst=SSIZE_MAX)
 

Public Attributes

pcre2_code * prcode
 
int errorcode
 

Detailed Description

Definition at line 46 of file regex.cc.

Constructor & Destructor Documentation

◆ PcRe2()

Ase::PcRe2::PcRe2 ( const std::string pattern,
Re::Flags  flags 
)
explicit

Definition at line 50 of file regex.cc.

◆ ~PcRe2()

Ase::PcRe2::~PcRe2 ( )

Definition at line 58 of file regex.cc.

Member Function Documentation

◆ findall()

std::vector< std::string > Ase::PcRe2::findall ( const String input_string)

Definition at line 102 of file regex.cc.

◆ grep()

std::string Ase::PcRe2::grep ( const String input,
int  group 
)

Definition at line 81 of file regex.cc.

◆ search()

ssize_t Ase::PcRe2::search ( const std::string input)

Definition at line 63 of file regex.cc.

◆ sub()

std::string Ase::PcRe2::sub ( const std::string substitution,
const std::string input,
ssize_t  maxsubst = SSIZE_MAX 
)

Definition at line 181 of file regex.cc.

Member Data Documentation

◆ errorcode

int Ase::PcRe2::errorcode

Definition at line 48 of file regex.cc.

◆ prcode

pcre2_code* Ase::PcRe2::prcode

Definition at line 47 of file regex.cc.


The documentation for this struct was generated from the following file: