![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qlocale_p.h"
#include "qlocale_tools_p.h"
#include "qstringlist.h"
#include "qvariant.h"
#include "qdatetime.h"
#include "qdebug.h"
#include "QtCore/private/qgregoriancalendar_p.h"
#include <q20algorithm.h>
#include <qt_windows.h>
#include <time.h>
Go to the source code of this file.
Classes | |
struct | QSystemLocalePrivate |
struct | WindowsToISOListElt |
Macros | |
#define | MUI_LANGUAGE_NAME 0x8 |
#define | LOCALE_SSHORTESTDAYNAME1 0x0060 |
#define | LOCALE_SSHORTESTDAYNAME2 0x0061 |
#define | LOCALE_SSHORTESTDAYNAME3 0x0062 |
#define | LOCALE_SSHORTESTDAYNAME4 0x0063 |
#define | LOCALE_SSHORTESTDAYNAME5 0x0064 |
#define | LOCALE_SSHORTESTDAYNAME6 0x0065 |
#define | LOCALE_SSHORTESTDAYNAME7 0x0066 |
#define | LOCALE_SNATIVELANGUAGENAME 0x00000004 |
#define | LOCALE_SNATIVECOUNTRYNAME 0x00000008 |
#define | LOCALE_SSHORTTIME 0x00000079 |
Functions | |
static auto | scanLangEnv () |
static auto | getDefaultWinId () |
static QByteArray | getWinLocaleName (LCID id=LOCALE_USER_DEFAULT) |
static QString | fourDigitYear (int year) |
static const char * | winLangCodeToIsoName (int code) |
LCID | qt_inIsoNametoLCID (const char *name) |
static QString | winIso639LangName (LCID id) |
static QString | winIso3116CtryName (LCID id) |
Q_CORE_EXPORT QLocale | qt_localeFromLCID (LCID id) |
static QString | localeConvertString (const QString &localeID, const QString &str, bool *ok, DWORD flags) |
Variables | |
static constexpr WindowsToISOListElt | windows_to_iso_list [] |
#define LOCALE_SNATIVECOUNTRYNAME 0x00000008 |
Definition at line 89 of file qlocale_win.cpp.
#define LOCALE_SNATIVELANGUAGENAME 0x00000004 |
Definition at line 86 of file qlocale_win.cpp.
#define LOCALE_SSHORTESTDAYNAME1 0x0060 |
Definition at line 77 of file qlocale_win.cpp.
#define LOCALE_SSHORTESTDAYNAME2 0x0061 |
Definition at line 78 of file qlocale_win.cpp.
#define LOCALE_SSHORTESTDAYNAME3 0x0062 |
Definition at line 79 of file qlocale_win.cpp.
#define LOCALE_SSHORTESTDAYNAME4 0x0063 |
Definition at line 80 of file qlocale_win.cpp.
#define LOCALE_SSHORTESTDAYNAME5 0x0064 |
Definition at line 81 of file qlocale_win.cpp.
#define LOCALE_SSHORTESTDAYNAME6 0x0065 |
Definition at line 82 of file qlocale_win.cpp.
#define LOCALE_SSHORTESTDAYNAME7 0x0066 |
Definition at line 83 of file qlocale_win.cpp.
#define LOCALE_SSHORTTIME 0x00000079 |
Definition at line 92 of file qlocale_win.cpp.
#define MUI_LANGUAGE_NAME 0x8 |
Definition at line 74 of file qlocale_win.cpp.
|
static |
Definition at line 484 of file qlocale_win.cpp.
|
static |
Definition at line 53 of file qlocale_win.cpp.
|
static |
Definition at line 1199 of file qlocale_win.cpp.
|
static |
Definition at line 1227 of file qlocale_win.cpp.
LCID qt_inIsoNametoLCID | ( | const char * | name | ) |
Definition at line 1127 of file qlocale_win.cpp.
References WindowsToISOListElt::iso_name, WindowsToISOListElt::windows_code, and windows_to_iso_list.
Q_CORE_EXPORT QLocale qt_localeFromLCID | ( | LCID | id | ) |
Definition at line 1220 of file qlocale_win.cpp.
|
static |
Definition at line 35 of file qlocale_win.cpp.
|
static |
Definition at line 1188 of file qlocale_win.cpp.
|
static |
Definition at line 1153 of file qlocale_win.cpp.
|
static |
Definition at line 1107 of file qlocale_win.cpp.
References WindowsToISOListElt::iso_name, WindowsToISOListElt::windows_code, and windows_to_iso_list.
|
staticconstexpr |
Definition at line 991 of file qlocale_win.cpp.
Referenced by qt_inIsoNametoLCID(), and winLangCodeToIsoName().