Searched refs:CodepointIndex (Results 1 – 6 of 6) sorted by relevance
/external/libtextclassifier/native/utils/grammar/parsing/ |
D | parser.cc | 44 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()
|
D | matcher.h | 89 void AddTerminal(const CodepointIndex begin, const CodepointIndex end, in AddTerminal()
|
D | lexer.cc | 41 CodepointIndex sub_token_start = codepoint_span.first; in AppendTokenSymbols()
|
/external/libtextclassifier/native/annotator/ |
D | types.h | 55 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()
|
D | feature-processor.cc | 161 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/ |
D | duration.cc | 183 CodepointIndex start_index = kInvalidIndex; in FindDurationStartingAt() 184 CodepointIndex end_index = kInvalidIndex; in FindDurationStartingAt()
|