Home
last modified time | relevance | path

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

/external/libtextclassifier/annotator/
Dstrip-unpaired-brackets.cc29 const UnicodeText& context_unicode, in IsCodepointInSpan() argument
31 auto begin_it = context_unicode.begin(); in IsCodepointInSpan()
33 auto end_it = context_unicode.begin(); in IsCodepointInSpan()
40 char32 FirstSpanCodepoint(const UnicodeText& context_unicode, in FirstSpanCodepoint() argument
42 auto it = context_unicode.begin(); in FirstSpanCodepoint()
48 char32 LastSpanCodepoint(const UnicodeText& context_unicode, in LastSpanCodepoint() argument
50 auto it = context_unicode.begin(); in LastSpanCodepoint()
59 const UnicodeText context_unicode = in StripUnpairedBrackets() local
61 return StripUnpairedBrackets(context_unicode, span, unilib); in StripUnpairedBrackets()
67 CodepointSpan StripUnpairedBrackets(const UnicodeText& context_unicode, in StripUnpairedBrackets() argument
[all …]
Dfeature-processor.cc142 const UnicodeText context_unicode = UTF8ToUnicodeText(context, in StripTokensFromOtherLines() local
144 StripTokensFromOtherLines(context_unicode, span, tokens); in StripTokensFromOtherLines()
148 const UnicodeText& context_unicode, CodepointSpan span, in StripTokensFromOtherLines() argument
150 std::vector<UnicodeTextRange> lines = SplitContext(context_unicode); in StripTokensFromOtherLines()
152 auto span_start = context_unicode.begin(); in StripTokensFromOtherLines()
156 auto span_end = context_unicode.begin(); in StripTokensFromOtherLines()
164 std::distance(context_unicode.begin(), line.first); in StripTokensFromOtherLines()
552 const UnicodeText& context_unicode) const { in SplitContext()
555 FindSubstrings(context_unicode, codepoints, &lines); in SplitContext()
561 const UnicodeText context_unicode = in StripBoundaryCodepoints() local
[all …]
Dannotator.cc557 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()
[all …]
Dfeature-processor.h139 void RetokenizeAndFindClick(const UnicodeText& context_unicode,
172 const UnicodeText& context_unicode) const;
181 CodepointSpan StripBoundaryCodepoints(const UnicodeText& context_unicode,
251 void StripTokensFromOtherLines(const UnicodeText& context_unicode,
Dannotator.h328 const UnicodeText& context_unicode, CodepointSpan click_indices,
423 bool RegexChunk(const UnicodeText& context_unicode,
429 bool DatetimeChunk(const UnicodeText& context_unicode,
531 const UnicodeText& context_unicode,
Dstrip-unpaired-brackets.h33 CodepointSpan StripUnpairedBrackets(const UnicodeText& context_unicode,
/external/libtextclassifier/utils/
Dtokenizer.cc217 bool Tokenizer::ICUTokenize(const UnicodeText& context_unicode, in ICUTokenize() argument
220 unilib_->CreateBreakIterator(context_unicode); in ICUTokenize()
228 auto token_begin_it = context_unicode.begin(); in ICUTokenize()
247 context_unicode.UTF8Substring(token_begin_it, token_end_it); in ICUTokenize()
Dtokenizer.h96 bool ICUTokenize(const UnicodeText& context_unicode,
/external/libtextclassifier/annotator/contact/
Dcontact-engine-dummy.h47 bool Chunk(const UnicodeText& context_unicode, in Chunk() argument
/external/libtextclassifier/annotator/installed_app/
Dinstalled-app-engine-dummy.h47 bool Chunk(const UnicodeText& context_unicode, in Chunk() argument
/external/libtextclassifier/annotator/number/
Dnumber.h55 bool FindAll(const UnicodeText& context_unicode,