NCBI C++ ToolKit
Functions
Replace_func.cpp File Reference
#include <ncbi_pch.hpp>
#include <objects/macro/Replace_func.hpp>
#include <objects/macro/Simple_replace.hpp>
+ Include dependency graph for Replace_func.cpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

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)
 

Function Documentation

◆ s_FindFromNocase()

static size_t s_FindFromNocase ( const string val,
const string find,
size_t  from 
)
static

Definition at line 56 of file Replace_func.cpp.

References NStr::eNocase, NStr::Find(), NPOS, CTempString::npos, and val.

Referenced by s_ReplaceNocase(), and s_WholeWordReplaceNocase().

◆ s_ReplaceNocase()

static bool s_ReplaceNocase ( string val,
const string find,
const string repl 
)
static

Definition at line 94 of file Replace_func.cpp.

References len, s_FindFromNocase(), and val.

Referenced by CReplace_func::ApplyToString().

◆ s_WholeWordReplaceNocase()

static bool s_WholeWordReplaceNocase ( string val,
const string find,
const string repl 
)
static

Definition at line 67 of file Replace_func.cpp.

References isalpha(), len, s_FindFromNocase(), and val.

Referenced by CReplace_func::ApplyToString().

Modified on Sun May 19 04:41:22 2024 by modify_doxy.py rev. 669887