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
qtparsetimezone_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QPARSE_TIMEZONE_P_H
4#define QPARSE_TIMEZONE_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QtCore/private/qtparsecommon_p.h>
18#include <QtCore/qflags.h>
19#include <QtCore/qlocale.h>
20#include <QtCore/qtimezone.h>
21#include "QtCore/private/qttemporalpattern_p.h"
22
24
25QT_BEGIN_NAMESPACE
26
27namespace QtParseTimeZone {
28
34
40
41// Corresponding to QDTP::findTimeZone's modes (count('t') in Qt format field):
48 // TODO: distinguish modes 2 and 3
61
62// Parsing functions return lists, sorted with "better" matches earlier; for
63// now, longer is better.
64
65Q_AUTOTEST_EXPORT // so that we can test it
68// QList<ParsedZone> find(QStringView text, const QLocale &locale, qsizetype from = 0,
69// QtTemporalPattern::TemporalFieldFlags flags = AnyZoneForm);
70} // QtParseTimeZone
71
72QT_END_NAMESPACE
73
74#endif // QPARSE_TIMEZONE_P_H
A toolset for parsing time zone identification strings.
constexpr QtTemporalPattern::TemporalFieldFlags AnyGlobalZoneForm
constexpr QtTemporalPattern::TemporalFieldFlags AnyZoneName
constexpr QtTemporalPattern::TemporalFieldFlags AllLegacyForm
constexpr QtTemporalPattern::TemporalFieldFlags BasicDigitOnlyOffset
constexpr QtTemporalPattern::TemporalFieldFlags AnyZoneForm
constexpr QtTemporalPattern::TemporalFieldFlags AnyOffsetForm
constexpr QtTemporalPattern::TemporalFieldFlags AnyGlobalZoneName
constexpr QtTemporalPattern::TemporalFieldFlags BasicColonDigitOffset
QT_REQUIRE_CONFIG(datetimeparser)
Describes a text fragment representing a timezone.