omni::extras::replaceAll
Defined in omni/extras/StringHelpers.h
- 
inline void omni::extras::replaceAll(std::string &str, const std::string &subStr, const std::string &replaceWith)
- Replaces all instances of a substring within a given string with a replacement value. - This function calls - std::string::replace()in a loop so that all instances are replaced.- Note - The replacement is not recursive, so - replaceWithmay contain the substring- subStrwithout causing endless recursion. Whenever a replacement occurs, the search for- subStrresumes after the inserted- replaceWith.- Parameters
- str – The string to modify in-place 
- subStr – The substring to find within - str
- replaceWith – The substring that all instances of - subStrare replaced with