LibreOffice Module i18nlangtag (master)
1
include
i18nlangtag
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
17
#include <
i18nlangtag/i18nlangtagdllapi.h
>
18
#include <rtl/ustring.hxx>
19
#include <unicode/locid.h>
20
21
class
LanguageTag
;
22
23
30
class
SAL_WARN_UNUSED
I18NLANGTAG_DLLPUBLIC
LanguageTagIcu
31
{
32
public
:
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: */
LanguageTagIcu
Interface LanguageTag to ICU's icu::Locale.
Definition:
languagetagicu.hxx:31
LanguageTag
Wrapper for liblangtag BCP 47 language tags, MS-LangIDs, locales and conversions in between.
Definition:
languagetag.hxx:53
config.h
i18nlangtagdllapi.h
I18NLANGTAG_DLLPUBLIC
#define I18NLANGTAG_DLLPUBLIC
Definition:
i18nlangtagdllapi.h:28
SAL_WARN_UNUSED
#define SAL_WARN_UNUSED
Generated on Sun Jul 30 2023 04:29:43 for LibreOffice Module i18nlangtag (master) by
1.9.3