Skip to content

Namespace cubregex

Namespace List > cubregex

Classes

Type Name
struct compiled_regex
struct cub_reg_traits

Public Types

Type Name
union compiled_regex_object
enum engine_type
enum unsigned int opt_flag
typedef unsigned int opt_flag_type

Public Attributes

Type Name
const char * engine_name = /* multi line expression */

Public Functions

Type Name
int compile (REFPTR(compiled_regex, cr), const std::string & pattern_string, const std::string & opt_str, const LANG_COLLATION * collation)
int compile_regex_internal (REFPTR(compiled_regex, cr), const std::string & pattern_string, const engine_type type, const opt_flag_type opt_flag, const LANG_COLLATION * collation)
int count (int & result, const compiled_regex & reg, const std::string & src, const int position)
const char * get_engine_name (const engine_type & type)
int instr (int & result, const compiled_regex & reg, const std::string & src, const int position, const int occurrence, const int return_opt)
opt_flag_type parse_match_type (const std::string & match_type)
int re2_compile (REFPTR(compiled_regex, cr))
int re2_count (int & result, const compiled_regex & reg, const std::string & src, const int position)
int re2_instr (int & result, const compiled_regex & reg, const std::string & src, const int position, const int occurrence, const int return_opt)
RE2::Options re2_parse_match_type (const opt_flag_type & opt_type)
int re2_replace (std::string & result, const compiled_regex & reg, const std::string & src, const std::string & repl, const int position, const int occurrence)
int re2_search (int & result, const compiled_regex & reg, const std::string & src)
int re2_substr (std::string & result, bool & is_matched, const compiled_regex & reg, const std::string & src, const int position, const int occurrence)
int replace (std::string & result, const compiled_regex & reg, const std::string & src, const std::string & repl, const int position, const int occurrence)
int search (int & result, const compiled_regex & reg, const std::string & src)
bool should_compile_skip (REFPTR(compiled_regex, cr), const std::string & pattern, const engine_type type, const opt_flag_type opt_flag, const INTL_CODESET codeset)
int std_compile (REFPTR(compiled_regex, cr), const LANG_COLLATION * collation)
int std_count (int & result, const compiled_regex & reg, const std::string & src, const int position)
int std_instr (int & result, const compiled_regex & reg, const std::string & src, const int position, const int occurrence, const int return_opt)
std::regex_constants::syntax_option_type std_parse_match_type (const opt_flag_type & opt_type)
std::string std_parse_regex_exception (std::regex_error & e)
int std_replace (std::string & result, const compiled_regex & reg, const std::string & src, const std::string & repl, const int position, const int occurrence)
int std_search (int & result, const compiled_regex & reg, const std::string & src)
int std_substr (std::string & result, bool & is_matched, const compiled_regex & reg, const std::string & src, const int position, const int occurrence)
int substr (std::string & result, bool & is_matched, const compiled_regex & reg, const std::string & src, const int position, const int occurrence)

Public Static Functions

Type Name
void re2_distance_utf8 (int & length, const char * s, const char * e)
bool re2_on_match (const RE2 & re2, const re2::StringPiece & target, const int occurrence, Func && lambda)
void re2_split_string_utf8 (const std::string & src, const int position, std::string & a, std::string & b)

Public Types Documentation

union compiled_regex_object



enum engine_type

enum cubregex::engine_type {
    LIB_NONE = -1,
    LIB_CPPSTD = 0,
    LIB_RE2 = 1
};

enum opt_flag

enum cubregex::opt_flag {
    OPT_SYNTAX_ECMA = 0x1,
    OPT_SYNTAX_POSIX_EXTENDED = 0x2,
    OPT_ICASE = 0x4,
    OPT_ERROR = 0xf0000000
};

typedef opt_flag_type

using cubregex::opt_flag_type = typedef unsigned int;

Public Attributes Documentation

variable engine_name

const char* cubregex::engine_name[];

Public Functions Documentation

function compile

int cubregex::compile (
    REFPTR ( compiled_regex , cr ),
    const std::string & pattern_string,
    const std::string & opt_str,
    const  LANG_COLLATION * collation
) 

function compile_regex_internal

int cubregex::compile_regex_internal (
    REFPTR ( compiled_regex , cr ),
    const std::string & pattern_string,
    const  engine_type type,
    const  opt_flag_type opt_flag,
    const  LANG_COLLATION * collation
) 

function count

int cubregex::count (
    int & result,
    const  compiled_regex & reg,
    const std::string & src,
    const  int position
) 

function get_engine_name

const  char * cubregex::get_engine_name (
    const  engine_type & type
) 

function instr

int cubregex::instr (
    int & result,
    const  compiled_regex & reg,
    const std::string & src,
    const  int position,
    const  int occurrence,
    const  int return_opt
) 

function parse_match_type

opt_flag_type cubregex::parse_match_type (
    const std::string & match_type
) 

function re2_compile

int cubregex::re2_compile (
    REFPTR ( compiled_regex , cr )
) 

function re2_count

int cubregex::re2_count (
    int & result,
    const  compiled_regex & reg,
    const std::string & src,
    const  int position
) 

function re2_instr

int cubregex::re2_instr (
    int & result,
    const  compiled_regex & reg,
    const std::string & src,
    const  int position,
    const  int occurrence,
    const  int return_opt
) 

function re2_parse_match_type

RE2::Options cubregex::re2_parse_match_type (
    const  opt_flag_type & opt_type
) 

function re2_replace

int cubregex::re2_replace (
    std::string & result,
    const  compiled_regex & reg,
    const std::string & src,
    const std::string & repl,
    const  int position,
    const  int occurrence
) 

int cubregex::re2_search (
    int & result,
    const  compiled_regex & reg,
    const std::string & src
) 

function re2_substr

int cubregex::re2_substr (
    std::string & result,
    bool & is_matched,
    const  compiled_regex & reg,
    const std::string & src,
    const  int position,
    const  int occurrence
) 

function replace

int cubregex::replace (
    std::string & result,
    const  compiled_regex & reg,
    const std::string & src,
    const std::string & repl,
    const  int position,
    const  int occurrence
) 

int cubregex::search (
    int & result,
    const  compiled_regex & reg,
    const std::string & src
) 

function should_compile_skip

bool cubregex::should_compile_skip (
    REFPTR ( compiled_regex , cr ),
    const std::string & pattern,
    const  engine_type type,
    const  opt_flag_type opt_flag,
    const  INTL_CODESET codeset
) 

function std_compile

int cubregex::std_compile (
    REFPTR ( compiled_regex , cr ),
    const  LANG_COLLATION * collation
) 

function std_count

int cubregex::std_count (
    int & result,
    const  compiled_regex & reg,
    const std::string & src,
    const  int position
) 

function std_instr

int cubregex::std_instr (
    int & result,
    const  compiled_regex & reg,
    const std::string & src,
    const  int position,
    const  int occurrence,
    const  int return_opt
) 

function std_parse_match_type

std::regex_constants::syntax_option_type cubregex::std_parse_match_type (
    const  opt_flag_type & opt_type
) 

function std_parse_regex_exception

std::string cubregex::std_parse_regex_exception (
    std::regex_error & e
) 

function std_replace

int cubregex::std_replace (
    std::string & result,
    const  compiled_regex & reg,
    const std::string & src,
    const std::string & repl,
    const  int position,
    const  int occurrence
) 

int cubregex::std_search (
    int & result,
    const  compiled_regex & reg,
    const std::string & src
) 

function std_substr

int cubregex::std_substr (
    std::string & result,
    bool & is_matched,
    const  compiled_regex & reg,
    const std::string & src,
    const  int position,
    const  int occurrence
) 

function substr

int cubregex::substr (
    std::string & result,
    bool & is_matched,
    const  compiled_regex & reg,
    const std::string & src,
    const  int position,
    const  int occurrence
) 

Public Static Functions Documentation

function re2_distance_utf8

static void cubregex::re2_distance_utf8 (
    int & length,
    const  char * s,
    const  char * e
) 

function re2_on_match

template<typename  Func>
static bool cubregex::re2_on_match (
    const  RE2 & re2,
    const re2::StringPiece & target,
    const  int occurrence,
    Func && lambda
) 

function re2_split_string_utf8

static void cubregex::re2_split_string_utf8 (
    const std::string & src,
    const  int position,
    std::string & a,
    std::string & b
) 


The documentation for this class was generated from the following file cubrid/src/query/string_regex.cpp