Home
last modified time | relevance | path

Searched refs:ToUTF8String (Results 1 – 20 of 20) sorted by relevance

/aosp_15_r20/external/libtextclassifier/native/utils/utf8/
H A Dunilib_test-include.cc86 .ToUTF8String(), in TEST_F()
92 .ToUTF8String(), in TEST_F()
161 .ToUTF8String(), in TEST_F()
171 .ToUTF8String(), in TEST_F()
226 EXPECT_EQ(matcher->Group(0, &status).ToUTF8String(), "0123��"); in TEST_F()
278 EXPECT_EQ(matcher->Group(0, &status).ToUTF8String(), "0123��"); in TEST_F()
280 EXPECT_EQ(matcher->Group(1, &status).ToUTF8String(), "0"); in TEST_F()
282 EXPECT_EQ(matcher->Group(2, &status).ToUTF8String(), "123"); in TEST_F()
297 EXPECT_EQ(matcher->Group(0, &status).ToUTF8String(), "7"); in TEST_F()
299 EXPECT_EQ(matcher->Group(1, &status).ToUTF8String(), "7"); in TEST_F()
[all …]
H A Dunicodetext_test.cc41 EXPECT_EQ(UnicodeText(text).ToUTF8String(), "1234��hello"); in TEST()
42 EXPECT_EQ(UnicodeText(text, /*do_copy=*/false).ToUTF8String(), "1234��hello"); in TEST()
48 EXPECT_EQ(text.ToUTF8String(), "1234��hello"); in TEST()
63 EXPECT_EQ(text.ToUTF8String(), "1234��hello"); in TEST()
H A Dunicodetext.h186 std::string ToUTF8String() const;
H A Dunicodetext.cc229 std::string UnicodeText::ToUTF8String() const { in ToUTF8String() function in libtextclassifier3::UnicodeText
/aosp_15_r20/external/libtextclassifier/native/utils/zlib/
H A Dzlib_regex.cc55 *result_pattern_text = unicode_regex_pattern.ToUTF8String(); in UncompressMakeRegexPattern()
67 << unicode_regex_pattern.ToUTF8String(); in UncompressMakeRegexPattern()
/aosp_15_r20/external/libtextclassifier/native/utils/
H A Dregex-match.cc107 std::string text = matcher_->Group(group_id, &status).ToUTF8String(); in GetCapturingGroup()
159 std::string group_text = matcher->Group(group_id, &status).ToUTF8String(); in GetCapturingGroupText()
H A Dnormalization_test.cc41 .ToUTF8String(); in NormalizeTextCodepointWise()
H A Dregex-match_test.cc77 EXPECT_TRUE(VerifyMatch(message.ToUTF8String(), matcher.get(), verifier)); in TEST_F()
/aosp_15_r20/external/libtextclassifier/native/actions/
H A Dgrammar-actions.cc85 group, normalized_match_text.ToUTF8String(), in InstantiateActionsFromMatch()
101 /*message_index=*/message_index, match_text.ToUTF8String(), in InstantiateActionsFromMatch()
H A Dtflite-sensitive-model.cc44 conversation.messages.front().text = text.ToUTF8String(); in Eval()
H A Dutils.cc66 suggestion.response_text = match_text.ToUTF8String(); in SuggestTextRepliesFromCapturingMatch()
H A Dregex-actions.cc231 group, normalized_group_match_text.ToUTF8String(), in SuggestActions()
H A Dactions-suggestions.cc1270 normalized_annotation_text.ToUTF8String()); in SuggestActionsFromAnnotation()
/aosp_15_r20/external/libtextclassifier/native/annotator/pod_ner/
H A Dpod-ner-impl.cc351 text_unicode.ToUTF8String()); in PrepareText()
363 .ToUTF8String() in PrepareText()
/aosp_15_r20/external/libtextclassifier/native/annotator/vocab/
H A Dvocab-annotator-impl.cc114 unilib_.ToLowerText(stripped_token).ToUTF8String(); in ClassifyTextInternal()
/aosp_15_r20/external/libtextclassifier/native/annotator/number/
H A Dnumber.cc203 if (token_text.ToUTF8String().size() >= max_number_of_digits_) { in TryParseNumber()
/aosp_15_r20/external/libtextclassifier/native/annotator/grammar/
H A Dgrammar-annotator.cc187 match_text.ToUTF8String())) { in InstantiateClassificationFromDerivation()
/aosp_15_r20/external/libtextclassifier/native/annotator/duration/
H A Dduration.cc39 .ToUTF8String(); in ToLowerString()
/aosp_15_r20/external/libtextclassifier/native/annotator/
H A Dannotator.cc2617 normalized_group_match_text.ToUTF8String())) { in SerializedEntityDataFromRegexMatch()
2667 .ToUTF8String(); in GetMoneyQuantityFromCapturingGroup()
2860 context_unicode.ToUTF8String(), in RegexChunk()
2862 matcher->Group(1, &status).ToUTF8String(), matcher.get())) { in RegexChunk()
H A Dfeature-processor.cc652 *buffer = stripped_token_value.ToUTF8String(); in StripBoundaryCodepoints()