Lines Matching refs:context_unicode
557 const UnicodeText& context_unicode, in SnapLeftIfWhitespaceSelection() argument
564 it = context_unicode.begin(); in SnapLeftIfWhitespaceSelection()
576 it = context_unicode.begin(); in SnapLeftIfWhitespaceSelection()
578 while (it != context_unicode.begin() && unilib.IsWhitespace(*it)) { in SnapLeftIfWhitespaceSelection()
679 const UnicodeText context_unicode = UTF8ToUnicodeText(context, in SuggestSelection() local
682 if (!context_unicode.is_valid()) { in SuggestSelection()
686 const int context_codepoint_size = context_unicode.size_codepoints(); in SuggestSelection()
711 click_indices, context_unicode, *unilib_); in SuggestSelection()
718 if (!ModelSuggestSelection(context_unicode, click_indices, in SuggestSelection()
724 if (!RegexChunk(context_unicode, selection_regex_patterns_, &candidates, in SuggestSelection()
743 !contact_engine_->Chunk(context_unicode, tokens, &candidates)) { in SuggestSelection()
748 !installed_app_engine_->Chunk(context_unicode, tokens, &candidates)) { in SuggestSelection()
753 !number_annotator_->FindAll(context_unicode, options.annotation_usecase, in SuggestSelection()
759 !duration_annotator_->FindAll(context_unicode, tokens, in SuggestSelection()
1004 const UnicodeText& context_unicode, CodepointSpan click_indices, in ModelSuggestSelection() argument
1020 *tokens = selection_feature_processor_->Tokenize(context_unicode); in ModelSuggestSelection()
1022 context_unicode, click_indices, in ModelSuggestSelection()
1100 context_unicode, TokenSpanToCodepointSpan(*tokens, chunk)); in ModelSuggestSelection()
1103 StripUnpairedBrackets(context_unicode, candidate.span, *unilib_); in ModelSuggestSelection()
1649 const UnicodeText context_unicode = UTF8ToUnicodeText(context, in ModelAnnotate() local
1653 lines.push_back({context_unicode.begin(), context_unicode.end()}); in ModelAnnotate()
1655 lines = selection_feature_processor_->SplitContext(context_unicode); in ModelAnnotate()
1703 const int offset = std::distance(context_unicode.begin(), line.first); in ModelAnnotate()
1780 const UnicodeText context_unicode = in Annotate() local
1782 if (!context_unicode.is_valid()) { in Annotate()
1839 !contact_engine_->Chunk(context_unicode, tokens, &candidates)) { in Annotate()
1846 !installed_app_engine_->Chunk(context_unicode, tokens, &candidates)) { in Annotate()
1853 !number_annotator_->FindAll(context_unicode, options.annotation_usecase, in Annotate()
1862 !duration_annotator_->FindAll(context_unicode, tokens, in Annotate()
2023 bool Annotator::RegexChunk(const UnicodeText& context_unicode, in RegexChunk() argument
2029 const auto matcher = regex_pattern.pattern->Matcher(context_unicode); in RegexChunk()
2040 context_unicode.ToUTF8String(), in RegexChunk()
2318 bool Annotator::DatetimeChunk(const UnicodeText& context_unicode, in DatetimeChunk() argument
2330 if (!datetime_parser_->Parse(context_unicode, reference_time_ms_utc, in DatetimeChunk()