Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtimezoneprivate.cpp File Reference

(bd01008bca729f2e935af739e2f8287633abde2b)

#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/qtools_p.h>
#include <algorithm>
+ Include dependency graph for qtimezoneprivate.cpp:

Go to the source code of this file.

Functions

constexpr bool earlierZoneData (const ZoneData &less, const ZoneData &more) noexcept
 
static bool earlierWinData (const WindowsData &less, const WindowsData &more) noexcept
 
constexpr bool atLowerUtcOffset (const UtcData &entry, qint32 offsetSeconds) noexcept
 
constexpr bool atLowerWindowsKey (const WindowsData &entry, qint16 winIdKey) noexcept
 
static bool earlierWindowsId (const WindowsData &entry, QByteArrayView winId) noexcept
 
constexpr bool zoneAtLowerWindowsKey (const ZoneData &entry, qint16 winIdKey) noexcept
 
static quint16 toWindowsIdKey (const QByteArray &winId)
 
static QByteArray toWindowsIdLiteral (quint16 windowsIdKey)
 
static auto zoneStartForWindowsId (quint16 windowsIdKey) noexcept
 
static QList< QByteArrayselectAvailable (QList< QByteArray > &&desired, const QList< QByteArray > &all)
 
static bool isEntryInIanaList (QByteArrayView id, QByteArrayView ianaIds)
 

Function Documentation

◆ atLowerUtcOffset()

constexpr bool atLowerUtcOffset ( const UtcData & entry,
qint32 offsetSeconds )
constexprnoexcept

Definition at line 47 of file qtimezoneprivate.cpp.

Referenced by QUtcTimeZonePrivate::QUtcTimeZonePrivate(), and QUtcTimeZonePrivate::availableTimeZoneIds().

+ Here is the caller graph for this function:

◆ atLowerWindowsKey()

constexpr bool atLowerWindowsKey ( const WindowsData & entry,
qint16 winIdKey )
constexprnoexcept

Definition at line 52 of file qtimezoneprivate.cpp.

Referenced by toWindowsIdLiteral().

+ Here is the caller graph for this function:

◆ earlierWinData()

static bool earlierWinData ( const WindowsData & less,
const WindowsData & more )
staticnoexcept

Definition at line 38 of file qtimezoneprivate.cpp.

References Qt::CaseInsensitive.

Referenced by QTimeZonePrivate::QTimeZonePrivate().

+ Here is the caller graph for this function:

◆ earlierWindowsId()

static bool earlierWindowsId ( const WindowsData & entry,
QByteArrayView winId )
staticnoexcept

Definition at line 57 of file qtimezoneprivate.cpp.

References Qt::CaseInsensitive.

Referenced by toWindowsIdKey(), and QTimeZonePrivate::windowsIdToDefaultIanaId().

+ Here is the caller graph for this function:

◆ earlierZoneData()

constexpr bool earlierZoneData ( const ZoneData & less,
const ZoneData & more )
constexprnoexcept

Definition at line 31 of file qtimezoneprivate.cpp.

Referenced by QTimeZonePrivate::QTimeZonePrivate().

+ Here is the caller graph for this function:

◆ isEntryInIanaList()

static bool isEntryInIanaList ( QByteArrayView id,
QByteArrayView ianaIds )
static

Definition at line 848 of file qtimezoneprivate.cpp.

References cut().

Referenced by QUtcTimeZonePrivate::QUtcTimeZonePrivate(), and QUtcTimeZonePrivate::isTimeZoneIdAvailable().

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

◆ selectAvailable()

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

Definition at line 603 of file qtimezoneprivate.cpp.

References qMin().

Referenced by QTimeZonePrivate::availableTimeZoneIds(), and QTimeZonePrivate::availableTimeZoneIds().

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

◆ toWindowsIdKey()

static quint16 toWindowsIdKey ( const QByteArray & winId)
static

Definition at line 68 of file qtimezoneprivate.cpp.

References earlierWindowsId(), and QtTimeZoneCldr::windowsDataTable.

Referenced by QTimeZonePrivate::windowsIdToIanaIds(), and QTimeZonePrivate::windowsIdToIanaIds().

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

◆ toWindowsIdLiteral()

static QByteArray toWindowsIdLiteral ( quint16 windowsIdKey)
static

Definition at line 78 of file qtimezoneprivate.cpp.

References atLowerWindowsKey(), Q_LIKELY, QByteArray(), and QtTimeZoneCldr::windowsDataTable.

Referenced by QTimeZonePrivate::ianaIdToWindowsId().

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

◆ zoneAtLowerWindowsKey()

constexpr bool zoneAtLowerWindowsKey ( const ZoneData & entry,
qint16 winIdKey )
constexprnoexcept

Definition at line 62 of file qtimezoneprivate.cpp.

Referenced by zoneStartForWindowsId().

+ Here is the caller graph for this function:

◆ zoneStartForWindowsId()

static auto zoneStartForWindowsId ( quint16 windowsIdKey)
staticnoexcept

Definition at line 97 of file qtimezoneprivate.cpp.

References zoneAtLowerWindowsKey(), and QtTimeZoneCldr::zoneDataTable.

Referenced by QTimeZonePrivate::availableTimeZoneIds(), QTimeZonePrivate::windowsIdToIanaIds(), and QTimeZonePrivate::windowsIdToIanaIds().

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