Home
last modified time | relevance | path

Searched refs:SafeTruncateUtf8 (Results 1 – 5 of 5) sorted by relevance

/external/icing/icing/util/
Di18n-utils_test.cc109 i18n_utils::SafeTruncateUtf8(&truncated, kSomeAscii.length() + 1); in TEST()
112 i18n_utils::SafeTruncateUtf8(&truncated, kSomeAscii.length()); in TEST()
115 i18n_utils::SafeTruncateUtf8(&truncated, kSomeAscii.length() - 1); in TEST()
120 i18n_utils::SafeTruncateUtf8(&truncated, kSomeNonAscii.length() + 1); in TEST()
123 i18n_utils::SafeTruncateUtf8(&truncated, kSomeNonAscii.length()); in TEST()
126 i18n_utils::SafeTruncateUtf8(&truncated, kSomeNonAscii.length() - 1); in TEST()
129 i18n_utils::SafeTruncateUtf8(&truncated, kSomeNonAscii.length() - 2); in TEST()
132 i18n_utils::SafeTruncateUtf8(&truncated, kSomeNonAscii.length() - 3); in TEST()
135 i18n_utils::SafeTruncateUtf8(&truncated, kSomeNonAscii.length() - 4); in TEST()
Di18n-utils.h62 void SafeTruncateUtf8(std::string* str, int truncate_to_length);
Di18n-utils.cc97 void SafeTruncateUtf8(std::string* str, int truncate_to_length) { in SafeTruncateUtf8() function
/external/icing/icing/transform/map/
Dmap-normalizer.cc79 i18n_utils::SafeTruncateUtf8(&normalized_text, max_term_byte_size_); in NormalizeTerm()
/external/icing/icing/transform/icu/
Dicu-normalizer.cc150 i18n_utils::SafeTruncateUtf8(&normalized_text, max_term_byte_size_); in NormalizeTerm()