ARB
Classes | Macros | Enumerations | Functions
admatch.cxx File Reference
#include "gb_local.h"
#include "gb_aci_impl.h"
#include <arb_strbuf.h>
#include <arb_match.h>
#include <cctype>
Include dependency graph for admatch.cxx:

Go to the source code of this file.

Classes

struct  GBS_string_matcher
 

Macros

#define GBS_SET   ((char)1)
 
#define GBS_SEP   ((char)2)
 
#define GBS_MWILD   ((char)3)
 
#define GBS_WILD   ((char)4)
 

Enumerations

enum  string_matcher_type { SM_INVALID = -1, SM_ANY = 0, SM_WILDCARDED, SM_REGEXPR }
 

Functions

GBS_string_matcherGBS_compile_matcher (const char *search_expr, GB_CASE case_flag)
 
void GBS_free_matcher (GBS_string_matcher *matcher)
 
GB_CSTR GBS_find_string (GB_CSTR cont, GB_CSTR substr, int match_mode)
 
bool GBS_string_matches (const char *str, const char *expr, GB_CASE case_sens)
 
bool GBS_string_matches_regexp (const char *str, const GBS_string_matcher *expr)
 
static __ATTR__USERESULT GB_ERROR gbs_build_replace_string (GBS_strstruct &out, char *replaceBy, const char *sWildcards, long sWildMax, const char *const *mWildcards, long mWildMax, const GBL_call_env &callEnv)
 
static chargbs_compress_command (const char *com)
 
charGBS_string_eval_in_env (const char *insource, const char *icommand, const GBL_call_env &callEnv)
 
charGBS_string_eval (const char *insource, const char *icommand)
 

Macro Definition Documentation

#define GBS_SET   ((char)1)

Definition at line 302 of file admatch.cxx.

Referenced by gbs_compress_command(), and GBS_string_eval_in_env().

#define GBS_SEP   ((char)2)

Definition at line 303 of file admatch.cxx.

Referenced by gbs_compress_command(), and GBS_string_eval_in_env().

#define GBS_MWILD   ((char)3)
#define GBS_WILD   ((char)4)

Enumeration Type Documentation

Enumerator
SM_INVALID 
SM_ANY 
SM_WILDCARDED 
SM_REGEXPR 

Definition at line 27 of file admatch.cxx.

Function Documentation

GBS_string_matcher* GBS_compile_matcher ( const char search_expr,
GB_CASE  case_flag 
)
void GBS_free_matcher ( GBS_string_matcher matcher)
GB_CSTR GBS_find_string ( GB_CSTR  cont,
GB_CSTR  substr,
int  match_mode 
)
bool GBS_string_matches ( const char str,
const char expr,
GB_CASE  case_sens 
)
bool GBS_string_matches_regexp ( const char str,
const GBS_string_matcher expr 
)
static __ATTR__USERESULT GB_ERROR gbs_build_replace_string ( GBS_strstruct out,
char replaceBy,
const char sWildcards,
long  sWildMax,
const char *const *  mWildcards,
long  mWildMax,
const GBL_call_env callEnv 
)
static
static char* gbs_compress_command ( const char com)
static

Definition at line 452 of file admatch.cxx.

References ARB_strdup(), GBS_MWILD, GBS_SEP, GBS_SET, GBS_WILD, result, and s.

Referenced by GBS_string_eval_in_env().

char* GBS_string_eval_in_env ( const char insource,
const char icommand,
const GBL_call_env callEnv 
)
char* GBS_string_eval ( const char insource,
const char icommand 
)