Searched defs:oldsub (Results 1 - 1 of 1) sorted by relevance

/external/protobuf/src/google/protobuf/stubs/
H A Dstrutil.cc104 void StringReplace(const string& s, const string& oldsub, argument
107 if (oldsub.empty()) {
115 pos = s.find(oldsub, start_pos);
121 start_pos = pos + oldsub.size(); // start searching again after the "old"
135 string StringReplace(const string& s, const string& oldsub, argument
138 StringReplace(s, oldsub, newsub, replace_all, &ret);

Completed in 228 milliseconds