Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtimezoneprivate.cpp File Reference

(fc7212052582f1648c4eee4779d2ac8a8d85ff3e)

#include "qtimezone.h"
#include "qtimezoneprivate_p.h"
#include "qtimezoneprivate_data_p.h"
#include <qdatastream.h>
#include <qdebug.h>
#include <qstring.h>
#include <private/qcalendarmath_p.h>
#include <private/qnumeric_p.h>
#include <private/qstringiterator_p.h>
#include <private/qtools_p.h>
#include <algorithm>
Include dependency graph for qtimezoneprivate.cpp:

Go to the source code of this file.

Functions

constexpr bool earlierZoneData (ZoneData less, ZoneData more) noexcept
static bool earlierWinData (WindowsData less, WindowsData more) noexcept
constexpr bool atLowerUtcOffset (UtcData entry, qint32 offsetSeconds) noexcept
constexpr bool atLowerWindowsKey (WindowsData entry, qint16 winIdKey) noexcept
static bool earlierAliasId (AliasData entry, QByteArrayView aliasId) noexcept
static bool earlierWindowsId (WindowsData entry, QByteArrayView winId) noexcept
constexpr bool zoneAtLowerWindowsKey (ZoneData entry, qint16 winIdKey) noexcept
static quint16 toWindowsIdKey (QByteArrayView winId)
static QByteArrayView toWindowsIdLiteral (quint16 windowsIdKey)
static auto zoneStartForWindowsId (quint16 windowsIdKey) noexcept
template<typename Pred>
static QByteArrayView aliasMatching (QByteArrayView name, Pred test)
static QList< QByteArrayselectAvailable (QList< QByteArrayView > &&desired, const QList< QByteArray > &all)
static QTimeZonePrivate::NamePrefixMatch findUtcOffsetPrefix (QStringView text, const QLocale &locale)
static bool isEntryInIanaList (QByteArrayView id, QByteArrayView ianaIds)

Function Documentation

◆ aliasMatching()

template<typename Pred>
QByteArrayView aliasMatching ( QByteArrayView name,
Pred test )
static

Definition at line 612 of file qtimezoneprivate.cpp.

References QtTimeZoneCldr::aliasMappingTable.

◆ atLowerUtcOffset()

bool atLowerUtcOffset ( UtcData entry,
qint32 offsetSeconds )
constexprnoexcept

Definition at line 54 of file qtimezoneprivate.cpp.

◆ atLowerWindowsKey()

bool atLowerWindowsKey ( WindowsData entry,
qint16 winIdKey )
constexprnoexcept

Definition at line 59 of file qtimezoneprivate.cpp.

◆ earlierAliasId()

bool earlierAliasId ( AliasData entry,
QByteArrayView aliasId )
staticnoexcept

Definition at line 64 of file qtimezoneprivate.cpp.

◆ earlierWinData()

bool earlierWinData ( WindowsData less,
WindowsData more )
staticnoexcept

Definition at line 45 of file qtimezoneprivate.cpp.

◆ earlierWindowsId()

bool earlierWindowsId ( WindowsData entry,
QByteArrayView winId )
staticnoexcept

Definition at line 69 of file qtimezoneprivate.cpp.

◆ earlierZoneData()

bool earlierZoneData ( ZoneData less,
ZoneData more )
constexprnoexcept

Definition at line 38 of file qtimezoneprivate.cpp.

◆ findUtcOffsetPrefix()

QTimeZonePrivate::NamePrefixMatch findUtcOffsetPrefix ( QStringView text,
const QLocale & locale )
static

Definition at line 872 of file qtimezoneprivate.cpp.

◆ isEntryInIanaList()

bool isEntryInIanaList ( QByteArrayView id,
QByteArrayView ianaIds )
static

Definition at line 1166 of file qtimezoneprivate.cpp.

◆ selectAvailable()

QList< QByteArray > selectAvailable ( QList< QByteArrayView > && desired,
const QList< QByteArray > & all )
static

Definition at line 651 of file qtimezoneprivate.cpp.

◆ toWindowsIdKey()

quint16 toWindowsIdKey ( QByteArrayView winId)
static

Definition at line 80 of file qtimezoneprivate.cpp.

References QtTimeZoneCldr::windowsDataTable.

◆ toWindowsIdLiteral()

QByteArrayView toWindowsIdLiteral ( quint16 windowsIdKey)
static

Definition at line 90 of file qtimezoneprivate.cpp.

References QtTimeZoneCldr::windowsDataTable.

◆ zoneAtLowerWindowsKey()

bool zoneAtLowerWindowsKey ( ZoneData entry,
qint16 winIdKey )
constexprnoexcept

Definition at line 74 of file qtimezoneprivate.cpp.

◆ zoneStartForWindowsId()

auto zoneStartForWindowsId ( quint16 windowsIdKey)
staticnoexcept

Definition at line 109 of file qtimezoneprivate.cpp.

References QtTimeZoneCldr::zoneDataTable.