Home
last modified time | relevance | path

Searched refs:kInvalidIndex (Results 1 – 25 of 25) sorted by relevance

/external/libtextclassifier/native/annotator/
Dfeature-processor.cc219 if (result_begin_codepoint == kInvalidIndex || in LabelToSpan()
220 result_end_codepoint == kInvalidIndex) { in LabelToSpan()
271 if (tokens[i].start != kInvalidIndex && tokens[i].end > span.first) { in SpanToLabel()
280 if (tokens[i].end != kInvalidIndex && tokens[i].start < span.second) { in SpanToLabel()
338 TokenIndex start_token = kInvalidIndex; in CodepointSpanToTokenSpan()
339 TokenIndex end_token = kInvalidIndex; in CodepointSpanToTokenSpan()
350 if (start_token == kInvalidIndex) { in CodepointSpanToTokenSpan()
392 return kInvalidIndex; in FindTokenThatContainsSpan()
410 if (range_begin == kInvalidIndex || range_end == kInvalidIndex) { in CenterTokenFromClick()
412 if (token_index != kInvalidIndex) { in CenterTokenFromClick()
[all …]
Dtypes.h42 constexpr int kInvalidIndex = -1; variable
63 CodepointSpan() : first(kInvalidIndex), second(kInvalidIndex) {} in CodepointSpan()
86 return this->first != kInvalidIndex && this->second != kInvalidIndex && in IsValid()
147 TokenSpan() : first(kInvalidIndex), second(kInvalidIndex) {} in TokenSpan()
171 return this->first != kInvalidIndex && this->second != kInvalidIndex; in IsValid()
214 : Token(/*arg_value=*/"", /*arg_start=*/kInvalidIndex, in Token()
215 /*arg_end=*/kInvalidIndex, /*is_padding=*/true, in Token()
Dtypes.cc26 CodepointSpan(kInvalidIndex, kInvalidIndex);
28 const TokenSpan TokenSpan::kInvalid = TokenSpan(kInvalidIndex, kInvalidIndex);
Dannotator.cc1267 if (click_pos == kInvalidIndex) { in ModelSuggestSelection()
1319 /*selection_span_for_feature=*/{kInvalidIndex, kInvalidIndex}, in ModelSuggestSelection()
1491 if (selection_token_span.first == kInvalidIndex || in ModelClassifyText()
1492 selection_token_span.second == kInvalidIndex) { in ModelClassifyText()
1506 if (click_pos == kInvalidIndex) { in ModelClassifyText()
2001 /*selection_span_for_feature=*/{kInvalidIndex, kInvalidIndex}, in ModelAnnotate()
2486 return {kInvalidIndex, kInvalidIndex}; in ComputeSelectionBoundaries()
2491 CodepointSpan result = {kInvalidIndex, kInvalidIndex}; in ComputeSelectionBoundaries()
2503 return {kInvalidIndex, kInvalidIndex}; in ComputeSelectionBoundaries()
2505 if (group_start == kInvalidIndex || group_end == kInvalidIndex) { in ComputeSelectionBoundaries()
[all …]
Dfeature-processor_test.cc533 EXPECT_EQ(token_index, kInvalidIndex); in TEST_F()
558 EXPECT_EQ(token_index, kInvalidIndex); in TEST_F()
760 {{kInvalidIndex, kInvalidIndex}, cached_padding_features}, in TEST_F()
767 /*selection_span_for_feature=*/{kInvalidIndex, kInvalidIndex}, in TEST_F()
Dannotator_jni.cc374 /*(unused) selection_indices=*/{kInvalidIndex, kInvalidIndex}, in ClassificationResultsToJObjectArray()
/external/libtextclassifier/native/actions/
Dtypes.h40 int message_index = kInvalidIndex;
44 CodepointSpan span = CodepointSpan{kInvalidIndex, kInvalidIndex};
/external/llvm-project/clang/lib/Format/
DUnwrappedLineParser.h55 size_t MatchingOpeningBlockLineIndex = kInvalidIndex;
59 size_t MatchingClosingBlockLineIndex = kInvalidIndex;
61 static const size_t kInvalidIndex = -1; member
303 MatchingOpeningBlockLineIndex(kInvalidIndex) {} in UnwrappedLine()
DAffectedRangeManager.cpp143 Line->MatchingOpeningBlockLineIndex != UnwrappedLine::kInvalidIndex && in nonPPLineAffected()
DNamespaceEndCommentsFixer.cpp178 if (StartLineIndex == UnwrappedLine::kInvalidIndex) in getNamespaceToken()
DUnwrappedLineParser.cpp602 ? (UnwrappedLine::kInvalidIndex) in parseBlock()
643 if (OpeningLineIndex != UnwrappedLine::kInvalidIndex) { in parseBlock()
2916 Line->MatchingOpeningBlockLineIndex = UnwrappedLine::kInvalidIndex; in addUnwrappedLine()
DUnwrappedLineFormatter.cpp145 if (StartLineIndex == UnwrappedLine::kInvalidIndex) in getMatchingNamespaceToken()
/external/libtextclassifier/native/annotator/datetime/
Dextractor.cc28 *result_span = {kInvalidIndex, kInvalidIndex}; in Extract()
198 if (result_span->first == kInvalidIndex || in Extract()
199 result_span->second == kInvalidIndex) { in Extract()
200 *result_span = {kInvalidIndex, kInvalidIndex}; in Extract()
270 if (span->first == kInvalidIndex || span->first > match_start) { in UpdateMatchSpan()
273 if (span->second == kInvalidIndex || span->second < match_end) { in UpdateMatchSpan()
Dregex-parser.cc260 if (parse_result.span.first != kInvalidIndex && in HandleParseMatch()
261 parse_result.span.second != kInvalidIndex) { in HandleParseMatch()
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator.cc53 CodepointSpan span{kInvalidIndex, kInvalidIndex}; in MatchSelectionBoundaries()
66 if (span.first == kInvalidIndex) { in MatchSelectionBoundaries()
283 if (model_->context_left_num_tokens() != kInvalidIndex) { in ClassifyText()
287 if (model_->context_right_num_tokens() != kInvalidIndex) { in ClassifyText()
/external/libtextclassifier/native/annotator/duration/
Dduration.cc177 CodepointIndex start_index = kInvalidIndex; in FindDurationStartingAt()
178 CodepointIndex end_index = kInvalidIndex; in FindDurationStartingAt()
196 if (start_index == kInvalidIndex) { in FindDurationStartingAt()
203 if (start_index == kInvalidIndex) { in FindDurationStartingAt()
/external/libprotobuf-mutator/src/
Dfield_instance.h28 static const size_t kInvalidIndex = -1;
36 : message_(nullptr), descriptor_(nullptr), index_(kInvalidIndex) {} in ConstFieldInstance()
43 assert(index_ != kInvalidIndex); in ConstFieldInstance()
49 : message_(message), descriptor_(field), index_(kInvalidIndex) { in ConstFieldInstance()
227 static const size_t kInvalidIndex = -1;
/external/angle/src/libANGLE/renderer/vulkan/
DCommandProcessor.h192 static const uint32_t kInvalidIndex = std::numeric_limits<uint32_t>::max();
201 QueueFamily() : mProperties{}, mIndex(kInvalidIndex) {} in QueueFamily()
205 bool valid() const { return (mIndex != kInvalidIndex); } in valid()
233 DeviceQueueMap() : mIndex(vk::QueueFamily::kInvalidIndex), mIsProtected(false) {} in DeviceQueueMap()
240 bool valid() const { return (mIndex != QueueFamily::kInvalidIndex); } in valid()
DCommandProcessor.cpp1339 uint32_t index = QueueFamily::kInvalidIndex; in FindIndex()
1349 if ((index == QueueFamily::kInvalidIndex) && (matchNumber-- == 0)) in FindIndex()
/external/libtextclassifier/native/utils/grammar/utils/
Dir.cc316 constexpr int kInvalidIndex = -1; in SerializeTerminalRules() local
317 std::vector<int> suffix(terminal_rules.size(), kInvalidIndex); in SerializeTerminalRules()
360 if (suffix[i] != kInvalidIndex) { in SerializeTerminalRules()
373 if (suffix[canonical_index] == kInvalidIndex) { in SerializeTerminalRules()
378 while (suffix[canonical_index] != kInvalidIndex) { in SerializeTerminalRules()
/external/brotli/c/enc/
Dcluster_inc.h213 static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX;
220 new_index[i] = kInvalidIndex;
224 if (new_index[symbols[i]] == kInvalidIndex) {
Dblock_splitter_inc.h214 static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX; in FN() local
303 for (i = 0; i < num_clusters; ++i) new_index[i] = kInvalidIndex; in FN()
328 if (new_index[best_out] == kInvalidIndex) { in FN()
/external/dynamic_depth/internal/xmpmeta/
Dxmp_writer.cc34 const int kInvalidIndex = -1; variable
180 return kInvalidIndex; in InsertStandardXMPSection()
/external/libtextclassifier/native/utils/intents/
Dintent-generator-test-lib.cc142 /*text=*/"", /*selection_indices=*/{kInvalidIndex, kInvalidIndex}, in TEST_F()
/external/libtextclassifier/native/annotator/pod_ner/
Dpod-ner-impl_test.cc525 EXPECT_EQ(suggested_span.span, CodepointSpan(kInvalidIndex, kInvalidIndex)); in TEST_F()