Searched refs:CodepointIndex (Results 1 – 8 of 8) sorted by relevance
/external/libtextclassifier/native/annotator/ |
D | types.h | 54 using CodepointIndex = int; variable 60 using CodepointSpan = std::pair<CodepointIndex, CodepointIndex>; 138 CodepointIndex start; 139 CodepointIndex end; 153 Token(const std::string& arg_value, CodepointIndex arg_start, in Token() 154 CodepointIndex arg_end) in Token() 159 Token(const std::string& arg_value, CodepointIndex arg_start, in Token() 160 CodepointIndex arg_end, bool is_padding, bool is_whitespace) in Token()
|
D | feature-processor.cc | 164 const CodepointIndex last_line_begin_index = in StripTokensFromOtherLines() 166 const CodepointIndex last_line_end_index = in StripTokensFromOtherLines() 203 std::pair<CodepointIndex, CodepointIndex>* span) const { in LabelToSpan() argument 262 const std::pair<CodepointIndex, CodepointIndex>& span, in SpanToLabel() argument 292 const CodepointIndex tokens_start = tokens[click_position - span_left].start; in SpanToLabel() 293 const CodepointIndex tokens_end = tokens[click_position + span_right].end; in SpanToLabel()
|
D | feature-processor.h | 248 bool SpanToLabel(const std::pair<CodepointIndex, CodepointIndex>& span,
|
/external/libtextclassifier/native/utils/grammar/ |
D | lexer.cc | 54 const std::unordered_map<CodepointIndex, CodepointIndex>& token_alignment, in MapCodepointToTokenPaddingIfPresent() argument 161 CodepointIndex sub_token_start = codepoint_span.first; in ProcessToken() 204 CodepointIndex prev_token_end = 0; in Process() 219 std::unordered_map<CodepointIndex, CodepointIndex> token_match_start; in Process()
|
D | rules-utils_test.cc | 32 Match CreateMatch(const CodepointIndex begin, const CodepointIndex end) { in CreateMatch()
|
D | matcher.h | 140 void AddTerminal(const CodepointIndex begin, const CodepointIndex end, in AddTerminal()
|
/external/libtextclassifier/native/annotator/duration/ |
D | duration.cc | 158 CodepointIndex start_index = kInvalidIndex; in FindDurationStartingAt() 159 CodepointIndex end_index = kInvalidIndex; in FindDurationStartingAt()
|
/external/skia/modules/skparagraph/src/ |
D | Run.h | 33 typedef size_t CodepointIndex; typedef 34 typedef SkRange<CodepointIndex> CodepointRange;
|