/external/libtextclassifier/utils/strings/ |
D | stringpiece_test.cc | 43 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()
|
D | stringpiece.h | 98 inline bool ConsumePrefix(StringPiece *text, StringPiece prefix) { in ConsumePrefix() function
|
/external/tensorflow/tensorflow/core/util/ |
D | command_line_flags.cc | 34 if (str_util::ConsumePrefix(&arg, "--") && in ParseStringFlag() 35 str_util::ConsumePrefix(&arg, flag) && in ParseStringFlag() 36 str_util::ConsumePrefix(&arg, "=")) { in ParseStringFlag() 48 if (str_util::ConsumePrefix(&arg, "--") && in ParseInt32Flag() 49 str_util::ConsumePrefix(&arg, flag) && in ParseInt32Flag() 50 str_util::ConsumePrefix(&arg, "=")) { in ParseInt32Flag() 70 if (str_util::ConsumePrefix(&arg, "--") && in ParseInt64Flag() 71 str_util::ConsumePrefix(&arg, flag) && in ParseInt64Flag() 72 str_util::ConsumePrefix(&arg, "=")) { in ParseInt64Flag() 92 if (str_util::ConsumePrefix(&arg, "--") && in ParseBoolFlag() [all …]
|
D | device_name_utils.cc | 121 if (str_util::ConsumePrefix(&fullname, "/job:")) { in ParseFullName() 122 p->has_job = !str_util::ConsumePrefix(&fullname, "*"); in ParseFullName() 128 if (str_util::ConsumePrefix(&fullname, "/replica:")) { in ParseFullName() 129 p->has_replica = !str_util::ConsumePrefix(&fullname, "*"); in ParseFullName() 135 if (str_util::ConsumePrefix(&fullname, "/task:")) { in ParseFullName() 136 p->has_task = !str_util::ConsumePrefix(&fullname, "*"); in ParseFullName() 142 if (str_util::ConsumePrefix(&fullname, "/device:")) { in ParseFullName() 143 p->has_type = !str_util::ConsumePrefix(&fullname, "*"); in ParseFullName() 147 if (!str_util::ConsumePrefix(&fullname, ":")) { in ParseFullName() 150 p->has_id = !str_util::ConsumePrefix(&fullname, "*"); in ParseFullName() [all …]
|
D | semver_test.cc | 37 if (!str_util::ConsumePrefix(s, prefix)) return false; in ConsumeDotSeparatedIdentifiers() 57 ASSERT_TRUE(str_util::ConsumePrefix(&semver, ".")); in TEST() 59 ASSERT_TRUE(str_util::ConsumePrefix(&semver, ".")); in TEST() 66 if (str_util::ConsumePrefix(&semver, "head")) { in TEST()
|
/external/tensorflow/tensorflow/core/framework/ |
D | op_def_builder.cc | 115 if (str_util::ConsumePrefix(sp, "numbertype") || in ConsumeCompoundAttrType() 116 str_util::ConsumePrefix(sp, "numerictype") || in ConsumeCompoundAttrType() 117 str_util::ConsumePrefix(sp, "quantizedtype") || in ConsumeCompoundAttrType() 118 str_util::ConsumePrefix(sp, "realnumbertype") || in ConsumeCompoundAttrType() 119 str_util::ConsumePrefix(sp, "realnumberictype")) { in ConsumeCompoundAttrType() 160 if (str_util::ConsumePrefix(&spec, "string")) { in FinalizeAttr() 162 } else if (str_util::ConsumePrefix(&spec, "int")) { in FinalizeAttr() 164 } else if (str_util::ConsumePrefix(&spec, "float")) { in FinalizeAttr() 166 } else if (str_util::ConsumePrefix(&spec, "bool")) { in FinalizeAttr() 168 } else if (str_util::ConsumePrefix(&spec, "type")) { in FinalizeAttr() [all …]
|
D | attr_value_util.cc | 377 bool is_list = str_util::ConsumePrefix(&type, "list("); in ParseAttrValue() 378 if (str_util::ConsumePrefix(&type, "string")) { in ParseAttrValue() 380 } else if (str_util::ConsumePrefix(&type, "int")) { in ParseAttrValue() 382 } else if (str_util::ConsumePrefix(&type, "float")) { in ParseAttrValue() 384 } else if (str_util::ConsumePrefix(&type, "bool")) { in ParseAttrValue() 386 } else if (str_util::ConsumePrefix(&type, "type")) { in ParseAttrValue() 388 } else if (str_util::ConsumePrefix(&type, "shape")) { in ParseAttrValue() 390 } else if (str_util::ConsumePrefix(&type, "tensor")) { in ParseAttrValue() 392 } else if (str_util::ConsumePrefix(&type, "func")) { in ParseAttrValue() 394 } else if (str_util::ConsumePrefix(&type, "placeholder")) { in ParseAttrValue() [all …]
|
D | op_gen_lib.cc | 58 while (str_util::ConsumePrefix(&str, " ")) { in WordWrap() 70 if (str_util::ConsumePrefix(description, "=")) { in ConsumeEquals() 71 while (str_util::ConsumePrefix(description, in ConsumeEquals() 104 while (str_util::ConsumePrefix(&up_to_colon, " ")) in StartsWithFieldName() 125 while (str_util::ConsumePrefix(&after_colon, " ")) in ConvertLine() 127 if (!str_util::ConsumePrefix(&after_colon, "\"")) { in ConvertLine() 187 while (str_util::ConsumePrefix(&line, " ")) { in FindMultiline() 189 if (str_util::ConsumePrefix(&line, "<<")) { in FindMultiline() 233 if (str_util::ConsumePrefix(&line, end)) break; in PBTxtFromMultiline()
|
D | op_def_util.cc | 274 bool is_list = str_util::ConsumePrefix(&type, "list("); in ValidateOpDef() 278 if (str_util::ConsumePrefix(&type, valid)) { in ValidateOpDef() 286 VALIDATE(str_util::ConsumePrefix(&type, ")"), in ValidateOpDef()
|
/external/tensorflow/tensorflow/core/lib/strings/ |
D | str_util_test.cc | 201 TEST(ConsumePrefix, Basic) { in TEST() argument 204 EXPECT_FALSE(str_util::ConsumePrefix(&input, "abcdefg")); in TEST() 207 EXPECT_FALSE(str_util::ConsumePrefix(&input, "abce")); in TEST() 210 EXPECT_TRUE(str_util::ConsumePrefix(&input, "")); in TEST() 213 EXPECT_FALSE(str_util::ConsumePrefix(&input, "abcdeg")); in TEST() 216 EXPECT_TRUE(str_util::ConsumePrefix(&input, "abcdef")); in TEST() 220 EXPECT_TRUE(str_util::ConsumePrefix(&input, "abcde")); in TEST()
|
D | scanner.h | 79 str_util::ConsumePrefix(&cur_, s); in ZeroOrOneLiteral() 86 if (!str_util::ConsumePrefix(&cur_, s)) { in OneLiteral()
|
D | numbers.cc | 228 if (str_util::ConsumePrefix(&str, "-")) { in safe_strto64() 290 if (str_util::ConsumePrefix(&str, "-")) { in safe_strto32()
|
D | str_util.h | 71 bool ConsumePrefix(StringPiece* s, StringPiece expected);
|
D | str_util.cc | 378 bool ConsumePrefix(StringPiece* s, StringPiece expected) { in ConsumePrefix() function
|
/external/tensorflow/tensorflow/cc/tutorials/ |
D | example_trainer.cc | 170 if (tensorflow::str_util::ConsumePrefix(&arg, flag) && in ParseInt32Flag() 171 tensorflow::str_util::ConsumePrefix(&arg, "=")) { in ParseInt32Flag() 181 if (tensorflow::str_util::ConsumePrefix(&arg, flag)) { in ParseBoolFlag()
|
/external/tensorflow/tensorflow/core/platform/ |
D | file_system_test.cc | 127 str_util::ConsumePrefix(&path, "/"); in ParsePath() 163 EXPECT_TRUE(str_util::ConsumePrefix(&trimmed_result, in Match()
|
/external/libtextclassifier/utils/sentencepiece/ |
D | normalizer.cc | 87 while (is_prev_space && ConsumePrefix(&sp, " ")) { in Normalize()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | text_literal_reader.cc | 89 if (!absl::ConsumePrefix(&coordinates_string, "(")) { in ReadAllLines()
|
/external/tensorflow/tensorflow/lite/toco/ |
D | args.cc | 98 bool res = absl::ConsumePrefix(&str, prefix); in TryStripPrefixString()
|
/external/tensorflow/tensorflow/python/framework/ |
D | python_op_gen_main.cc | 99 if (str_util::ConsumePrefix(&command_str, kExecPrefix) && in InferSourceFileName()
|
/external/tensorflow/tensorflow/core/graph/ |
D | graph_constructor.cc | 565 if (str_util::ConsumePrefix(&s, kColocationGroupPrefix) && in ValidateColocationConstraints() 804 if (str_util::ConsumePrefix(&input, "^")) { in AddPrefixToNodeDef() 816 if (str_util::ConsumePrefix(&v, kColocationGroupPrefix)) { in AddPrefixToNodeDef() 859 if (str_util::ConsumePrefix(&val, kColocationGroupPrefix)) { in UpdateUniquifiedColocationNames()
|
/external/tensorflow/tensorflow/contrib/android/ |
D | asset_manager_filesystem.cc | 233 str_util::ConsumePrefix(&piece, prefix_); in RemoveAssetPrefix()
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | gcs_file_system.cc | 188 str_util::ConsumePrefix(&objectp, "/"); in ParseGcsPath() 551 str_util::ConsumePrefix(&range_piece, in RequestUploadSessionStatus() 1341 if (!str_util::ConsumePrefix(&relative_path, object_prefix)) { in GetChildrenBounded() 1370 if (!str_util::ConsumePrefix(&relative_path, object_prefix)) { in GetChildrenBounded()
|
/external/tensorflow/tensorflow/java/src/gen/cc/ |
D | op_specs.cc | 133 if (str_util::ConsumePrefix(&attr_type, "list(")) { in TypesOf()
|
/external/tensorflow/tensorflow/core/platform/s3/ |
D | s3_file_system.cc | 158 str_util::ConsumePrefix(&objectp, "/"); in ParseS3Path()
|