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

Function GetKeyMaxLength

src/DictGroup.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace {
29
30size_t GetKeyMaxLength(const std::list<DictPtr>& dicts) {
31 size_t keyMaxLength = 0;
32 for (const DictPtr& dict : dicts) {
33 keyMaxLength = (std::max)(keyMaxLength, dict->KeyMaxLength());
34 }
35 return keyMaxLength;
36}
37
38} // namespace
39

Callers 1

DictGroupMethod · 0.70

Calls 1

KeyMaxLengthMethod · 0.45

Tested by

no test coverage detected