/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
platform/preferred_languages.hpp
24 строки
953 B
Maxim Pimenov
Got rid of the old style std/ includes for several files, mostly in map/ and platform/.
23 сен 2019, 13:25
23 сен 2019, 13:25
bfc0b02
Код
Авторство
О чём код?
#pragma once #include <string> namespace languages { /// @note These functions are heavy enough to call them often. Be careful. /// @return List of original system languages in the form "en-US|ru-RU|es|zh-Hant". std::string GetPreferred(); /// @return Original language code for the current user in the form "en-US", "zh-Hant". std::string GetCurrentOrig(); /// @return Current language in out Twine translations compatible format, e.g. "en", "pt" or "zh-Hant". std::string GetCurrentTwine(); /// @return Normalized language code for the current user in the form "en", "zh". /// Returned languages are normalized to our supported languages in the core, see /// string_utf8_multilang.cpp and should not be used with any sub-locales like zh-Hans/zh-Hant. Some /// langs like Danish (da) are not supported in the core too, but used as a locale. std::string Normalize(std::string const & lang); std::string GetCurrentNorm(); } // namespace languages