| 22 | namespace unicode_script { |
| 23 | namespace { |
| 24 | class GetScriptInternal { |
| 25 | public: |
| 26 | GetScriptInternal() { InitTable(&smap_); } |
| 27 | |
| 28 | ScriptType GetScript(char32 c) const { |
| 29 | return port::FindWithDefault(smap_, c, ScriptType::U_Common); |
| 30 | } |
| 31 | |
| 32 | private: |
| 33 | absl::node_hash_map<char32, ScriptType> smap_; |
| 34 | }; |
| 35 | } // namespace |
| 36 | |
| 37 | ScriptType GetScript(char32 c) { |
nothing calls this directly
no outgoing calls
no test coverage detected