Go to the SVN repository for this file.
73 size_t len= find.length();
76 while(pos != string::npos) {
82 val=
val.substr(0, pos) + repl +
val.substr(pos +
len);
100 size_t len= find.length();
103 while(pos != string::npos) {
107 val=
val.substr(0, pos) + repl +
val.substr(pos +
len);
static size_t s_FindFromNocase(const string &val, const string &find, size_t from)
static bool s_WholeWordReplaceNocase(string &val, const string &find, const string &repl)
static bool s_ReplaceNocase(string &val, const string &find, const string &repl)
User-defined methods of the data storage class.
User-defined methods of the data storage class.
bool ApplyToString(string &result, const CMatchString &str, CConstRef< CString_constraint > find) const
bool ApplyToString(string &result, const CMatchString &str, CConstRef< CString_constraint > find) const
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
static const char * str(char *buf, int n)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
NCBI_NS_STD::string::size_type SIZE_TYPE
static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)
Find the pattern in the string.
static const size_type npos
@ eNocase
Case insensitive compare.
const TSimple_replace & GetSimple_replace(void) const
Get the variant data.
const THaem_replace & GetHaem_replace(void) const
Get the variant data.
bool IsHaem_replace(void) const
Check if variant Haem_replace is selected.
bool IsSimple_replace(void) const
Check if variant Simple_replace is selected.
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