/external/libtextclassifier/utils/strings/ |
stringpiece_test.cc | 43 TEST(StringPieceTest, ConsumePrefix) { 45 EXPECT_TRUE(ConsumePrefix(&str, "hello ")); 47 EXPECT_TRUE(ConsumePrefix(&str, "there")); 49 EXPECT_FALSE(ConsumePrefix(&str, "!!")); 50 EXPECT_TRUE(ConsumePrefix(&str, "")); 51 EXPECT_TRUE(ConsumePrefix(&str, "!")); 53 EXPECT_TRUE(ConsumePrefix(&str, "")); 54 EXPECT_FALSE(ConsumePrefix(&str, "!"));
|
stringpiece.h | 98 inline bool ConsumePrefix(StringPiece *text, StringPiece prefix) {
|
/external/tensorflow/tensorflow/core/util/ |
semver_test.cc | 37 if (!str_util::ConsumePrefix(s, prefix)) return false; 57 ASSERT_TRUE(str_util::ConsumePrefix(&semver, ".")); 59 ASSERT_TRUE(str_util::ConsumePrefix(&semver, ".")); 66 if (str_util::ConsumePrefix(&semver, "head")) {
|
command_line_flags.cc | 34 if (str_util::ConsumePrefix(&arg, "--") && 35 str_util::ConsumePrefix(&arg, flag) && 36 str_util::ConsumePrefix(&arg, "=")) { 48 if (str_util::ConsumePrefix(&arg, "--") && 49 str_util::ConsumePrefix(&arg, flag) && 50 str_util::ConsumePrefix(&arg, "=")) { 70 if (str_util::ConsumePrefix(&arg, "--") && 71 str_util::ConsumePrefix(&arg, flag) && 72 str_util::ConsumePrefix(&arg, "=")) { 92 if (str_util::ConsumePrefix(&arg, "--") & [all...] |
device_name_utils.cc | 121 if (str_util::ConsumePrefix(&fullname, "/job:")) { 122 p->has_job = !str_util::ConsumePrefix(&fullname, "*"); 128 if (str_util::ConsumePrefix(&fullname, "/replica:")) { 129 p->has_replica = !str_util::ConsumePrefix(&fullname, "*"); 135 if (str_util::ConsumePrefix(&fullname, "/task:")) { 136 p->has_task = !str_util::ConsumePrefix(&fullname, "*"); 142 if (str_util::ConsumePrefix(&fullname, "/device:")) { 143 p->has_type = !str_util::ConsumePrefix(&fullname, "*"); 147 if (!str_util::ConsumePrefix(&fullname, ":")) { 150 p->has_id = !str_util::ConsumePrefix(&fullname, "*") [all...] |
/external/tensorflow/tensorflow/core/framework/ |
op_def_builder.cc | 115 if (str_util::ConsumePrefix(sp, "numbertype") || 116 str_util::ConsumePrefix(sp, "numerictype") || 117 str_util::ConsumePrefix(sp, "quantizedtype") || 118 str_util::ConsumePrefix(sp, "realnumbertype") || 119 str_util::ConsumePrefix(sp, "realnumberictype")) { 160 if (str_util::ConsumePrefix(&spec, "string")) { 162 } else if (str_util::ConsumePrefix(&spec, "int")) { 164 } else if (str_util::ConsumePrefix(&spec, "float")) { 166 } else if (str_util::ConsumePrefix(&spec, "bool")) { 168 } else if (str_util::ConsumePrefix(&spec, "type")) [all...] |
attr_value_util.cc | 377 bool is_list = str_util::ConsumePrefix(&type, "list("); 378 if (str_util::ConsumePrefix(&type, "string")) { 380 } else if (str_util::ConsumePrefix(&type, "int")) { 382 } else if (str_util::ConsumePrefix(&type, "float")) { 384 } else if (str_util::ConsumePrefix(&type, "bool")) { 386 } else if (str_util::ConsumePrefix(&type, "type")) { 388 } else if (str_util::ConsumePrefix(&type, "shape")) { 390 } else if (str_util::ConsumePrefix(&type, "tensor")) { 392 } else if (str_util::ConsumePrefix(&type, "func")) { 394 } else if (str_util::ConsumePrefix(&type, "placeholder")) [all...] |
op_gen_lib.cc | 58 while (str_util::ConsumePrefix(&str, " ")) { 70 if (str_util::ConsumePrefix(description, "=")) { 71 while (str_util::ConsumePrefix(description, 104 while (str_util::ConsumePrefix(&up_to_colon, " ")) 125 while (str_util::ConsumePrefix(&after_colon, " ")) 127 if (!str_util::ConsumePrefix(&after_colon, "\"")) { 187 while (str_util::ConsumePrefix(&line, " ")) { 189 if (str_util::ConsumePrefix(&line, "<<")) { 233 if (str_util::ConsumePrefix(&line, end)) break;
|
op_def_util.cc | 274 bool is_list = str_util::ConsumePrefix(&type, "list("); 278 if (str_util::ConsumePrefix(&type, valid)) { 286 VALIDATE(str_util::ConsumePrefix(&type, ")"),
|
/bootable/recovery/minadbd/ |
minadbd_services.cpp | 241 if (ConsumePrefix(&name, "reboot:")) { 254 if (ConsumePrefix(&name, "rescue-install:")) { 259 } else if (ConsumePrefix(&name, "rescue-getprop:")) { 264 } else if (ConsumePrefix(&name, "rescue-wipe:")) { 279 } else if (ConsumePrefix(&name, "sideload-host:")) {
|
/external/tensorflow/tensorflow/core/lib/strings/ |
str_util_test.cc | 201 TEST(ConsumePrefix, Basic) { 204 EXPECT_FALSE(str_util::ConsumePrefix(&input, "abcdefg")); 207 EXPECT_FALSE(str_util::ConsumePrefix(&input, "abce")); 210 EXPECT_TRUE(str_util::ConsumePrefix(&input, "")); 213 EXPECT_FALSE(str_util::ConsumePrefix(&input, "abcdeg")); 216 EXPECT_TRUE(str_util::ConsumePrefix(&input, "abcdef")); 220 EXPECT_TRUE(str_util::ConsumePrefix(&input, "abcde"));
|
scanner.h | 79 str_util::ConsumePrefix(&cur_, s); 86 if (!str_util::ConsumePrefix(&cur_, s)) {
|
numbers.cc | 228 if (str_util::ConsumePrefix(&str, "-")) { 290 if (str_util::ConsumePrefix(&str, "-")) {
|
str_util.h | 71 bool ConsumePrefix(StringPiece* s, StringPiece expected);
|
/external/tensorflow/tensorflow/cc/tutorials/ |
example_trainer.cc | 170 if (tensorflow::str_util::ConsumePrefix(&arg, flag) && 171 tensorflow::str_util::ConsumePrefix(&arg, "=")) { 181 if (tensorflow::str_util::ConsumePrefix(&arg, flag)) {
|
/external/libtextclassifier/utils/sentencepiece/ |
normalizer.cc | 87 while (is_prev_space && ConsumePrefix(&sp, " ")) {
|
/external/tensorflow/tensorflow/compiler/xla/ |
text_literal_reader.cc | 89 if (!absl::ConsumePrefix(&coordinates_string, "(")) {
|
/external/tensorflow/tensorflow/lite/toco/ |
args.cc | 98 bool res = absl::ConsumePrefix(&str, prefix);
|
/external/tensorflow/tensorflow/python/framework/ |
python_op_gen_main.cc | 99 if (str_util::ConsumePrefix(&command_str, kExecPrefix) &&
|
/external/tensorflow/tensorflow/core/platform/ |
file_system_test.cc | 127 str_util::ConsumePrefix(&path, "/"); 163 EXPECT_TRUE(str_util::ConsumePrefix(&trimmed_result,
|
/external/tensorflow/tensorflow/contrib/android/ |
asset_manager_filesystem.cc | 233 str_util::ConsumePrefix(&piece, prefix_);
|
/external/tensorflow/tensorflow/core/graph/ |
graph_constructor.cc | 565 if (str_util::ConsumePrefix(&s, kColocationGroupPrefix) && 804 if (str_util::ConsumePrefix(&input, "^")) { 816 if (str_util::ConsumePrefix(&v, kColocationGroupPrefix)) { [all...] |
/external/tensorflow/tensorflow/core/platform/cloud/ |
gcs_file_system.cc | 188 str_util::ConsumePrefix(&objectp, "/"); 551 str_util::ConsumePrefix(&range_piece, [all...] |
/external/tensorflow/tensorflow/java/src/gen/cc/ |
op_specs.cc | 133 if (str_util::ConsumePrefix(&attr_type, "list(")) {
|
/external/tensorflow/tensorflow/cc/framework/ |
scope.cc | 278 if (str_util::ConsumePrefix(&s, kColocationGroupPrefix)) {
|