QtBase  v6.3.1
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
QLocalePrivate Class Reference

#include <qlocale_p.h>

Collaboration diagram for QLocalePrivate:
Collaboration graph
[legend]

Public Member Functions

constexpr QLocalePrivate (const QLocaleData *data, const uint index, QLocale::NumberOptions numberOptions=QLocale::DefaultNumberOptions, int refs=0)
 
quint16 languageId () const
 
quint16 territoryId () const
 
QByteArray bcp47Name (char separator='-') const
 
QLatin1String languageCode (QLocale::LanguageCodeTypes codeTypes=QLocale::AnyLanguageCode) const
 
QLatin1String scriptCode () const
 
QLatin1String territoryCode () const
 
QLocale::MeasurementSystem measurementSystem () const
 

Static Public Member Functions

static const QLocalePrivateget (const QLocale &l)
 
static QLatin1String languageToCode (QLocale::Language language, QLocale::LanguageCodeTypes codeTypes=QLocale::AnyLanguageCode)
 
static QLatin1String scriptToCode (QLocale::Script script)
 
static QLatin1String territoryToCode (QLocale::Territory territory)
 
static QLocale::Language codeToLanguage (QStringView code, QLocale::LanguageCodeTypes codeTypes=QLocale::AnyLanguageCode) noexcept
 
static QLocale::Script codeToScript (QStringView code) noexcept
 
static QLocale::Territory codeToTerritory (QStringView code) noexcept
 

Public Attributes

const QLocaleData *const m_data
 
QBasicAtomicInt ref
 
const uint m_index
 
QLocale::NumberOptions m_numberOptions
 

Static Public Attributes

static QBasicAtomicInt s_generation = Q_BASIC_ATOMIC_INITIALIZER(0)
 

Detailed Description

Definition at line 407 of file qlocale_p.h.

Constructor & Destructor Documentation

◆ QLocalePrivate()

constexpr QLocalePrivate::QLocalePrivate ( const QLocaleData data,
const uint  index,
QLocale::NumberOptions  numberOptions = QLocale::DefaultNumberOptions,
int  refs = 0 
)
inlineconstexpr

Definition at line 410 of file qlocale_p.h.

Member Function Documentation

◆ bcp47Name()

QByteArray QLocalePrivate::bcp47Name ( char  separator = '-') const

Definition at line 467 of file qlocale.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ codeToLanguage()

QT_BEGIN_INCLUDE_NAMESPACE QT_END_INCLUDE_NAMESPACE QLocale::Language QLocalePrivate::codeToLanguage ( QStringView  code,
QLocale::LanguageCodeTypes  codeTypes = QLocale::AnyLanguageCode 
)
staticnoexcept

Definition at line 106 of file qlocale.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ codeToScript()

QLocale::Script QLocalePrivate::codeToScript ( QStringView  code)
staticnoexcept

Definition at line 178 of file qlocale.cpp.

Here is the caller graph for this function:

◆ codeToTerritory()

QLocale::Territory QLocalePrivate::codeToTerritory ( QStringView  code)
staticnoexcept

Definition at line 198 of file qlocale.cpp.

Here is the caller graph for this function:

◆ get()

static const QLocalePrivate* QLocalePrivate::get ( const QLocale l)
inlinestatic

Definition at line 431 of file qlocale_p.h.

Here is the caller graph for this function:

◆ languageCode()

QLatin1String QLocalePrivate::languageCode ( QLocale::LanguageCodeTypes  codeTypes = QLocale::AnyLanguageCode) const
inline

Definition at line 422 of file qlocale_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ languageId()

quint16 QLocalePrivate::languageId ( ) const
inline

Definition at line 416 of file qlocale_p.h.

Here is the caller graph for this function:

◆ languageToCode()

QLatin1String QLocalePrivate::languageToCode ( QLocale::Language  language,
QLocale::LanguageCodeTypes  codeTypes = QLocale::AnyLanguageCode 
)
static

Definition at line 217 of file qlocale.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ measurementSystem()

QLocale::MeasurementSystem QLocalePrivate::measurementSystem ( ) const

Definition at line 3130 of file qlocale.cpp.

◆ scriptCode()

QLatin1String QLocalePrivate::scriptCode ( ) const
inline

Definition at line 426 of file qlocale_p.h.

Here is the call graph for this function:

◆ scriptToCode()

QLatin1String QLocalePrivate::scriptToCode ( QLocale::Script  script)
static

Definition at line 242 of file qlocale.cpp.

Here is the caller graph for this function:

◆ territoryCode()

QLatin1String QLocalePrivate::territoryCode ( ) const
inline

Definition at line 428 of file qlocale_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ territoryId()

quint16 QLocalePrivate::territoryId ( ) const
inline

Definition at line 417 of file qlocale_p.h.

Here is the caller graph for this function:

◆ territoryToCode()

QLatin1String QLocalePrivate::territoryToCode ( QLocale::Territory  territory)
static

Definition at line 250 of file qlocale.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ m_data

const QLocaleData* const QLocalePrivate::m_data

Definition at line 446 of file qlocale_p.h.

◆ m_index

const uint QLocalePrivate::m_index

Definition at line 448 of file qlocale_p.h.

◆ m_numberOptions

QLocale::NumberOptions QLocalePrivate::m_numberOptions

Definition at line 449 of file qlocale_p.h.

◆ ref

QBasicAtomicInt QLocalePrivate::ref

Definition at line 447 of file qlocale_p.h.

◆ s_generation

QBasicAtomicInt QLocalePrivate::s_generation = Q_BASIC_ATOMIC_INITIALIZER(0)
static

Definition at line 451 of file qlocale_p.h.


The documentation for this class was generated from the following files: