Home
last modified time | relevance | path

Searched refs:ConsumeSuffix (Results 1 – 9 of 9) sorted by relevance

/external/libtextclassifier/native/utils/strings/
Dstringpiece_test.cc57 TEST(StringPieceTest, ConsumeSuffix) { in TEST() argument
59 EXPECT_TRUE(ConsumeSuffix(&str, "!")); in TEST()
61 EXPECT_TRUE(ConsumeSuffix(&str, " there")); in TEST()
63 EXPECT_FALSE(ConsumeSuffix(&str, "!!")); in TEST()
64 EXPECT_TRUE(ConsumeSuffix(&str, "")); in TEST()
65 EXPECT_TRUE(ConsumeSuffix(&str, "hello")); in TEST()
67 EXPECT_TRUE(ConsumeSuffix(&str, "")); in TEST()
68 EXPECT_FALSE(ConsumeSuffix(&str, "!")); in TEST()
Dstringpiece.h163 inline bool ConsumeSuffix(StringPiece* text, StringPiece suffix) { in ConsumeSuffix() function
/external/tensorflow/tensorflow/core/profiler/utils/
Dcost_utils.cc42 absl::ConsumeSuffix(&parts[1], "]"); in GetTensorProperties()
84 absl::ConsumeSuffix(&shapes_stats, ")"); in Predict()
/external/tensorflow/tensorflow/core/platform/
Dstr_util.cc111 bool ConsumeSuffix(StringPiece* s, StringPiece expected) { in ConsumeSuffix() function
112 return absl::ConsumeSuffix(s, expected); in ConsumeSuffix()
Dstr_util.h77 bool ConsumeSuffix(StringPiece* s, StringPiece expected);
/external/tensorflow/tensorflow/compiler/xla/
Dtext_literal_reader.cc93 if (!absl::ConsumeSuffix(&coordinates_string, ")")) { in ReadAllLines()
/external/tensorflow/tensorflow/lite/toco/
Dargs.cc105 bool res = absl::ConsumeSuffix(&str, suffix); in TryStripSuffixString()
/external/tensorflow/tensorflow/compiler/jit/
Dflags.cc65 !absl::ConsumeSuffix(&value_sv, ")") || in SetterForXlaAutoJitFlag()
/external/tensorflow/tensorflow/tools/android/inference_interface/
Dasset_manager_filesystem.cc30 absl::ConsumeSuffix(&piece, suffix); in RemoveSuffix()