21 char const*
const end = descript + strlen(descript);
22 char const* codeKey = descript;
23 char const*
token =
nullptr;
29 if (0 ==
c.first.compare(0, std::string::npos, codeKey,
token - codeKey)) {
37 <<
"ComCodes::getCode : Error, Key " <<
std::string(codeKey,
token - codeKey)
38 <<
" not found (likely mistyped, practical upshot is the selection is not what you think it is)";
44 bool ComCodes::keyComp(
const std::pair<std::string, int>& lhs,
const std::pair<std::string, int>& rhs) {
45 return lhs.first < rhs.first;
51 if ((code & _codeDef.second) == _codeDef.second) {