Searched refs:SafeTruncateUtf8 (Results 1 – 5 of 5) sorted by relevance
/external/icing/icing/util/ |
D | i18n-utils_test.cc | 109 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()
|
D | i18n-utils.h | 62 void SafeTruncateUtf8(std::string* str, int truncate_to_length);
|
D | i18n-utils.cc | 97 void SafeTruncateUtf8(std::string* str, int truncate_to_length) { in SafeTruncateUtf8() function
|
/external/icing/icing/transform/map/ |
D | map-normalizer.cc | 79 i18n_utils::SafeTruncateUtf8(&normalized_text, max_term_byte_size_); in NormalizeTerm()
|
/external/icing/icing/transform/icu/ |
D | icu-normalizer.cc | 150 i18n_utils::SafeTruncateUtf8(&normalized_text, max_term_byte_size_); in NormalizeTerm()
|