Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/
Dtypes.h54 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()
Dfeature-processor.cc164 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()
Dfeature-processor.h248 bool SpanToLabel(const std::pair<CodepointIndex, CodepointIndex>& span,
/external/libtextclassifier/native/utils/grammar/
Dlexer.cc54 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()
Drules-utils_test.cc32 Match CreateMatch(const CodepointIndex begin, const CodepointIndex end) { in CreateMatch()
Dmatcher.h140 void AddTerminal(const CodepointIndex begin, const CodepointIndex end, in AddTerminal()
/external/libtextclassifier/native/annotator/duration/
Dduration.cc158 CodepointIndex start_index = kInvalidIndex; in FindDurationStartingAt()
159 CodepointIndex end_index = kInvalidIndex; in FindDurationStartingAt()
/external/skia/modules/skparagraph/src/
DRun.h33 typedef size_t CodepointIndex; typedef
34 typedef SkRange<CodepointIndex> CodepointRange;