TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Common.cpp File Reference
#include "Common.h"
+ Include dependency graph for Common.cpp:

Functions

LocaleConstant GetLocaleByName (const std::string &name)
 

Variables

TC_COMMON_API char constlocaleNames [TOTAL_LOCALES]
 

Function Documentation

LocaleConstant GetLocaleByName ( const std::string &  name)
38 {
39  for (uint32 i = 0; i < TOTAL_LOCALES; ++i)
40  if (name == localeNames[i])
41  return LocaleConstant(i);
42 
43  return LOCALE_enUS; // including enGB case
44 }
LocaleConstant
Definition: Common.h:115
uint32_t uint32
Definition: Define.h:150
TC_COMMON_API char const * localeNames[TOTAL_LOCALES]
Definition: Common.cpp:21
Definition: Common.h:117
Definition: Common.h:130

+ Here is the caller graph for this function:

Variable Documentation

TC_COMMON_API char const* localeNames[TOTAL_LOCALES]
Initial value:
=
{
"enUS",
"koKR",
"frFR",
"deDE",
"zhCN",
"zhTW",
"esES",
"esMX",
"ruRU",
"none",
"ptBR",
"itIT"
}