#include "Define.h"
#include <array>
#include <string>
#include <cstdlib>
Go to the source code of this file.
|
enum | TimeConstants {
MINUTE = 60
, HOUR = MINUTE*60
, DAY = HOUR*24
, WEEK = DAY*7
,
MONTH = DAY*30
, YEAR = MONTH*12
, IN_MILLISECONDS = 1000
} |
|
enum | AccountTypes {
SEC_PLAYER = 0
, SEC_MODERATOR = 1
, SEC_GAMEMASTER = 2
, SEC_ADMINISTRATOR = 3
,
SEC_CONSOLE = 4
} |
|
enum | LocaleConstant : uint8 {
LOCALE_enUS = 0
, LOCALE_koKR = 1
, LOCALE_frFR = 2
, LOCALE_deDE = 3
,
LOCALE_zhCN = 4
, LOCALE_zhTW = 5
, LOCALE_esES = 6
, LOCALE_esMX = 7
,
LOCALE_ruRU = 8
, LOCALE_none = 9
, LOCALE_ptBR = 10
, LOCALE_itIT = 11
,
TOTAL_LOCALES
} |
|
enum class | CascLocaleBit : uint8 {
None = 0
, enUS = 1
, koKR = 2
, Reserved = 3
,
frFR = 4
, deDE = 5
, zhCN = 6
, esES = 7
,
zhTW = 8
, enGB = 9
, enCN = 10
, enTW = 11
,
esMX = 12
, ruRU = 13
, ptBR = 14
, itIT = 15
,
ptPT = 16
} |
|
◆ atoll
◆ DEFAULT_LOCALE
◆ llabs
◆ M_PI
#define M_PI 3.14159265358979323846 |
◆ M_PI_4
#define M_PI_4 0.785398163397448309616 |
◆ MAX_QUERY_LEN
#define MAX_QUERY_LEN 32*1024 |
◆ STRINGIZE
#define STRINGIZE |
( |
|
a | ) |
#a |
◆ AccountTypes
Enumerator |
---|
SEC_PLAYER | |
SEC_MODERATOR | |
SEC_GAMEMASTER | |
SEC_ADMINISTRATOR | |
SEC_CONSOLE | |
Definition at line 54 of file Common.h.
◆ CascLocaleBit
Enumerator |
---|
None | |
enUS | |
koKR | |
Reserved | |
frFR | |
deDE | |
zhCN | |
esES | |
zhTW | |
enGB | |
enCN | |
enTW | |
esMX | |
ruRU | |
ptBR | |
itIT | |
ptPT | |
Definition at line 84 of file Common.h.
◆ LocaleConstant
Enumerator |
---|
LOCALE_enUS | |
LOCALE_koKR | |
LOCALE_frFR | |
LOCALE_deDE | |
LOCALE_zhCN | |
LOCALE_zhTW | |
LOCALE_esES | |
LOCALE_esMX | |
LOCALE_ruRU | |
LOCALE_none | |
LOCALE_ptBR | |
LOCALE_itIT | |
TOTAL_LOCALES | |
Definition at line 63 of file Common.h.
◆ TimeConstants
Enumerator |
---|
MINUTE | |
HOUR | |
DAY | |
WEEK | |
MONTH | |
YEAR | |
IN_MILLISECONDS | |
Definition at line 43 of file Common.h.
◆ atoul()
unsigned long atoul |
( |
char const * |
str | ) |
|
|
inline |
Definition at line 38 of file Common.h.
38{ return strtoul(str, nullptr, 10); }
◆ atoull()
unsigned long long atoull |
( |
char const * |
str | ) |
|
|
inline |
Definition at line 39 of file Common.h.
39{ return strtoull(str, nullptr, 10); }
◆ GetLocaleByName()
Definition at line 36 of file Common.cpp.
37{
41
43}
char const * localeNames[TOTAL_LOCALES]
◆ IsValidLocale()
◆ localeNames
◆ OLD_TOTAL_LOCALES
const uint8 OLD_TOTAL_LOCALES = 9 |
◆ WowLocaleToCascLocaleBit