Home
last modified time | relevance | path

Searched refs:ResetToTermStartingAfterUtf32 (Results 1 – 7 of 7) sorted by relevance

/external/icing/icing/tokenization/reverse_jni/
Dreverse-jni-language-segmenter_test.cc67 bool is_ok = itr->ResetToTermStartingAfterUtf32(-1).ok(); in GetAllTermsResetAfterUtf32()
73 is_ok = itr->ResetToTermStartingAfterUtf32(char_itr.utf32_index()).ok(); in GetAllTermsResetAfterUtf32()
94 is_ok = itr->ResetToTermStartingAfterUtf32(char_itr.utf32_index()).ok(); in GetAllTermsAdvanceAndResetAfterUtf32()
579 auto position_or = itr->ResetToTermStartingAfterUtf32(8); in TEST_P()
584 position_or = itr->ResetToTermStartingAfterUtf32(7); in TEST_P()
602 ASSERT_THAT(itr->ResetToTermStartingAfterUtf32(7), IsOkAndHolds(Eq(8))); in TEST_P()
605 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(-1), IsOk()); in TEST_P()
608 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(21), in TEST_P()
770 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(2), IsOkAndHolds(Eq(3))); in TEST_P()
773 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(10), IsOkAndHolds(Eq(11))); in TEST_P()
[all …]
Dreverse-jni-language-segmenter.cc123 libtextclassifier3::StatusOr<int32_t> ResetToTermStartingAfterUtf32( in ResetToTermStartingAfterUtf32() function in icing::lib::ReverseJniLanguageSegmenterIterator
/external/icing/icing/tokenization/icu/
Dicu-language-segmenter_test.cc66 bool is_ok = itr->ResetToTermStartingAfterUtf32(-1).ok(); in GetAllTermsResetAfterUtf32()
72 is_ok = itr->ResetToTermStartingAfterUtf32(char_itr.utf32_index()).ok(); in GetAllTermsResetAfterUtf32()
93 is_ok = itr->ResetToTermStartingAfterUtf32(char_itr.utf32_index()).ok(); in GetAllTermsAdvanceAndResetAfterUtf32()
586 auto position_or = itr->ResetToTermStartingAfterUtf32(8); in TEST_P()
591 position_or = itr->ResetToTermStartingAfterUtf32(7); in TEST_P()
609 ASSERT_THAT(itr->ResetToTermStartingAfterUtf32(7), IsOkAndHolds(Eq(8))); in TEST_P()
612 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(-1), IsOk()); in TEST_P()
615 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(21), in TEST_P()
778 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(2), IsOkAndHolds(Eq(3))); in TEST_P()
781 EXPECT_THAT(itr->ResetToTermStartingAfterUtf32(10), IsOkAndHolds(Eq(11))); in TEST_P()
[all …]
Dicu-language-segmenter.cc123 libtextclassifier3::StatusOr<int32_t> ResetToTermStartingAfterUtf32( in ResetToTermStartingAfterUtf32() function in icing::lib::IcuLanguageSegmenterIterator
/external/icing/icing/tokenization/
Dlanguage-segmenter-iterator_test.cc82 EXPECT_THAT(iterator->ResetToTermStartingAfterUtf32(/*offset=*/0), in TEST_F()
84 EXPECT_THAT(iterator->ResetToTermStartingAfterUtf32(/*offset=*/3), in TEST_F()
86 EXPECT_THAT(iterator->ResetToTermStartingAfterUtf32(/*offset=*/4), in TEST_F()
100 EXPECT_THAT(iterator->ResetToTermStartingAfterUtf32(/*offset=*/-1), IsOk()); in TEST_F()
102 EXPECT_THAT(iterator->ResetToTermStartingAfterUtf32(/*offset=*/-100), IsOk()); in TEST_F()
118 EXPECT_THAT(iterator->ResetToTermStartingAfterUtf32(/*offset=*/text.length()), in TEST_F()
132 EXPECT_THAT(iterator->ResetToTermStartingAfterUtf32(/*offset=*/100), in TEST_F()
Dlanguage-segmenter.h104 virtual libtextclassifier3::StatusOr<int32_t> ResetToTermStartingAfterUtf32( in ResetToTermStartingAfterUtf32() function
Dplain-tokenizer.cc85 if (!base_iterator_->ResetToTermStartingAfterUtf32(offset).ok()) { in ResetToTokenAfter()