OregonCore  revision fb2a440-git
Your Favourite TBC server
Common.cpp File Reference
#include "Common.h"

Go to the source code of this file.


LocaleConstant GetLocaleByName (const std::string &name)


char const * localeNames [MAX_LOCALE]

Function Documentation

LocaleConstant GetLocaleByName ( const std::string &  name)

Definition at line 33 of file Common.cpp.

References LOCALE_enUS, localeNames, and MAX_LOCALE.

Referenced by AuthSocket::_HandleLogonChallenge(), AuthSocket::_HandleLogonProof(), and CreatureTextMgr::LoadCreatureTextLocales().

34 {
35  for (uint32 i = 0; i < MAX_LOCALE; ++i)
36  if (name == localeNames[i])
37  return LocaleConstant(i);
39  return LOCALE_enUS; // including enGB case
40 }
char const * localeNames[MAX_LOCALE]
Definition: Common.cpp:20
const uint8 MAX_LOCALE
Definition: Common.h:224
Definition: Common.h:211
ACE_UINT32 uint32
Definition: Define.h:71

Variable Documentation