LibreOffice Module i18nlangtag (master) 1
Classes | Macros | Variables
languagetag.hxx File Reference
#include <sal/config.h>
#include <rtl/locale.h>
#include <rtl/ustring.hxx>
#include <com/sun/star/lang/Locale.hpp>
#include <i18nlangtag/i18nlangtagdllapi.h>
#include <i18nlangtag/lang.h>
#include <memory>
#include <string_view>
#include <vector>
Include dependency graph for languagetag.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LanguageTag
 Wrapper for liblangtag BCP 47 language tags, MS-LangIDs, locales and conversions in between. More...
 

Macros

#define I18NLANGTAG_QLT_ASCII   "qlt"
 The ISO 639-2 code reserved for local use used to indicate that a css::Locale contains a BCP 47 string in its Variant field. More...
 

Variables

constexpr OUStringLiteral I18NLANGTAG_QLT = u"qlt"
 

Macro Definition Documentation

◆ I18NLANGTAG_QLT_ASCII

#define I18NLANGTAG_QLT_ASCII   "qlt"

The ISO 639-2 code reserved for local use used to indicate that a css::Locale contains a BCP 47 string in its Variant field.

The Locale's Language field then will contain this language code.

See also
LanguageTag::getLocale()

Avoid use, only needed internally or if conversion from Locale to LanguageTag is not wanted, i.e. during ODF import. To check whether a LanguageTag contains a plain language/country combination or a more detailed BCP 47 language tag use LanguageTag::isIsoLocale() instead.

Definition at line 35 of file languagetag.hxx.

Variable Documentation

◆ I18NLANGTAG_QLT

constexpr OUStringLiteral I18NLANGTAG_QLT = u"qlt"
inlineconstexpr