void Logger::_LogFatalOpen(ke::AString &str) { char error[255]; libsys->GetPlatformError(error, sizeof(error)); LogFatal("[SM] Unexpected fatal logging error (file \"%s\")", str.chars()); LogFatal("[SM] Platform returned error: \"%s\"", error); }
int HashAlt<ke::AString>(ke::AString const &k) { unsigned long hash = 5381; register const char *str = k.chars(); register char c; while ((c = *str++)) { hash = ((hash << 5) + hash) + c; // hash*33 + c } return hash; }
int CompareAlt<ke::AString, ke::AString>(ke::AString const &k1, ke::AString const &k2) { return k1.compare(k2); }
int CompareAlt<char const *, ke::AString>(char const * const &k1, ke::AString const &k2) { return k2.compare(k1); }
int CLangMngr::AddKeyEntry(ke::AString &key) { return AddKeyEntry(key.chars()); }
int Compare<ke::AString>(const ke::AString &k1, const ke::AString &k2) { return k1.compare(k2); }