![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Describes one field in a temporal pattern. More...
#include <qttemporalpattern_p.h>
Public Member Functions | |
| DateTimePart | part () const noexcept |
Public Attributes | |
| QString | literal |
| qsizetype | width |
| TemporalFieldFlags | options |
| TemporalFieldCategory | category |
Friends | |
| bool | comparesEqual (const TemporalField &lhs, const TemporalField &rhs) noexcept |
Describes one field in a temporal pattern.
A single field is characterized by its \l {QtTemporalPattern::TemporalFieldCategory}{category}, some \l {QtTemporalPattern::TemporalFieldFlags}{options} identifying how the field is to be expressed and, where relevant, a datum. For a Literal field, the datum is the string to be matched.
For numeric fields, a width may optionally be specified, indicating the expected number of digits in the field. If options specifies zero-padding, this is a minimum number of digits; otherwise, shorter fields are accepted. In any case, longer values are accepted, where the resulting numeric value is valid for the field. A zero width does not mean an empty field will be accepted: it is effectively equivalent to a width of 1.
endIndex of any parse result is the only reliable source of truth on the UTF-16 end of the text parsed. Definition at line 141 of file qttemporalpattern_p.h.
|
inlinenoexcept |
Definition at line 146 of file qttemporalpattern_p.h.
|
friend |
Definition at line 147 of file qttemporalpattern_p.h.
| TemporalFieldCategory QtTemporalPattern::TemporalField::category |
Definition at line 145 of file qttemporalpattern_p.h.
| QString QtTemporalPattern::TemporalField::literal |
Definition at line 142 of file qttemporalpattern_p.h.
| TemporalFieldFlags QtTemporalPattern::TemporalField::options |
Definition at line 144 of file qttemporalpattern_p.h.
Referenced by testing.tools.test_runner._TestCaseRunner::_NewImageArtifact(), testing.tools.test_runner._TestCaseRunner::_RegenerateIfNeeded(), testing.tools.test_runner._PerProcessState::GetSkiaGoldTester(), testing.tools.test_runner._PerProcessConfig::InitializeFeatures(), testing.tools.test_runner.TestRunner::IsSkiaGoldEnabled(), testing.tools.test_runner._PerProcessConfig::NewFinder(), testing.tools.test_runner._TestCaseRunner::TestPixel(), and testing.tools.test_runner._TestCaseRunner::TestText().
| qsizetype QtTemporalPattern::TemporalField::width |
Definition at line 143 of file qttemporalpattern_p.h.