Home
last modified time | relevance | path

Searched refs:StripPrefix (Results 1 – 21 of 21) sorted by relevance

/third_party/abseil-cpp/absl/strings/
Dstrip_test.cc92 TEST(Strip, StripPrefix) { in TEST() argument
95 EXPECT_EQ(absl::StripPrefix("foobar", "foo"), "bar"); in TEST()
96 EXPECT_EQ(absl::StripPrefix("foobar", ""), "foobar"); in TEST()
97 EXPECT_EQ(absl::StripPrefix("foobar", null_str), "foobar"); in TEST()
98 EXPECT_EQ(absl::StripPrefix("foobar", "foobar"), ""); in TEST()
99 EXPECT_EQ(absl::StripPrefix("foobar", "bar"), "foobar"); in TEST()
100 EXPECT_EQ(absl::StripPrefix("foobar", "foobarr"), "foobar"); in TEST()
101 EXPECT_EQ(absl::StripPrefix("", ""), ""); in TEST()
Dstrip.h71 ABSL_MUST_USE_RESULT inline absl::string_view StripPrefix( in StripPrefix() function
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstrip_test.cc92 TEST(Strip, StripPrefix) { in TEST() argument
95 EXPECT_EQ(absl::StripPrefix("foobar", "foo"), "bar"); in TEST()
96 EXPECT_EQ(absl::StripPrefix("foobar", ""), "foobar"); in TEST()
97 EXPECT_EQ(absl::StripPrefix("foobar", null_str), "foobar"); in TEST()
98 EXPECT_EQ(absl::StripPrefix("foobar", "foobar"), ""); in TEST()
99 EXPECT_EQ(absl::StripPrefix("foobar", "bar"), "foobar"); in TEST()
100 EXPECT_EQ(absl::StripPrefix("foobar", "foobarr"), "foobar"); in TEST()
101 EXPECT_EQ(absl::StripPrefix("", ""), ""); in TEST()
Dstrip.h71 ABSL_MUST_USE_RESULT inline absl::string_view StripPrefix( in StripPrefix() function
/third_party/grpc/src/core/ext/filters/client_channel/
Dhttp_proxy.cc142 if (!SplitHostPort(absl::StripPrefix(uri->path(), "/"), &server_host, in MapName()
179 const_cast<char*>(absl::StripPrefix(uri->path(), "/").data())); in MapName()
Dresolver_factory.h61 return std::string(absl::StripPrefix(uri.path(), "/")); in GetDefaultAuthority()
Dclient_channel.cc1919 server_name_ = std::string(absl::StripPrefix(uri->path(), "/")); in ChannelData()
/third_party/grpc/src/core/lib/iomgr/
Dparse_address.cc198 return grpc_parse_ipv4_hostport(absl::StripPrefix(uri.path(), "/"), in grpc_parse_ipv4()
293 return grpc_parse_ipv6_hostport(absl::StripPrefix(uri.path(), "/"), in grpc_parse_ipv6()
/third_party/grpc/src/cpp/ext/filters/census/
Dcontext.h130 return absl::StripPrefix(absl::string_view(reinterpret_cast<const char*>( in GetMethod()
/third_party/grpc/src/core/ext/filters/client_channel/resolver/dns/native/
Ddns_resolver.cc104 : name_to_resolve_(absl::StripPrefix(args.uri.path(), "/")), in NativeDnsResolver()
/third_party/grpc/src/compiler/
Dgenerator_helpers.h44 inline bool StripPrefix(std::string* name, const std::string& prefix) { in StripPrefix() function
Dobjective_c_plugin.cc55 grpc_generator::StripPrefix(&base_name, "google/protobuf/"); in ImportProtoHeaders()
Dnode_generator.cc117 grpc_generator::StripPrefix(&name, descriptor->file()->package() + "."); in NodeObjectPath()
/third_party/grpc/src/core/ext/filters/client_channel/resolver/google_c2p/
Dgoogle_c2p_resolver.cc232 absl::string_view name_to_resolve = absl::StripPrefix(args.uri.path(), "/"); in GoogleCloud2ProdResolver()
/third_party/grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/
Ddns_resolver_ares.cc134 name_to_resolve_(absl::StripPrefix(args.uri.path(), "/")), in AresDnsResolver()
/third_party/grpc/src/core/lib/channel/
Dchannelz.cc354 SplitHostPort(absl::StripPrefix(uri->path(), "/"), &host, &port)); in PopulateSocketAddressJson()
/third_party/grpc/src/core/ext/filters/client_channel/resolver/xds/
Dxds_resolver.cc51 server_name_(absl::StripPrefix(args.uri.path(), "/")), in XdsResolver()
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/
Dninja.py71 def StripPrefix(arg, prefix): function
1470 target = StripPrefix(target, 'lib')
/third_party/node/tools/gyp/pylib/gyp/generator/
Dninja.py71 def StripPrefix(arg, prefix): function
1837 target = StripPrefix(target, "lib")
/third_party/grpc/src/core/ext/filters/client_channel/lb_policy/xds/
Dxds_cluster_resolver.cc566 server_name_ = std::string(absl::StripPrefix(uri->path(), "/")); in XdsClusterResolverLb()
/third_party/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dgrpclb.cc1343 server_name_ = std::string(absl::StripPrefix(uri->path(), "/")); in GrpcLb()