Searched refs:oldsub (Results 1 – 7 of 7) sorted by relevance
/external/tensorflow/tensorflow/core/platform/ |
D | str_util.cc | 139 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()
|
D | str_util.h | 101 std::string StringReplace(StringPiece s, StringPiece oldsub, StringPiece newsub,
|
/external/tensorflow/tensorflow/security/fuzzing/ |
D | string_replace_fuzz.cc | 35 std::string oldsub = fuzzed_data.ConsumeRandomLengthString(5); in LLVMFuzzerTestOneInput() local 39 tensorflow::StringPiece oldsubp(oldsub); in LLVMFuzzerTestOneInput()
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
D | tfprof_utils.h | 41 string StringReplace(const string& str, const string& oldsub,
|
D | tfprof_utils.cc | 70 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/ |
D | strutil.cc | 148 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()
|
D | strutil.h | 207 PROTOBUF_EXPORT string StringReplace(const string& s, const string& oldsub,
|