Converts the 1 unicode string to the code point.
| 29 | |
| 30 | // Converts the 1 unicode string to the code point. |
| 31 | static char32 ToChar32(absl::string_view str) { |
| 32 | string_util::UnicodeText utext = string_util::UTF8ToUnicodeText(str); |
| 33 | return !utext.empty() ? *utext.begin() : 0; |
| 34 | } |
| 35 | |
| 36 | TEST(TrainerInterfaceTest, IsValidSentencePieceTest) { |
| 37 | TrainerSpec trainer_spec; |
no test coverage detected