#include "lo-regexp.h"
Classes | |
class | match_data |
class | match_element |
class | opts |
Public Member Functions | |
regexp (const regexp &)=default | |
regexp (const std::string &pat="", const regexp::opts &opt=regexp::opts(), const std::string &w="regexp") | |
~regexp () | |
void | compile (const std::string &pat, const regexp::opts &opt=regexp::opts()) |
bool | is_match (const std::string &buffer) const |
Array< bool > | is_match (const string_vector &buffer) const |
match_data | match (const std::string &buffer) const |
regexp & | operator= (const regexp &rx)=default |
std::string | replace (const std::string &buffer, const std::string &replacement) const |
Static Public Member Functions | |
static bool | is_match (const std::string &pat, const std::string &buffer, const regexp::opts &opt=regexp::opts(), const std::string &who="regexp") |
static Array< bool > | is_match (const std::string &pat, const string_vector &buffer, const regexp::opts &opt=regexp::opts(), const std::string &who="regexp") |
static match_data | match (const std::string &pat, const std::string &buffer, const regexp::opts &opt=regexp::opts(), const std::string &who="regexp") |
static std::string | replace (const std::string &pat, const std::string &buffer, const std::string &replacement, const regexp::opts &opt=regexp::opts(), const std::string &who="regexp") |
Definition at line 41 of file lo-regexp.h.
|
inline |
Definition at line 48 of file lo-regexp.h.
|
default |
|
inline |
Definition at line 61 of file lo-regexp.h.
References free().
|
inline |
Definition at line 63 of file lo-regexp.h.
bool regexp::is_match | ( | const std::string & | buffer | ) | const |
Definition at line 582 of file lo-regexp.cc.
References match().
Referenced by symbol_table::clear_function_regexp(), call_stack::clear_global_variable_regexp(), call_stack::do_global_who_two(), is_match(), is_match(), and is_match().
|
inlinestatic |
Definition at line 91 of file lo-regexp.h.
References is_match().
|
inlinestatic |
Definition at line 101 of file lo-regexp.h.
References is_match().
Array< bool > regexp::is_match | ( | const string_vector & | buffer | ) | const |
Definition at line 590 of file lo-regexp.cc.
References is_match(), len, and string_vector::numel().
regexp::match_data regexp::match | ( | const std::string & | buffer | ) | const |
Definition at line 327 of file lo-regexp.cc.
References current_liboctave_error_handler, regexp::opts::emptymatch(), len, OCTAVE_LOCAL_BUFFER, octave_u8_check_wrapper(), regexp::opts::once(), PCRE_MATCHLIMIT_MAX, and Matrix::resize().
Referenced by is_match(), match(), and replace().
|
inlinestatic |
Definition at line 81 of file lo-regexp.h.
References match().
std::string regexp::replace | ( | const std::string & | buffer, |
const std::string & | replacement | ||
) | const |
Definition at line 610 of file lo-regexp.cc.
References match(), and Array< T, Alloc >::rows().
Referenced by replace().
|
inlinestatic |
Definition at line 111 of file lo-regexp.h.
References replace().