MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / fromConfigKey

Method fromConfigKey

switch/source/sortmode.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50sort_t SortMode::fromConfigKey(const std::string& key)
51{
52 for (const SortMode& m : all()) {
53 if (key == m.configKey) {
54 return m.mode;
55 }
56 }
57 return SORT_ALPHA;
58}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected