| 66 | } |
| 67 | |
| 68 | bool IsAllowedNonBmpCharacter(const std::string& dictionary, |
| 69 | const std::string& character) { |
| 70 | for (const auto& exception : kAllowedNonBmpCharacters) { |
| 71 | if (dictionary == exception.dictionary && character == exception.character) { |
| 72 | return true; |
| 73 | } |
| 74 | } |
| 75 | return false; |
| 76 | } |
| 77 | |
| 78 | TEST(DictionaryNonBmpTest, OnlyAllowlistedCharactersOutsideCharacterDicts) { |
| 79 | std::unique_ptr<Runfiles> runfiles(Runfiles::CreateForTest()); |