Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/parsing/
Dparser.cc44 const std::unordered_map<CodepointIndex, CodepointIndex>& token_alignment, in MapCodepointToTokenPaddingIfPresent() argument
91 std::unordered_map<CodepointIndex, CodepointIndex> token_match_start; in SortedSymbolsForInput()
94 const CodepointIndex token_start = input.tokens[i].start; in SortedSymbolsForInput()
95 const CodepointIndex prev_token_end = input.tokens[i - 1].end; in SortedSymbolsForInput()
102 CodepointIndex match_offset = input.tokens[input.context_span.first].start; in SortedSymbolsForInput()
145 const CodepointIndex context_start = in SortedSymbolsForInput()
147 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()
93 CodepointIndex first;
94 CodepointIndex second;
204 CodepointIndex start;
205 CodepointIndex end;
219 Token(const std::string& arg_value, CodepointIndex arg_start, in Token()
220 CodepointIndex arg_end) in Token()
225 Token(const std::string& arg_value, CodepointIndex arg_start, in Token()
226 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.cc183 CodepointIndex start_index = kInvalidIndex; in FindDurationStartingAt()
184 CodepointIndex end_index = kInvalidIndex; in FindDurationStartingAt()