Home
last modified time | relevance | path

Searched refs:oldsub (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/core/platform/
Dstr_util.cc139 string StringReplace(StringPiece s, StringPiece oldsub, StringPiece newsub, in StringReplace() argument
145 while ((pos = res.find(oldsub.data(), pos, oldsub.size())) != string::npos) { in StringReplace()
146 res.replace(pos, oldsub.size(), newsub.data(), newsub.size()); in StringReplace()
148 if (oldsub.empty()) { in StringReplace()
Dstr_util.h101 std::string StringReplace(StringPiece s, StringPiece oldsub, StringPiece newsub,
/external/tensorflow/tensorflow/security/fuzzing/
Dstring_replace_fuzz.cc35 std::string oldsub = fuzzed_data.ConsumeRandomLengthString(5); in LLVMFuzzerTestOneInput() local
39 tensorflow::StringPiece oldsubp(oldsub); in LLVMFuzzerTestOneInput()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_utils.h41 string StringReplace(const string& str, const string& oldsub,
Dtfprof_utils.cc70 string StringReplace(const string& str, const string& oldsub, in StringReplace() argument
73 RE2::GlobalReplace(&out, oldsub, newsub); in StringReplace()
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.cc148 void StringReplace(const string& s, const string& oldsub, in StringReplace() argument
151 if (oldsub.empty()) { in StringReplace()
159 pos = s.find(oldsub, start_pos); in StringReplace()
165 start_pos = pos + oldsub.size(); // start searching again after the "old" in StringReplace()
179 string StringReplace(const string& s, const string& oldsub, in StringReplace() argument
182 StringReplace(s, oldsub, newsub, replace_all, &ret); in StringReplace()
Dstrutil.h207 PROTOBUF_EXPORT string StringReplace(const string& s, const string& oldsub,