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

Method value

src/DartsDict.cpp:42–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 uint64_t unit;
41 bool has_leaf() const { return ((unit >> 8) & 1) == 1; }
42 int value() const {
43 return static_cast<int>(unit & ((1U << 31) - 1));
44 }
45 uint64_t label() const { return unit & ((1U << 31) | 0xFF); }
46 uint64_t offset() const {
47 return (unit >> 10) << ((unit & (1U << 9)) >> 6);

Callers 3

Legacy64ExactMatchFunction · 0.45
Legacy64PrefixSearchFunction · 0.45
ValidateLegacy64Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected