Home
last modified time | relevance | path

Searched refs:CodepointIndex (Results 1 – 6 of 6) sorted by relevance

/external/libtextclassifier/native/utils/grammar/parsing/
Dparser.cc43 const std::unordered_map<CodepointIndex, CodepointIndex>& token_alignment, in MapCodepointToTokenPaddingIfPresent() argument
90 std::unordered_map<CodepointIndex, CodepointIndex> token_match_start; in SortedSymbolsForInput()
93 const CodepointIndex token_start = input.tokens[i].start; in SortedSymbolsForInput()
94 const CodepointIndex prev_token_end = input.tokens[i - 1].end; in SortedSymbolsForInput()
101 CodepointIndex match_offset = input.tokens[input.context_span.first].start; in SortedSymbolsForInput()
144 const CodepointIndex context_start = in SortedSymbolsForInput()
146 const CodepointIndex context_end = in SortedSymbolsForInput()
Dmatcher.h89 void AddTerminal(const CodepointIndex begin, const CodepointIndex end, in AddTerminal()
Dlexer.cc41 CodepointIndex sub_token_start = codepoint_span.first; in AppendTokenSymbols()
/external/libtextclassifier/native/annotator/
Dtypes.h55 using CodepointIndex = int; variable
65 CodepointSpan(CodepointIndex start, CodepointIndex end) in CodepointSpan()
92 CodepointIndex first;
93 CodepointIndex second;
203 CodepointIndex start;
204 CodepointIndex end;
218 Token(const std::string& arg_value, CodepointIndex arg_start, in Token()
219 CodepointIndex arg_end) in Token()
224 Token(const std::string& arg_value, CodepointIndex arg_start, in Token()
225 CodepointIndex arg_end, bool is_padding, bool is_whitespace) in Token()
Dfeature-processor.cc161 const CodepointIndex last_line_begin_index = in StripTokensFromOtherLines()
163 const CodepointIndex last_line_end_index = in StripTokensFromOtherLines()
289 const CodepointIndex tokens_start = tokens[click_position - span_left].start; in SpanToLabel()
290 const CodepointIndex tokens_end = tokens[click_position + span_right].end; in SpanToLabel()
/external/libtextclassifier/native/annotator/duration/
Dduration.cc177 CodepointIndex start_index = kInvalidIndex; in FindDurationStartingAt()
178 CodepointIndex end_index = kInvalidIndex; in FindDurationStartingAt()