Пример #1
0
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);
}
Пример #2
0
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;
}
Пример #3
0
int CompareAlt<ke::AString, ke::AString>(ke::AString const &k1, ke::AString const &k2)
{
	return k1.compare(k2);
}
Пример #4
0
int CompareAlt<char const *, ke::AString>(char const * const &k1, ke::AString const &k2)
{
	return k2.compare(k1);
}
Пример #5
0
int CLangMngr::AddKeyEntry(ke::AString &key)
{
	return AddKeyEntry(key.chars());
}
Пример #6
0
int Compare<ke::AString>(const ke::AString &k1, const ke::AString &k2)
{
	return k1.compare(k2);
}