mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Switch GetLocaleByName to use string_view
This commit is contained in:
@@ -19,21 +19,21 @@
|
||||
|
||||
char const* localeNames[TOTAL_LOCALES] =
|
||||
{
|
||||
"enUS",
|
||||
"koKR",
|
||||
"frFR",
|
||||
"deDE",
|
||||
"zhCN",
|
||||
"zhTW",
|
||||
"esES",
|
||||
"esMX",
|
||||
"ruRU",
|
||||
"none",
|
||||
"ptBR",
|
||||
"itIT"
|
||||
"enUS",
|
||||
"koKR",
|
||||
"frFR",
|
||||
"deDE",
|
||||
"zhCN",
|
||||
"zhTW",
|
||||
"esES",
|
||||
"esMX",
|
||||
"ruRU",
|
||||
"none",
|
||||
"ptBR",
|
||||
"itIT"
|
||||
};
|
||||
|
||||
LocaleConstant GetLocaleByName(std::string const& name)
|
||||
LocaleConstant GetLocaleByName(std::string_view name)
|
||||
{
|
||||
for (uint32 i = 0; i < TOTAL_LOCALES; ++i)
|
||||
if (name == localeNames[i])
|
||||
|
||||
Reference in New Issue
Block a user