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

Go to the source code of this file.

Functions

LocaleConstant GetLocaleByName (const std::string &name)
 

Variables

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(), and AuthSocket::_HandleLogonProof().

34 {
35  for (uint32 i = 0; i < MAX_LOCALE; ++i)
36  if (name == localeNames[i])
37  return LocaleConstant(i);
38 
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
LocaleConstant
Definition: Common.h:211
ACE_UINT32 uint32
Definition: Define.h:71

Variable Documentation