/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/icu-small/source/common/locbased.h
64 строки
2 KB
Node.js GitHub Bot
deps: update icu to 78.2
11 янв 2026, 21:05
Не верифицирован
11 янв 2026, 21:05
1bd7f62
Код
Авторство
О чём код?
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** * Copyright (c) 2004-2014, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Author: Alan Liu * Created: January 16 2004 * Since: ICU 2.8 ********************************************************************** */ #ifndef LOCBASED_H #define LOCBASED_H #include "unicode/locid.h" #include "unicode/uobject.h" U_NAMESPACE_BEGIN /** * A utility class that unifies the implementation of getLocale() by * various ICU services. This class is likely to be removed in the * ICU 3.0 time frame in favor of an integrated approach with the * services framework. * @since ICU 2.8 */ class U_COMMON_API LocaleBased : public UMemory { public: /** * Return locale meta-data for the service object wrapped by this * object. Either the valid or the actual locale may be * retrieved. * @param valid The valid locale. * @param actual The actual locale. * @param type either ULOC_VALID_LOCALE or ULOC_ACTUAL_LOCALE * @param status input-output error code * @return the indicated locale */ static const Locale& getLocale( const Locale& valid, const Locale& actual, ULocDataLocaleType type, UErrorCode& status); /** * Return the locale ID for the service object wrapped by this * object. Either the valid or the actual locale may be * retrieved. * @param valid The valid locale. * @param actual The actual locale. * @param type either ULOC_VALID_LOCALE or ULOC_ACTUAL_LOCALE * @param status input-output error code * @return the indicated locale ID */ static const char* getLocaleID( const Locale& valid, const Locale& actual, ULocDataLocaleType type, UErrorCode& status); }; U_NAMESPACE_END #endif