Home
last modified time | relevance | path

Searched refs:context_unicode (Results 1 – 11 of 11) sorted by relevance

/external/libtextclassifier/native/annotator/
Dannotator.cc706 const UnicodeText& context_unicode, in SnapLeftIfWhitespaceSelection() argument
713 it = context_unicode.begin(); in SnapLeftIfWhitespaceSelection()
723 it = context_unicode.begin(); in SnapLeftIfWhitespaceSelection()
725 while (it != context_unicode.begin() && unilib.IsWhitespace(*it)) { in SnapLeftIfWhitespaceSelection()
842 const UnicodeText context_unicode = UTF8ToUnicodeText(context, in SuggestSelection() local
845 if (!unilib_->IsValidUtf8(context_unicode)) { in SuggestSelection()
850 if (!IsValidSpanInput(context_unicode, click_indices)) { in SuggestSelection()
871 click_indices, context_unicode, *unilib_); in SuggestSelection()
881 if (!ModelSuggestSelection(context_unicode, click_indices, in SuggestSelection()
889 if (!RegexChunk(context_unicode, selection_regex_patterns_, in SuggestSelection()
[all …]
Dfeature-processor.cc142 const UnicodeText context_unicode = UTF8ToUnicodeText(context, in StripTokensFromOtherLines() local
145 CodepointSpanToUnicodeTextRange(context_unicode, span); in StripTokensFromOtherLines()
146 StripTokensFromOtherLines(context_unicode, span_begin, span_end, span, in StripTokensFromOtherLines()
151 const UnicodeText& context_unicode, in StripTokensFromOtherLines() argument
156 SplitContext(context_unicode, options_->use_pipe_character_for_newline()); in StripTokensFromOtherLines()
162 std::distance(context_unicode.begin(), line.first); in StripTokensFromOtherLines()
570 const UnicodeText& context_unicode, in SplitContext() argument
577 FindSubstrings(context_unicode, codepoints, &lines); in SplitContext()
583 const UnicodeText context_unicode = in StripBoundaryCodepoints() local
585 return StripBoundaryCodepoints(context_unicode, span); in StripBoundaryCodepoints()
[all …]
Dfeature-processor.h155 void RetokenizeAndFindClick(const UnicodeText& context_unicode,
196 const UnicodeText& context_unicode,
206 CodepointSpan StripBoundaryCodepoints(const UnicodeText& context_unicode,
278 void StripTokensFromOtherLines(const UnicodeText& context_unicode,
Dannotator.h289 const UnicodeText& context_unicode, const CodepointSpan& click_indices,
317 const UnicodeText& context_unicode,
392 bool RegexChunk(const UnicodeText& context_unicode,
401 bool DatetimeChunk(const UnicodeText& context_unicode,
487 const UnicodeText& context_unicode) const;
494 const UnicodeText& context_unicode,
573 const UnicodeText& context_unicode,
Dfeature-processor_test.cc304 const UnicodeText context_unicode = UTF8ToUnicodeText(context, in TEST_F() local
308 context_unicode, options.use_pipe_character_for_newline); in TEST_F()
327 const UnicodeText context_unicode = UTF8ToUnicodeText(context, in TEST_F() local
331 context_unicode, options.use_pipe_character_for_newline); in TEST_F()
/external/libtextclassifier/native/utils/
Dtokenizer.cc234 bool Tokenizer::ICUTokenize(const UnicodeText& context_unicode, in ICUTokenize() argument
237 unilib_->CreateBreakIterator(context_unicode); in ICUTokenize()
241 const int context_unicode_size = context_unicode.size_codepoints(); in ICUTokenize()
244 auto token_begin_it = context_unicode.begin(); in ICUTokenize()
254 TC3_CHECK(token_end_it <= context_unicode.end()); in ICUTokenize()
266 context_unicode.UTF8Substring(token_begin_it, token_end_it); in ICUTokenize()
Dtokenizer.h123 bool ICUTokenize(const UnicodeText& context_unicode,
/external/libtextclassifier/native/annotator/person_name/
Dperson-name-engine-dummy.h48 bool Chunk(const UnicodeText& context_unicode, in Chunk() argument
/external/libtextclassifier/native/annotator/installed_app/
Dinstalled-app-engine-dummy.h47 bool Chunk(const UnicodeText& context_unicode, in Chunk() argument
/external/libtextclassifier/native/annotator/contact/
Dcontact-engine-dummy.h49 bool Chunk(const UnicodeText& context_unicode, in Chunk() argument
/external/libtextclassifier/native/annotator/number/
Dnumber.h60 bool FindAll(const UnicodeText& context_unicode,