libcsdbg  1.28
C++ exception (and generic) stack trace debug library
chain< string > * csdbg::parser::parse ( const i8 syntax = NULL,
bool  icase = false 
) const
inlinevirtual

Parse the current buffer using a custom syntax.

Parameters
[in]syntaxa POSIX extended regular expression
[in]icasetrue to ignore case while parsing
Returns
the list of tokens (heap allocated)
Exceptions
std::bad_alloc
csdbg::exception

Definition at line 572 of file parser.cpp.

References csdbg::g_trace_syntax, likely, and csdbg::string::split().

Referenced by highlight().

573 {
574  if ( likely(syntax == NULL) )
575  syntax = g_trace_syntax;
576 
577  return split(syntax, false, icase);
578 }
static const i8 g_trace_syntax[]
C++ stack trace syntax.
Definition: config.hpp:222
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
Definition: config.hpp:344
virtual chain< string > * split(const string &, bool=true, bool=false) const
Tokenize using a POSIX extended regular expression.
Definition: string.cpp:642

+ Here is the call graph for this function:

+ Here is the caller graph for this function: