Home
last modified time | relevance | path

Searched refs:remove_suffix (Results 1 – 25 of 83) sorted by relevance

1234

/external/rust/crates/protobuf/src/
Dstrx.rs8 pub fn remove_suffix<'s>(s: &'s str, suffix: &str) -> &'s str { in remove_suffix() function
19 use super::remove_suffix;
31 assert_eq!("bbb", remove_suffix("bbbaaa", "aaa")); in test_remove_suffix()
32 assert_eq!("aaa", remove_suffix("aaa", "bbb")); in test_remove_suffix()
/external/libcxx/test/std/strings/string.view/string.view.modifiers/
Dremove_suffix.pass.cpp29 sv1.remove_suffix ( 1 ); in test()
32 sv1.remove_suffix ( len - 1 ); in test()
36 sv1.remove_suffix ( 0 ); in test()
46 sv1.remove_suffix ( k ); in test_ce()
/external/llvm-project/libcxx/test/std/strings/string.view/string.view.modifiers/
Dremove_suffix.pass.cpp28 sv1.remove_suffix ( 1 ); in test()
31 sv1.remove_suffix ( len - 1 ); in test()
35 sv1.remove_suffix ( 0 ); in test()
45 sv1.remove_suffix ( k ); in test_ce()
/external/rust/crates/protobuf-codegen/src/
Dstrx.rs11 pub fn remove_suffix<'s>(s: &'s str, suffix: &str) -> &'s str { in remove_suffix() function
35 use super::remove_suffix;
47 assert_eq!("bbb", remove_suffix("bbbaaa", "aaa")); in test_remove_suffix()
48 assert_eq!("aaa", remove_suffix("aaa", "bbb")); in test_remove_suffix()
Dfile.rs17 let without_suffix = strx::remove_suffix(without_dir, ".proto"); in proto_path_to_rust_mod()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dstrip.h62 str->remove_suffix(expected.size()); in ConsumeSuffix()
84 if (absl::EndsWith(str, suffix)) str.remove_suffix(suffix.size()); in StripSuffix()
/external/abseil-cpp/absl/strings/
Dstrip.h62 str->remove_suffix(expected.size()); in ConsumeSuffix()
84 if (absl::EndsWith(str, suffix)) str.remove_suffix(suffix.size()); in StripSuffix()
/external/openscreen/third_party/abseil/src/absl/strings/
Dstrip.h62 str->remove_suffix(expected.size()); in ConsumeSuffix()
84 if (absl::EndsWith(str, suffix)) str.remove_suffix(suffix.size()); in StripSuffix()
/external/angle/third_party/abseil-cpp/absl/strings/
Dstrip.h62 str->remove_suffix(expected.size()); in ConsumeSuffix()
84 if (absl::EndsWith(str, suffix)) str.remove_suffix(suffix.size()); in StripSuffix()
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dstrip.h62 str->remove_suffix(expected.size()); in ConsumeSuffix()
84 if (absl::EndsWith(str, suffix)) str.remove_suffix(suffix.size()); in StripSuffix()
/external/libtextclassifier/abseil-cpp/absl/strings/
Dstrip.h62 str->remove_suffix(expected.size()); in ConsumeSuffix()
84 if (absl::EndsWith(str, suffix)) str.remove_suffix(suffix.size()); in StripSuffix()
/external/angle/third_party/abseil-cpp/
Dabsl_hardening_test.cc32 EXPECT_DEATH_IF_SUPPORTED(view.remove_suffix(10), ""); in TEST()
66 EXPECT_DEATH_IF_SUPPORTED(span.remove_suffix(10), ""); in TEST()
/external/libchrome/base/test/
Dfuzzed_data_provider.cc45 remaining_data_.remove_suffix(1); in ConsumeUint32InRange()
/external/icu/icu4c/source/test/intltest/
Dstrtest.cpp381 sp.remove_suffix(-1); in TestStringPiece()
386 sp.remove_suffix(2); in TestStringPiece()
391 sp.remove_suffix(5); in TestStringPiece()
442 abcd.remove_suffix(1); in TestStringPieceComparisons()
/external/openscreen/third_party/abseil/src/absl/types/
Dspan_test.cc257 s.remove_suffix(0); in TEST()
265 s.remove_suffix(1); in TEST()
273 s.remove_suffix(11); in TEST()
282 EXPECT_DEATH_IF_SUPPORTED(suffix_death.remove_suffix(21), ""); in TEST()
773 EXPECT_TRUE(noexcept(s.remove_suffix(0))); in TEST()
/external/libtextclassifier/abseil-cpp/absl/types/
Dspan_test.cc257 s.remove_suffix(0); in TEST()
265 s.remove_suffix(1); in TEST()
273 s.remove_suffix(11); in TEST()
282 EXPECT_DEATH_IF_SUPPORTED(suffix_death.remove_suffix(21), ""); in TEST()
773 EXPECT_TRUE(noexcept(s.remove_suffix(0))); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/types/
Dspan_test.cc257 s.remove_suffix(0); in TEST()
265 s.remove_suffix(1); in TEST()
273 s.remove_suffix(11); in TEST()
282 EXPECT_DEATH_IF_SUPPORTED(suffix_death.remove_suffix(21), ""); in TEST()
773 EXPECT_TRUE(noexcept(s.remove_suffix(0))); in TEST()
/external/protobuf/src/google/protobuf/stubs/
Dstringpiece_unittest.cc642 c.remove_suffix(3); in TEST()
645 c.remove_suffix(0); in TEST()
647 c.remove_suffix(c.size()); in TEST()
764 a.remove_suffix(1); in TEST()
780 a.remove_suffix(1); in TEST()
/external/angle/third_party/abseil-cpp/absl/types/
Dspan_test.cc257 s.remove_suffix(0); in TEST()
265 s.remove_suffix(1); in TEST()
273 s.remove_suffix(11); in TEST()
282 EXPECT_DEATH_IF_SUPPORTED(suffix_death.remove_suffix(21), ""); in TEST()
773 EXPECT_TRUE(noexcept(s.remove_suffix(0))); in TEST()
/external/tensorflow/tensorflow/core/profiler/utils/
Dparse_annotation.cc36 annotation.remove_suffix(1); in SplitNameAndMetadata()
/external/icu/libicu/cts_headers/unicode/
Dstringpiece.h279 void remove_suffix(int32_t n) { in remove_suffix() function
/external/icu/icu4c/source/common/unicode/
Dstringpiece.h279 void remove_suffix(int32_t n) { in remove_suffix() function
/external/libchrome/base/
Dvlog.cc99 module.remove_suffix(kInlSuffixLen); in GetModule()
/external/tensorflow/tensorflow/compiler/tf2xla/lib/
Dscatter.cc58 indices_dims.remove_suffix(1); in XlaScatter()
/external/tensorflow/tensorflow/lite/toco/
Dargs.cc76 cols->back().remove_suffix(line.size() - i); in SplitStructuredLine()

1234