Searched refs:kInvalidIndex (Results 1 – 9 of 9) sorted by relevance
227 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 …]
26 constexpr int kInvalidIndex = -1; variable56 : value(""), start(kInvalidIndex), end(kInvalidIndex), is_padding(true) {} in Token()
321 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()
21 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;
211 static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX;218 new_index[i] = kInvalidIndex;222 if (new_index[symbols[i]] == kInvalidIndex) {
215 static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX; in FN() local299 for (i = 0; i < num_clusters; ++i) new_index[i] = kInvalidIndex; in FN()324 if (new_index[best_out] == kInvalidIndex) { in FN()
425 return singleton_handles_[singleton] != kInvalidIndex; in Exists()444 static const int kInvalidIndex = -1;
1416 singleton_handles_[i] = kInvalidIndex; in EternalHandles()1457 DCHECK_EQ(kInvalidIndex, *index); in Create()
292 EXPECT_EQ(token_index, kInvalidIndex); in TEST()317 EXPECT_EQ(token_index, kInvalidIndex); in TEST()