Home
last modified time | relevance | path

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

/external/libtextclassifier/smartselect/
Dfeature-processor.cc227 if (result_begin_codepoint == kInvalidIndex || in LabelToSpan()
228 result_end_codepoint == kInvalidIndex) { in LabelToSpan()
229 *span = CodepointSpan({kInvalidIndex, kInvalidIndex}); in LabelToSpan()
259 if (tokens[i].start != kInvalidIndex && tokens[i].end > span.first) { in SpanToLabel()
268 if (tokens[i].end != kInvalidIndex && tokens[i].start < span.second) { in SpanToLabel()
310 TokenIndex start_token = kInvalidIndex; in CodepointSpanToTokenSpan()
311 TokenIndex end_token = kInvalidIndex; in CodepointSpanToTokenSpan()
316 if (start_token == kInvalidIndex) { in CodepointSpanToTokenSpan()
345 return kInvalidIndex; in FindTokenThatContainsSpan()
363 if (range_begin == kInvalidIndex || range_end == kInvalidIndex) { in CenterTokenFromClick()
[all …]
Dtypes.h26 constexpr int kInvalidIndex = -1; variable
56 : value(""), start(kInvalidIndex), end(kInvalidIndex), is_padding(true) {} in Token()
Dtext-classification-model.cc321 if (selection.first == kInvalidIndex || selection.second == kInvalidIndex) { in BestSelectionSpan()
406 if (span.first != kInvalidIndex && span.second != kInvalidIndex && in SuggestSelectionSymmetrical()
429 if (span.first != kInvalidIndex && span.second != kInvalidIndex) { in SuggestSelectionSymmetrical()
/external/v8/src/interpreter/
Dbytecode-register.h21 explicit Register(int index = kInvalidIndex) : index_(index) {} in index_()
25 bool is_valid() const { return index_ != kInvalidIndex; } in is_valid()
92 static const int kInvalidIndex = kMaxInt;
/external/brotli/enc/
Dcluster_inc.h211 static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX;
218 new_index[i] = kInvalidIndex;
222 if (new_index[symbols[i]] == kInvalidIndex) {
Dblock_splitter_inc.h215 static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX; in FN() local
299 for (i = 0; i < num_clusters; ++i) new_index[i] = kInvalidIndex; in FN()
324 if (new_index[best_out] == kInvalidIndex) { in FN()
/external/v8/src/
Dglobal-handles.h425 return singleton_handles_[singleton] != kInvalidIndex; in Exists()
444 static const int kInvalidIndex = -1;
Dglobal-handles.cc1416 singleton_handles_[i] = kInvalidIndex; in EternalHandles()
1457 DCHECK_EQ(kInvalidIndex, *index); in Create()
/external/libtextclassifier/tests/
Dfeature-processor_test.cc292 EXPECT_EQ(token_index, kInvalidIndex); in TEST()
317 EXPECT_EQ(token_index, kInvalidIndex); in TEST()