MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / IsAllowedNonBmpCharacter

Function IsAllowedNonBmpCharacter

data/dictionary/DictionaryNonBmpTest.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68bool 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
78TEST(DictionaryNonBmpTest, OnlyAllowlistedCharactersOutsideCharacterDicts) {
79 std::unique_ptr<Runfiles> runfiles(Runfiles::CreateForTest());

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected