LibreOffice Module i18nlangtag (master) 1
languagetagicu.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef INCLUDED_I18NLANGTAG_LANGUAGETAGICU_HXX
11#define INCLUDED_I18NLANGTAG_LANGUAGETAGICU_HXX
12
13#include <sal/config.h>
14
15#include <string_view>
16
18#include <rtl/ustring.hxx>
19#include <unicode/locid.h>
20
21class LanguageTag;
22
23
31{
32public:
33
42 static icu::Locale getIcuLocale( const LanguageTag & rLanguageTag );
43
52 static icu::Locale getIcuLocale( const LanguageTag & rLanguageTag, std::u16string_view rVariant, std::u16string_view rKeywords);
53
68 static OUString getDisplayName( const LanguageTag & rLanguageTag, const LanguageTag & rDisplayLanguage );
69};
70
71#endif // INCLUDED_I18NLANGTAG_LANGUAGETAGICU_HXX
72
73/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Interface LanguageTag to ICU's icu::Locale.
Wrapper for liblangtag BCP 47 language tags, MS-LangIDs, locales and conversions in between.
Definition: languagetag.hxx:53
#define I18NLANGTAG_DLLPUBLIC
#define SAL_WARN_UNUSED