Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstrip_test.cc104 TEST(Strip, StripSuffix) { in TEST() argument
107 EXPECT_EQ(absl::StripSuffix("foobar", "bar"), "foo"); in TEST()
108 EXPECT_EQ(absl::StripSuffix("foobar", ""), "foobar"); in TEST()
109 EXPECT_EQ(absl::StripSuffix("foobar", null_str), "foobar"); in TEST()
110 EXPECT_EQ(absl::StripSuffix("foobar", "foobar"), ""); in TEST()
111 EXPECT_EQ(absl::StripSuffix("foobar", "foo"), "foobar"); in TEST()
112 EXPECT_EQ(absl::StripSuffix("foobar", "ffoobar"), "foobar"); in TEST()
113 EXPECT_EQ(absl::StripSuffix("", ""), ""); in TEST()
Dstrip.h82 ABSL_MUST_USE_RESULT inline absl::string_view StripSuffix( in StripSuffix() function
/third_party/abseil-cpp/absl/strings/
Dstrip_test.cc104 TEST(Strip, StripSuffix) { in TEST() argument
107 EXPECT_EQ(absl::StripSuffix("foobar", "bar"), "foo"); in TEST()
108 EXPECT_EQ(absl::StripSuffix("foobar", ""), "foobar"); in TEST()
109 EXPECT_EQ(absl::StripSuffix("foobar", null_str), "foobar"); in TEST()
110 EXPECT_EQ(absl::StripSuffix("foobar", "foobar"), ""); in TEST()
111 EXPECT_EQ(absl::StripSuffix("foobar", "foo"), "foobar"); in TEST()
112 EXPECT_EQ(absl::StripSuffix("foobar", "ffoobar"), "foobar"); in TEST()
113 EXPECT_EQ(absl::StripSuffix("", ""), ""); in TEST()
Dstrip.h82 ABSL_MUST_USE_RESULT inline absl::string_view StripSuffix( in StripSuffix() function
/third_party/grpc/src/compiler/
Dgenerator_helpers.h32 inline bool StripSuffix(std::string* filename, const std::string& suffix) { in StripSuffix() function
55 if (!StripSuffix(&filename, ".protodevel")) { in StripProto()
56 StripSuffix(&filename, ".proto"); in StripProto()
Dobjective_c_plugin.cc121 grpc_generator::StripSuffix(&pb_runtime_import_prefix, "/"); in Generate()