MCPcopy Create free account
hub / github.com/google/sentencepiece / GetScriptInternal

Class GetScriptInternal

src/unicode_script.cc:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace unicode_script {
23namespace {
24class 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
37ScriptType GetScript(char32 c) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected