Home
last modified time | relevance | path

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

/external/libtextclassifier/annotator/
Dtypes.h44 using CodepointIndex = int; variable
50 using CodepointSpan = std::pair<CodepointIndex, CodepointIndex>;
128 CodepointIndex start;
129 CodepointIndex end;
138 Token(const std::string& arg_value, CodepointIndex arg_start, in Token()
139 CodepointIndex arg_end) in Token()
Dfeature-processor.cc163 const CodepointIndex last_line_begin_index = in StripTokensFromOtherLines()
165 const CodepointIndex last_line_end_index = in StripTokensFromOtherLines()
202 std::pair<CodepointIndex, CodepointIndex>* span) const { in LabelToSpan() argument
261 const std::pair<CodepointIndex, CodepointIndex>& span, in SpanToLabel() argument
291 const CodepointIndex tokens_start = tokens[click_position - span_left].start; in SpanToLabel()
292 const CodepointIndex tokens_end = tokens[click_position + span_right].end; in SpanToLabel()
Dfeature-processor.h217 bool SpanToLabel(const std::pair<CodepointIndex, CodepointIndex>& span,
/external/libtextclassifier/annotator/duration/
Dduration.cc133 CodepointIndex start_index = kInvalidIndex; in FindDurationStartingAt()
134 CodepointIndex end_index = kInvalidIndex; in FindDurationStartingAt()