Lines Matching refs:kInvalidIndex
219 if (result_begin_codepoint == kInvalidIndex || in LabelToSpan()
220 result_end_codepoint == kInvalidIndex) { in LabelToSpan()
271 if (tokens[i].start != kInvalidIndex && tokens[i].end > span.first) { in SpanToLabel()
280 if (tokens[i].end != kInvalidIndex && tokens[i].start < span.second) { in SpanToLabel()
338 TokenIndex start_token = kInvalidIndex; in CodepointSpanToTokenSpan()
339 TokenIndex end_token = kInvalidIndex; in CodepointSpanToTokenSpan()
350 if (start_token == kInvalidIndex) { in CodepointSpanToTokenSpan()
392 return kInvalidIndex; in FindTokenThatContainsSpan()
410 if (range_begin == kInvalidIndex || range_end == kInvalidIndex) { in CenterTokenFromClick()
412 if (token_index != kInvalidIndex) { in CenterTokenFromClick()
422 return kInvalidIndex; in CenterTokenFromClick()
434 if (range_begin != kInvalidIndex && range_end != kInvalidIndex) { in CenterTokenFromMiddleOfSelection()
437 return kInvalidIndex; in CenterTokenFromMiddleOfSelection()
469 return kInvalidIndex; in FindCenterToken()
731 if (*click_pos == kInvalidIndex) { in RetokenizeAndFindClick()