Lines Matching refs:oldValue
54 static inline CString ReplaceAll(CString str, const CString &oldValue,
57 if (oldValue.empty() || oldValue == newValue) {
61 while ((pos = str.find(oldValue, pos)) != CString::npos) {
62 str.replace(pos, oldValue.length(), newValue);
68 static inline CString Replace(CString str, const CString &oldValue,
71 if (oldValue.empty() || oldValue == newValue) {
75 if ((pos = str.find(oldValue, pos)) != CString::npos) {
76 str.replace(pos, oldValue.length(), newValue);