Home
last modified time | relevance | path

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

/system/libbase/
Dstrings_test.cpp317 ASSERT_EQ("abcabc", android::base::StringReplace("abcabc", "z", "Z", false)); in TEST()
318 ASSERT_EQ("", android::base::StringReplace("", "z", "Z", false)); in TEST()
319 ASSERT_EQ("abcabc", android::base::StringReplace("abcabc", "", "Z", false)); in TEST()
322 ASSERT_EQ("Abcabc", android::base::StringReplace("abcabc", "a", "A", false)); in TEST()
323 ASSERT_EQ("aBcabc", android::base::StringReplace("abcabc", "b", "B", false)); in TEST()
324 ASSERT_EQ("abCabc", android::base::StringReplace("abcabc", "c", "C", false)); in TEST()
327 ASSERT_EQ("foobcabc", android::base::StringReplace("abcabc", "a", "foo", false)); in TEST()
328 ASSERT_EQ("afoocabc", android::base::StringReplace("abcabc", "b", "foo", false)); in TEST()
329 ASSERT_EQ("abfooabc", android::base::StringReplace("abcabc", "c", "foo", false)); in TEST()
332 ASSERT_EQ("xxyz", android::base::StringReplace("abcxyz", "abc", "x", false)); in TEST()
[all …]
Dstrings.cpp119 std::string StringReplace(std::string_view s, std::string_view from, std::string_view to, in StringReplace() function
/system/libbase/include/android-base/
Dstrings.h90 [[nodiscard]] std::string StringReplace(std::string_view s, std::string_view from,
/system/core/cli-test/
Dcli-test.cpp196 actual_output = android::base::StringReplace(actual_output, FILES, "$FILES", true); in CheckOutput()
/system/core/init/
Dselinux.cpp643 android::base::StringReplace(entry.blk_device, replace_name, partition_name, false); in MountMissingSystemPartitions()
/system/libvintf/test/
Dvintf_object_tests.cpp1447 android::base::StringReplace(to_string(kernelInfo.version()), ".", "_", true) + "_" + in PrintKernelTestParam()
1448 android::base::StringReplace(kernelInfo.configs().begin()->first, "CONFIG_", "", false) + in PrintKernelTestParam()