Home
last modified time | relevance | path

Searched refs:StringReplace (Results 1 – 25 of 27) sorted by relevance

12

/third_party/grpc/src/compiler/
Dpython_generator_helpers.h41 using grpc_generator::StringReplace;
71 basename = StringReplace(basename, "-", "_"); in ModuleName()
72 basename = StringReplace(basename, "/", "."); in ModuleName()
88 module_name = StringReplace(module_name, "_", "__"); in ModuleAlias()
89 module_name = StringReplace(module_name, ".", "_dot_"); in ModuleAlias()
Dcpp_generator_helpers.h30 return grpc_generator::StringReplace(name, ".", "::"); in DotsToColons()
34 return grpc_generator::StringReplace(name, ".", "_"); in DotsToUnderscores()
Dnode_generator.cc49 basename = grpc_generator::StringReplace(basename, "-", "$"); in ModuleAlias()
50 basename = grpc_generator::StringReplace(basename, "/", "_"); in ModuleAlias()
51 basename = grpc_generator::StringReplace(basename, ".", "_"); in ModuleAlias()
111 return grpc_generator::StringReplace(name, ".", "_"); in MessageIdentifierName()
Dgenerator_helpers.h61 inline std::string StringReplace(std::string str, const std::string& from, in StringReplace() function
77 inline std::string StringReplace(std::string str, const std::string& from, in StringReplace() function
79 return StringReplace(str, from, to, true); in StringReplace()
Dcsharp_generator.cc43 using grpc_generator::StringReplace;
66 comments = grpc_generator::StringReplace(comments, "&", "&", true); in GenerateDocCommentBodyImpl()
67 comments = grpc_generator::StringReplace(comments, "<", "&lt;", true); in GenerateDocCommentBodyImpl()
221 grpc_generator::StringReplace(message->full_name(), ".", "_", true); in GetMarshallerFieldName()
/third_party/protobuf/src/google/protobuf/
Dtest_util2.h49 path = StringReplace(path, "internal/", "", false); in TranslatePathToOpensource()
50 path = StringReplace(path, "proto/", "", false); in TranslatePathToOpensource()
51 path = StringReplace(path, "public/", "", false); in TranslatePathToOpensource()
Dtext_format_unittest.cc1064 text = StringReplace(text, "e+0", "e+", true); in RemoveRedundantZeros()
1065 text = StringReplace(text, "e-0", "e-", true); in RemoveRedundantZeros()
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_doc_comment.cc57 comments = StringReplace(comments, "&", "&amp;", true); in WriteDocCommentBodyImpl()
58 comments = StringReplace(comments, "<", "&lt;", true); in WriteDocCommentBodyImpl()
Dcsharp_helpers.cc336 result += StringReplace(classname, ".", ".Types.", true); in ToCSharpName()
422 string namespace_dir = StringReplace(namespace_suffix, ".", "/", true); in GetOutputFile()
/third_party/cef/tests/cefclient/browser/
Dtest_runner.cc60 std::string StringReplace(const std::string& str, in StringReplace() function
82 std::string source = StringReplace(string, "<", "&lt;"); in RunGetSourceTest()
83 source = StringReplace(source, ">", "&gt;"); in RunGetSourceTest()
103 std::string text = StringReplace(string, "<", "&lt;"); in RunGetTextTest()
104 text = StringReplace(text, ">", "&gt;"); in RunGetTextTest()
855 std::string msg = StringReplace(message, "\\", "\\\\"); in Alert()
856 msg = StringReplace(msg, "'", "\\'"); in Alert()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/soft_dvpp/utils/
Dyuv_scaler_para_set.cc37 void StringReplace(std::string *str_big, const std::string &str_src, const std::string &str_dst) { in StringReplace() function
58 StringReplace(&str_line, ",", " "); // Replaces commas in a string with spaces. in GetParaSet()
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_extension.cc157 StringReplace(variables_["scoped_name"], "::", "_", true) + "_default"; in GenerateDefinition()
Dcpp_file.cc338 path = StringReplace(path, "internal/", "", false); in DoIncludeFile()
339 path = StringReplace(path, "proto/", "", false); in DoIncludeFile()
340 path = StringReplace(path, "public/", "", false); in DoIncludeFile()
Dcpp_helpers.cc72 return StringReplace(name, ".", "::", true); in DotsToColons()
385 ret = StringReplace(ret, in Namespace()
767 return StringReplace(to_escape, "?", "\\?", true); in EscapeTrigraphs()
/third_party/protobuf/src/google/protobuf/compiler/
Dimporter.cc284 path = "\\\\" + StringReplace(path.substr(2), "\\", "/", true); in CanonicalizePath()
286 path = StringReplace(path, "\\", "/", true); in CanonicalizePath()
Dcommand_line_interface_unittest.cc359 args[i] = StringReplace(args[i], "$tmpdir", temp_directory_, true); in RunWithArgs()
396 full_name, StringReplace(contents, "$tmpdir", temp_directory_, true), in CreateTempFile()
415 EXPECT_EQ(StringReplace(expected_text, "$tmpdir", temp_directory_, true), in ExpectErrorText()
522 EXPECT_EQ(StringReplace(content, "$tmpdir", temp_directory_, true), in ExpectFileContent()
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_helpers.cc357 return StringReplace(to_escape, "?", "\\?", true); in EscapeTrigraphs()
973 line = StringReplace(line, "\\", "\\\\", true); in BuildCommentsString()
974 line = StringReplace(line, "@", "\\@", true); in BuildCommentsString()
976 line = StringReplace(line, "/*", "/\\*", true); in BuildCommentsString()
977 line = StringReplace(line, "*/", "*\\/", true); in BuildCommentsString()
/third_party/protobuf/src/google/protobuf/testing/
Dgoogletest.cc153 result = StringReplace(result, "\\", "/", true); in GetTemporaryDirectoryName()
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_name_resolver.cc260 result += StringReplace(name_without_package, ".", "$", true); in GetJavaClassFullName()
Djava_helpers.cc219 return "static_" + StringReplace(descriptor->full_name(), ".", "_", true); in UniqueFileScopeIdentifier()
264 std::string package_dir = StringReplace(package_name, ".", "/", true); in JavaPackageToDir()
/third_party/gn/src/gn/
Dfunctions_unittest.cc263 TEST(Functions, StringReplace) { in TEST() argument
Dfunctions.cc1403 INSERT_FUNCTION(StringReplace, false) in FunctionInfoInitializer()
/third_party/protobuf/src/google/protobuf/stubs/
Dstrutil.cc132 void StringReplace(const string& s, const string& oldsub, in StringReplace() function
163 string StringReplace(const string& s, const string& oldsub, in StringReplace() function
166 StringReplace(s, oldsub, newsub, replace_all, &ret); in StringReplace()
Dstrutil.h207 PROTOBUF_EXPORT string StringReplace(const string& s, const string& oldsub,
/third_party/protobuf/
Dlibprotobuf_lite.map275 …"google::protobuf::StringReplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::all…
488 …"google::protobuf::StringReplace(std::__1::basic_string<char, std::__1::char_traits<char>, std::__…

12