Skip to content

Struct Ase::PcRe2

ClassList > Ase > PcRe2

Public Attributes

Type Name
int errorcode = 0
pcre2_code * prcode = nullptr

Public Functions

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

Public Attributes Documentation

variable errorcode

int Ase::PcRe2::errorcode;

variable prcode

pcre2_code* Ase::PcRe2::prcode;

Public Functions Documentation

function PcRe2

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

function findall

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

function grep

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

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

function sub

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

function ~PcRe2

inline Ase::PcRe2::~PcRe2 () 


The documentation for this class was generated from the following file /__w/anklang/anklang/ase/regex.cc