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 CLangMngr::AddKeyEntry(ke::AString &key) { return AddKeyEntry(key.chars()); }