fCompile_default = 0x80000000,
111fCompile_ignore_case = 0x80000001,
112fCompile_dotall = 0x80000002,
113fCompile_newline = 0x80000004,
114fCompile_ungreedy = 0x80000008,
115fCompile_extended = 0x80000010
119eCompile_default = fCompile_default,
120eCompile_ignore_case = fCompile_ignore_case,
121eCompile_dotall = fCompile_dotall,
122eCompile_newline = fCompile_newline,
123eCompile_ungreedy = fCompile_ungreedy
135fMatch_default = 0x80000000,
136fMatch_not_begin = 0x80000001,
137fMatch_not_end = 0x80000002,
138fMatch_not_both = fMatch_not_begin | fMatch_not_end
142eMatch_default = fMatch_default,
143eMatch_not_begin = fMatch_not_begin,
144eMatch_not_end = fMatch_not_end,
145eMatch_not_both = fMatch_not_both
209TMatch
flags= fMatch_default,
210 boolnoreturn =
false 227TMatch
flags= fMatch_default
258 intNumFound()
const;
272 const TOffset* GetResults(
size_tidx)
const;
359 stringGetResult(
void);
407 size_tpattern_idx = 0
436 size_tmax_replace = 0
490 voidClearRange(
void);
522 size_tmax_replace = 0
587 throwruntime_error(
"idx >= NumFound()");
640 CRegexpre(pattern, compile_flags);
655 CRegexpre(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