/third_party/skia/third_party/externals/tint/src/utils/ |
D | string_test.cc | 23 TEST(StringTest, ReplaceAll) { in TEST() argument 24 ASSERT_EQ("xybbcc", ReplaceAll("aabbcc", "aa", "xy")); in TEST() 25 ASSERT_EQ("aaxycc", ReplaceAll("aabbcc", "bb", "xy")); in TEST() 26 ASSERT_EQ("aabbxy", ReplaceAll("aabbcc", "cc", "xy")); in TEST() 27 ASSERT_EQ("xyxybbcc", ReplaceAll("aabbcc", "a", "xy")); in TEST() 28 ASSERT_EQ("aaxyxycc", ReplaceAll("aabbcc", "b", "xy")); in TEST() 29 ASSERT_EQ("aabbxyxy", ReplaceAll("aabbcc", "c", "xy")); in TEST() 33 ASSERT_EQ("aabxybbxybcc", ReplaceAll("aabbcc", "b", "bxyb")); in TEST()
|
D | string.h | 27 inline std::string ReplaceAll(std::string str, in ReplaceAll() function
|
/third_party/skia/third_party/externals/tint/tools/src/match/ |
D | match.go | 60 subbed = strings.ReplaceAll(subbed, "**", starstar) 61 subbed = strings.ReplaceAll(subbed, "*", star) 62 subbed = strings.ReplaceAll(subbed, "?", questionmark) 67 regex = strings.ReplaceAll(regex, starstar, ".*") 68 regex = strings.ReplaceAll(regex, star, "[^/]*") 69 regex = strings.ReplaceAll(regex, questionmark, "[^/]")
|
/third_party/libphonenumber/tools/cpp/test/cpp-build/ |
D | generate_geocoding_data_test.cc | 31 EXPECT_EQ("", ReplaceAll("", "$input$", "cc")); in TEST() 32 EXPECT_EQ("accb", ReplaceAll("a$input$b", "$input$", "cc")); in TEST() 33 EXPECT_EQ("ab", ReplaceAll("a$input$b", "$input$", "")); in TEST() 34 EXPECT_EQ("ab", ReplaceAll("ab", "", "cc")); in TEST() 35 EXPECT_EQ("acdc", ReplaceAll("a$input$d$input$", "$input$", "c")); in TEST()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | ComputeLayoutMemoryBufferTests.cpp | 26 std::string ReplaceAll(std::string str, in ReplaceAll() function 223 shader = ReplaceAll(shader, "{data_align}", isUniform ? AlignDeco(dataAlign) : ""); in TEST_P() 224 shader = ReplaceAll(shader, "{field_align}", std::to_string(field.align)); in TEST_P() 225 shader = ReplaceAll(shader, "{footer_align}", isUniform ? AlignDeco(footerAlign) : ""); in TEST_P() 226 shader = ReplaceAll(shader, "{field_size}", in TEST_P() 228 shader = ReplaceAll(shader, "{field_type}", field.type); in TEST_P() 229 shader = ReplaceAll(shader, "{input_header_code}", std::to_string(kInputHeaderCode)); in TEST_P() 230 shader = ReplaceAll(shader, "{input_footer_code}", std::to_string(kInputFooterCode)); in TEST_P() 231 shader = ReplaceAll(shader, "{data_header_code}", std::to_string(kDataHeaderCode)); in TEST_P() 232 shader = ReplaceAll(shader, "{data_footer_code}", std::to_string(kDataFooterCode)); in TEST_P() [all …]
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | vectorize_scalar_matrix_constructors_test.cc | 62 tmpl = utils::ReplaceAll(tmpl, "${matrix}", mat_type); in TEST_P() 63 auto src = utils::ReplaceAll(tmpl, "${values}", scalar_values); in TEST_P() 64 auto expect = utils::ReplaceAll(tmpl, "${values}", vector_values); in TEST_P() 91 tmpl = utils::ReplaceAll(tmpl, "${matrix}", mat_type); in TEST_P() 92 auto src = utils::ReplaceAll(tmpl, "${columns}", columns); in TEST_P()
|
D | pad_array_elements.cc | 109 ctx.ReplaceAll([&](const ast::Type* ast_type) -> const ast::Type* { in Run() 120 ctx.ReplaceAll([&](const ast::IndexAccessorExpression* accessor) in Run() 136 ctx.ReplaceAll( in Run()
|
D | wrap_arrays_in_structs.cc | 54 ctx.ReplaceAll([&](const ast::Type* ast_type) -> const ast::Type* { in Run() 63 ctx.ReplaceAll([&](const ast::IndexAccessorExpression* accessor) in Run() 80 ctx.ReplaceAll( in Run()
|
D | unshadow.cc | 63 ctx.ReplaceAll([&](const ast::Variable* var) -> const ast::Variable* { in Run() 76 ctx.ReplaceAll([&](const ast::IdentifierExpression* ident) in Run()
|
D | decompose_strided_matrix.cc | 146 ctx.ReplaceAll([&](const ast::IndexAccessorExpression* expr) in Run() 166 ctx.ReplaceAll([&](const ast::AssignmentStatement* stmt) in Run() 209 ctx.ReplaceAll( in Run()
|
D | renamer.cc | 1301 ctx.ReplaceAll([&](Symbol sym_in) { in Run() 1345 ctx.ReplaceAll([&](const ast::IdentifierExpression* ident) in Run()
|
/third_party/grpc/src/compiler/ |
D | php_generator_helpers.h | 36 inline std::string ReplaceAll(std::string s, const std::string& search, in ReplaceAll() function 52 oss << ReplaceAll(file->options().php_namespace(), "\\", "/"); in GetPHPServiceFilename() 70 return ReplaceAll(grpc_generator::GetPrefixedComments(desc, true, prefix), in GetPHPComments()
|
D | ruby_generator_string-inl.h | 63 inline std::string ReplaceAll(std::string s, const std::string& search, in ReplaceAll() function 113 package_name = ReplaceAll(package_name, "::", "."); in RubyPackage()
|
/third_party/skia/third_party/externals/tint/tools/src/substr/ |
D | substr_test.go | 266 body := strings.ReplaceAll(test.body, "\n", "") 267 substr := strings.ReplaceAll(test.substr, "\n", "") 268 expect := strings.ReplaceAll(test.expect, "\n", ``) 269 got := strings.ReplaceAll(Fix(test.body, test.substr), "\n", "")
|
/third_party/json/benchmarks/thirdparty/benchmark/src/ |
D | csv_reporter.cc | 92 ReplaceAll(&name, "\"", "\"\""); in PrintRunData() 98 ReplaceAll(&msg, "\"", "\"\""); in PrintRunData() 132 ReplaceAll(&label, "\"", "\"\""); in PrintRunData()
|
/third_party/skia/third_party/externals/tint/tools/src/cmd/fix-tests/ |
D | main.go | 154 failure = strings.ReplaceAll(failure, "\\n", "\n") 158 return strings.ReplaceAll(s, `\"`, `"`) 161 s = strings.ReplaceAll(s, "\n", `\n`) 162 s = strings.ReplaceAll(s, "\"", `\"`)
|
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/tools/ |
D | gen-grammar.go | 127 return strings.ReplaceAll(str, `\`, `/`) 158 "Replace": strings.ReplaceAll, 160 return strings.ReplaceAll(strings.Title(s), ".", "") 173 out = strings.ReplaceAll(out, "•", "")
|
/third_party/spirv-tools/utils/vscode/src/tools/ |
D | gen-grammar.go | 127 return strings.ReplaceAll(str, `\`, `/`) 158 "Replace": strings.ReplaceAll, 160 return strings.ReplaceAll(strings.Title(s), ".", "") 173 out = strings.ReplaceAll(out, "•", "")
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/tools/ |
D | gen-grammar.go | 127 return strings.ReplaceAll(str, `\`, `/`) 158 "Replace": strings.ReplaceAll, 160 return strings.ReplaceAll(strings.Title(s), ".", "") 173 out = strings.ReplaceAll(out, "•", "")
|
/third_party/skia/third_party/externals/tint/src/ast/ |
D | module_test.cc | 109 ctx.ReplaceAll([&](const ast::Function*) -> const ast::Function* { in TEST_F() 113 ctx.ReplaceAll([&](const ast::Alias*) -> const ast::Alias* { in TEST_F() 117 ctx.ReplaceAll([&](const ast::Variable*) -> const ast::Variable* { in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/ |
D | clone_context_test.cc | 187 ctx.ReplaceAll([&](const Replaceable* in) { in TEST_F() 282 .ReplaceAll([&](Symbol sym) { in TEST_F() 305 ctx.ReplaceAll([&](const Node*) { in TEST_F() 652 ctx.ReplaceAll([](const Node*) { return nullptr; }); in TEST_F() 653 ctx.ReplaceAll([](const Node*) { return nullptr; }); in TEST_F() 669 ctx.ReplaceAll([](const Node*) { return nullptr; }); in TEST_F() 670 ctx.ReplaceAll([](const Replaceable*) { return nullptr; }); in TEST_F() 686 ctx.ReplaceAll([](const Replaceable*) { return nullptr; }); in TEST_F() 687 ctx.ReplaceAll([](const Node*) { return nullptr; }); in TEST_F() 758 ctx.ReplaceAll([](const Symbol s) { return s; }); in TEST_F() [all …]
|
/third_party/libphonenumber/tools/cpp/src/cpp-build/ |
D | generate_geocoding_data.h | 29 string ReplaceAll(const string& input, const string& pattern,
|
/third_party/skia/third_party/externals/tint/tools/src/cmd/test-runner/ |
D | main.go | 116 filter = strings.ReplaceAll(filter, "/", string(filepath.Separator)) 499 expected = strings.ReplaceAll(expected, "\r\n", "\n") 508 file = strings.ReplaceAll(file, `\`, `/`) 545 out = strings.ReplaceAll(out, "\r\n", "\n") 638 return tab + strings.ReplaceAll(s, "\n", "\n"+tab)
|
/third_party/mindspore/mindspore/lite/tools/common/ |
D | flag_parser.cc | 137 void ReplaceAll(std::string *str, const std::string &oldValue, const std::string &newValue) { in ReplaceAll() function 169 ReplaceAll(&helpInfo, "\n\r", "\n"); in Usage()
|
/third_party/skia/third_party/externals/swiftshader/tests/regres/deqp/ |
D | deqp.go | 298 v = strings.ReplaceAll(v, "PROC_ID", strconv.Itoa(goroutineIndex)) 339 out = strings.ReplaceAll(out, exe, "<dEQP>") 341 out = strings.ReplaceAll(out, k, v)
|