Home
last modified time | relevance | path

Searched refs:ConsumePrefix (Results 1 – 25 of 75) sorted by relevance

123

/external/angle/third_party/abseil-cpp/absl/strings/
Dstrip_test.cc32 EXPECT_TRUE(absl::ConsumePrefix(&input, "a")); in TEST()
35 EXPECT_FALSE(absl::ConsumePrefix(&input, "x")); in TEST()
38 EXPECT_TRUE(absl::ConsumePrefix(&input, "b")); in TEST()
41 EXPECT_TRUE(absl::ConsumePrefix(&input, "c")); in TEST()
44 EXPECT_FALSE(absl::ConsumePrefix(&input, "a")); in TEST()
48 TEST(Strip, ConsumePrefix) { in TEST() argument
50 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdefg")); in TEST()
53 EXPECT_FALSE(absl::ConsumePrefix(&input, "abce")); in TEST()
56 EXPECT_TRUE(absl::ConsumePrefix(&input, "")); in TEST()
59 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdeg")); in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/strings/
Dstrip_test.cc32 EXPECT_TRUE(absl::ConsumePrefix(&input, "a")); in TEST()
35 EXPECT_FALSE(absl::ConsumePrefix(&input, "x")); in TEST()
38 EXPECT_TRUE(absl::ConsumePrefix(&input, "b")); in TEST()
41 EXPECT_TRUE(absl::ConsumePrefix(&input, "c")); in TEST()
44 EXPECT_FALSE(absl::ConsumePrefix(&input, "a")); in TEST()
48 TEST(Strip, ConsumePrefix) { in TEST() argument
50 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdefg")); in TEST()
53 EXPECT_FALSE(absl::ConsumePrefix(&input, "abce")); in TEST()
56 EXPECT_TRUE(absl::ConsumePrefix(&input, "")); in TEST()
59 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdeg")); in TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/strings/
Dstrip_test.cc32 EXPECT_TRUE(absl::ConsumePrefix(&input, "a")); in TEST()
35 EXPECT_FALSE(absl::ConsumePrefix(&input, "x")); in TEST()
38 EXPECT_TRUE(absl::ConsumePrefix(&input, "b")); in TEST()
41 EXPECT_TRUE(absl::ConsumePrefix(&input, "c")); in TEST()
44 EXPECT_FALSE(absl::ConsumePrefix(&input, "a")); in TEST()
48 TEST(Strip, ConsumePrefix) { in TEST() argument
50 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdefg")); in TEST()
53 EXPECT_FALSE(absl::ConsumePrefix(&input, "abce")); in TEST()
56 EXPECT_TRUE(absl::ConsumePrefix(&input, "")); in TEST()
59 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdeg")); in TEST()
[all …]
/external/abseil-cpp/absl/strings/
Dstrip_test.cc32 EXPECT_TRUE(absl::ConsumePrefix(&input, "a")); in TEST()
35 EXPECT_FALSE(absl::ConsumePrefix(&input, "x")); in TEST()
38 EXPECT_TRUE(absl::ConsumePrefix(&input, "b")); in TEST()
41 EXPECT_TRUE(absl::ConsumePrefix(&input, "c")); in TEST()
44 EXPECT_FALSE(absl::ConsumePrefix(&input, "a")); in TEST()
48 TEST(Strip, ConsumePrefix) { in TEST() argument
50 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdefg")); in TEST()
53 EXPECT_FALSE(absl::ConsumePrefix(&input, "abce")); in TEST()
56 EXPECT_TRUE(absl::ConsumePrefix(&input, "")); in TEST()
59 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdeg")); in TEST()
[all …]
Dstrip.h45 inline bool ConsumePrefix(absl::string_view* str, absl::string_view expected) { in ConsumePrefix() function
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dstrip_test.cc32 EXPECT_TRUE(absl::ConsumePrefix(&input, "a")); in TEST()
35 EXPECT_FALSE(absl::ConsumePrefix(&input, "x")); in TEST()
38 EXPECT_TRUE(absl::ConsumePrefix(&input, "b")); in TEST()
41 EXPECT_TRUE(absl::ConsumePrefix(&input, "c")); in TEST()
44 EXPECT_FALSE(absl::ConsumePrefix(&input, "a")); in TEST()
48 TEST(Strip, ConsumePrefix) { in TEST() argument
50 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdefg")); in TEST()
53 EXPECT_FALSE(absl::ConsumePrefix(&input, "abce")); in TEST()
56 EXPECT_TRUE(absl::ConsumePrefix(&input, "")); in TEST()
59 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdeg")); in TEST()
[all …]
Dstrip.h45 inline bool ConsumePrefix(absl::string_view* str, absl::string_view expected) { in ConsumePrefix() function
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dstrip_test.cc32 EXPECT_TRUE(absl::ConsumePrefix(&input, "a")); in TEST()
35 EXPECT_FALSE(absl::ConsumePrefix(&input, "x")); in TEST()
38 EXPECT_TRUE(absl::ConsumePrefix(&input, "b")); in TEST()
41 EXPECT_TRUE(absl::ConsumePrefix(&input, "c")); in TEST()
44 EXPECT_FALSE(absl::ConsumePrefix(&input, "a")); in TEST()
48 TEST(Strip, ConsumePrefix) { in TEST() argument
50 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdefg")); in TEST()
53 EXPECT_FALSE(absl::ConsumePrefix(&input, "abce")); in TEST()
56 EXPECT_TRUE(absl::ConsumePrefix(&input, "")); in TEST()
59 EXPECT_FALSE(absl::ConsumePrefix(&input, "abcdeg")); in TEST()
[all …]
/external/libtextclassifier/native/utils/strings/
Dstringpiece_test.cc43 TEST(StringPieceTest, ConsumePrefix) { in TEST() argument
45 EXPECT_TRUE(ConsumePrefix(&str, "hello ")); in TEST()
47 EXPECT_TRUE(ConsumePrefix(&str, "there")); in TEST()
49 EXPECT_FALSE(ConsumePrefix(&str, "!!")); in TEST()
50 EXPECT_TRUE(ConsumePrefix(&str, "")); in TEST()
51 EXPECT_TRUE(ConsumePrefix(&str, "!")); in TEST()
53 EXPECT_TRUE(ConsumePrefix(&str, "")); in TEST()
54 EXPECT_FALSE(ConsumePrefix(&str, "!")); in TEST()
/external/tensorflow/tensorflow/core/framework/
Dop_def_builder.cc117 if (absl::ConsumePrefix(sp, "numbertype") || in ConsumeCompoundAttrType()
118 absl::ConsumePrefix(sp, "numerictype") || in ConsumeCompoundAttrType()
119 absl::ConsumePrefix(sp, "quantizedtype") || in ConsumeCompoundAttrType()
120 absl::ConsumePrefix(sp, "realnumbertype") || in ConsumeCompoundAttrType()
121 absl::ConsumePrefix(sp, "realnumberictype")) { in ConsumeCompoundAttrType()
162 if (absl::ConsumePrefix(&spec, "string")) { in FinalizeAttr()
164 } else if (absl::ConsumePrefix(&spec, "int")) { in FinalizeAttr()
166 } else if (absl::ConsumePrefix(&spec, "float")) { in FinalizeAttr()
168 } else if (absl::ConsumePrefix(&spec, "bool")) { in FinalizeAttr()
170 } else if (absl::ConsumePrefix(&spec, "type")) { in FinalizeAttr()
[all …]
Dop_gen_lib.cc60 while (absl::ConsumePrefix(&str, " ")) { in WordWrap()
72 if (absl::ConsumePrefix(description, "=")) { in ConsumeEquals()
73 while (absl::ConsumePrefix(description, in ConsumeEquals()
106 while (absl::ConsumePrefix(&up_to_colon, " ")) in StartsWithFieldName()
127 while (absl::ConsumePrefix(&after_colon, " ")) in ConvertLine()
129 if (!absl::ConsumePrefix(&after_colon, "\"")) { in ConvertLine()
189 while (absl::ConsumePrefix(&line, " ")) { in FindMultiline()
191 if (absl::ConsumePrefix(&line, "<<")) { in FindMultiline()
235 if (absl::ConsumePrefix(&line, end)) break; in PBTxtFromMultiline()
Dattr_value_util.cc400 bool is_list = absl::ConsumePrefix(&type, "list("); in ParseAttrValue()
401 if (absl::ConsumePrefix(&type, "string")) { in ParseAttrValue()
403 } else if (absl::ConsumePrefix(&type, "int")) { in ParseAttrValue()
405 } else if (absl::ConsumePrefix(&type, "float")) { in ParseAttrValue()
407 } else if (absl::ConsumePrefix(&type, "bool")) { in ParseAttrValue()
409 } else if (absl::ConsumePrefix(&type, "type")) { in ParseAttrValue()
411 } else if (absl::ConsumePrefix(&type, "shape")) { in ParseAttrValue()
413 } else if (absl::ConsumePrefix(&type, "tensor")) { in ParseAttrValue()
415 } else if (absl::ConsumePrefix(&type, "func")) { in ParseAttrValue()
417 } else if (absl::ConsumePrefix(&type, "placeholder")) { in ParseAttrValue()
[all …]
/external/tensorflow/tensorflow/core/util/
Dcommand_line_flags.cc34 if (absl::ConsumePrefix(&arg, "--") && absl::ConsumePrefix(&arg, flag) && in ParseStringFlag()
35 absl::ConsumePrefix(&arg, "=")) { in ParseStringFlag()
47 if (absl::ConsumePrefix(&arg, "--") && absl::ConsumePrefix(&arg, flag) && in ParseInt32Flag()
48 absl::ConsumePrefix(&arg, "=")) { in ParseInt32Flag()
68 if (absl::ConsumePrefix(&arg, "--") && absl::ConsumePrefix(&arg, flag) && in ParseInt64Flag()
69 absl::ConsumePrefix(&arg, "=")) { in ParseInt64Flag()
89 if (absl::ConsumePrefix(&arg, "--") && absl::ConsumePrefix(&arg, flag)) { in ParseBoolFlag()
116 if (absl::ConsumePrefix(&arg, "--") && absl::ConsumePrefix(&arg, flag) && in ParseFloatFlag()
117 absl::ConsumePrefix(&arg, "=")) { in ParseFloatFlag()
Ddevice_name_utils.cc41 static bool ConsumePrefix(StringPiece* in, string* out, in ConsumePrefix() function
57 return ConsumePrefix(in, job, "/"); in ConsumeJobName()
63 return ConsumePrefix(in, device_type, "/:"); in ConsumeDeviceType()
111 if (absl::ConsumePrefix(&fullname, "/job:")) { in ParseFullName()
112 p->has_job = !absl::ConsumePrefix(&fullname, "*"); in ParseFullName()
118 if (absl::ConsumePrefix(&fullname, "/replica:")) { in ParseFullName()
119 p->has_replica = !absl::ConsumePrefix(&fullname, "*"); in ParseFullName()
125 if (absl::ConsumePrefix(&fullname, "/task:")) { in ParseFullName()
126 p->has_task = !absl::ConsumePrefix(&fullname, "*"); in ParseFullName()
132 if (absl::ConsumePrefix(&fullname, "/device:")) { in ParseFullName()
[all …]
Dsemver_test.cc37 if (!absl::ConsumePrefix(s, prefix)) return false; in ConsumeDotSeparatedIdentifiers()
57 ASSERT_TRUE(absl::ConsumePrefix(&semver, ".")); in TEST()
59 ASSERT_TRUE(absl::ConsumePrefix(&semver, ".")); in TEST()
66 if (absl::ConsumePrefix(&semver, "head")) { in TEST()
/external/tensorflow/tensorflow/core/platform/
Dstr_util_test.cc202 TEST(ConsumePrefix, Basic) { in TEST() argument
205 EXPECT_FALSE(str_util::ConsumePrefix(&input, "abcdefg")); in TEST()
208 EXPECT_FALSE(str_util::ConsumePrefix(&input, "abce")); in TEST()
211 EXPECT_TRUE(str_util::ConsumePrefix(&input, "")); in TEST()
214 EXPECT_FALSE(str_util::ConsumePrefix(&input, "abcdeg")); in TEST()
217 EXPECT_TRUE(str_util::ConsumePrefix(&input, "abcdef")); in TEST()
221 EXPECT_TRUE(str_util::ConsumePrefix(&input, "abcde")); in TEST()
Dscanner.h81 str_util::ConsumePrefix(&cur_, s); in ZeroOrOneLiteral()
88 if (!str_util::ConsumePrefix(&cur_, s)) { in OneLiteral()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dparse_text_proto.cc35 Status ConsumePrefix(absl::string_view str, absl::string_view prefix, in ConsumePrefix() function
56 ConsumePrefix(text_proto, prefix_to_strip, &text_proto_without_prefix)); in ParseTextProto()
Dparse_text_proto.h28 Status ConsumePrefix(absl::string_view str, absl::string_view prefix,
/external/tensorflow/tensorflow/cc/tutorials/
Dexample_trainer.cc170 if (absl::ConsumePrefix(&arg, flag) && absl::ConsumePrefix(&arg, "=")) { in ParseInt32Flag()
180 if (absl::ConsumePrefix(&arg, flag)) { in ParseBoolFlag()
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/transforms/
Dgpu_kernel_to_blob_pass.cc112 if (!absl::ConsumePrefix(&consumable_arch, "gfx")) { in GetGpuBinaryBlob()
170 if (absl::ConsumePrefix(&consumable_arch, "compute_")) { in GetGpuBinaryBlob()
172 } else if (absl::ConsumePrefix(&consumable_arch, "sm_")) { in GetGpuBinaryBlob()
/external/webrtc/third_party/abseil-cpp/absl/flags/
Dparse.cc248 absl::ConsumePrefix(&arg, "-"); in SplitNameAndValue()
278 if (!flag && absl::ConsumePrefix(&flag_name, "no")) { in LocateFlag()
566 if (absl::ConsumePrefix(&flag_name, "no") && in CanIgnoreUndefinedFlag()
635 if (!absl::ConsumePrefix(&arg, "-") || arg.empty()) { in ParseCommandLineImpl()
/external/abseil-cpp/absl/flags/
Dparse.cc248 absl::ConsumePrefix(&arg, "-"); in SplitNameAndValue()
278 if (!flag && absl::ConsumePrefix(&flag_name, "no")) { in LocateFlag()
566 if (absl::ConsumePrefix(&flag_name, "no") && in CanIgnoreUndefinedFlag()
635 if (!absl::ConsumePrefix(&arg, "-") || arg.empty()) { in ParseCommandLineImpl()
/external/libtextclassifier/abseil-cpp/absl/flags/
Dparse.cc266 absl::ConsumePrefix(&arg, "-"); in SplitNameAndValue()
296 if (!flag && absl::ConsumePrefix(&flag_name, "no")) { in LocateFlag()
585 if (absl::ConsumePrefix(&flag_name, "no") && in CanIgnoreUndefinedFlag()
672 if (!absl::ConsumePrefix(&arg, "-") || arg.empty()) { in ParseCommandLineImpl()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/flags/
Dparse.cc266 absl::ConsumePrefix(&arg, "-"); in SplitNameAndValue()
296 if (!flag && absl::ConsumePrefix(&flag_name, "no")) { in LocateFlag()
585 if (absl::ConsumePrefix(&flag_name, "no") && in CanIgnoreUndefinedFlag()
672 if (!absl::ConsumePrefix(&arg, "-") || arg.empty()) { in ParseCommandLineImpl()

123