A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/util_2xregexp_2regexp_8hpp_source.html below:

NCBI C++ ToolKit: include/util/xregexp/regexp.hpp Source File

1 #ifndef UTIL___REGEXP__HPP 2 #define UTIL___REGEXP__HPP 43 #if defined(HAVE_LIBPCRE2) || !defined(HAVE_LIBPCRE) 44 # define USE_LIBPCRE2 1 110

fCompile_default = 0x80000000,

111

fCompile_ignore_case = 0x80000001,

112

fCompile_dotall = 0x80000002,

113

fCompile_newline = 0x80000004,

114

fCompile_ungreedy = 0x80000008,

115

fCompile_extended = 0x80000010

119

eCompile_default = fCompile_default,

120

eCompile_ignore_case = fCompile_ignore_case,

121

eCompile_dotall = fCompile_dotall,

122

eCompile_newline = fCompile_newline,

123

eCompile_ungreedy = fCompile_ungreedy

135

fMatch_default = 0x80000000,

136

fMatch_not_begin = 0x80000001,

137

fMatch_not_end = 0x80000002,

138

fMatch_not_both = fMatch_not_begin | fMatch_not_end

142

eMatch_default = fMatch_default,

143

eMatch_not_begin = fMatch_not_begin,

144

eMatch_not_end = fMatch_not_end,

145

eMatch_not_both = fMatch_not_both

209

TMatch

flags

= fMatch_default,

210  bool

noreturn =

false 227

TMatch

flags

= fMatch_default

258  int

NumFound()

const

;

272  const TOffset

* GetResults(

size_t

idx)

const

;

359  string

GetResult(

void

);

407  size_t

pattern_idx = 0

436  size_t

max_replace = 0

490  void

ClearRange(

void

);

522  size_t

max_replace = 0

587  throw

runtime_error(

"idx >= NumFound()"

);

640  CRegexp

re(pattern, compile_flags);

655  CRegexp

re(pattern, compile_flags);

int TOffset

Basic data type for offsets into a sequence.

ncbi::TMaskedQueryRegions mask

CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...

Include a standard set of the NCBI C++ Toolkit most basic headers.

static const char * str(char *buf, int n)

EErrCode

Error types that an application can generate.

virtual const char * GetErrCodeString(void) const

Get error code interpreted as text.

const TOffset * GetResults(size_t idx) const

Get location of pattern/subpattern for the last GetMatch().

void SetRange(CTempStringEx addr_start=kEmptyStr, CTempStringEx addr_end=kEmptyStr, CTempString delimiter="\n")

Set new range for range-dependent functions.

ERange

Range processing type.

void x_Join(void)

Join substrings back to entire string.

string Extract(CTempStringEx pattern, CRegexp::TCompile compile_flags=CRegexp::fCompile_default, CRegexp::TMatch match_flags=CRegexp::fMatch_default, size_t pattern_idx=0)

Get matching pattern/subpattern from string.

void Reset(CTempString str)

Reset the content of the string to process.

void operator=(CTempString str)

Reset the content of the string to process.

bool Exists(CTempStringEx pattern, CRegexp::TCompile compile_flags=CRegexp::fCompile_default, CRegexp::TMatch match_flags=CRegexp::fMatch_default)

Check existence of substring which match a specified pattern.

CTempString m_Delimiter

Delimiter used to split m_Content.

const size_t kRegexpMaxSubPatterns

Specifies the maximum number of subpatterns that can be found.

CTempString GetMatch(CTempString str, size_t offset=0, size_t idx=0, TMatch flags=fMatch_default, bool noreturn=false)

Get matching pattern and subpatterns.

ECompile

Flags for compile regular expressions.

CTempStringEx m_RangeEnd

Regexp to determine end of range.

void ClearRange(void)

Clear range for range-dependent functions.

int NumFound() const

Get number of patterns + subpatterns.

unsigned int TMatch

Match options.

CTempStringEx m_RangeStart

Regexp to determine start of range.

string m_Content

Content string.

list< string > m_ContentList

Content list.

int m_NumFound

The total number of pattern + subpatterns resulting from the last call to GetMatch.

unsigned int TCompile

Type definitions used for code clarity.

void * m_MatchData

Pointer to compiled PCRE pattern.

EMatch

Flags for match string against a precompiled pattern.

size_t TOffset

Element type for GetResults().

string GetResult(void)

Get result string.

NCBI_EXCEPTION_DEFAULT(CRegexpException, CException)

bool m_IsDivided

TRUE if m_ContentList is newer than m_Content, and FALSE otherwise.

@ eInside

Process substrings inside range.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

#define NCBI_XREGEXP_EXPORT

static const char delimiter[]

NCBI_XUTIL_EXPORT

Parameter to control printing diagnostic message about conversion of static array data from a differe...


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4