KPublicTransport
uicstationcode.cpp
18 if (id.size() < 7 || std::any_of(id.begin(), id.end(), [](QChar c) { return !c.isDigit() || c.row() > 0; })) {
23 if (id.size() > 7 && std::any_of(id.begin(), id.begin() + id.size() - 7, [](QChar c) { return c != QLatin1Char('0'); })) {
bool isValid(QStringView id, const std::vector< uint8_t > &allowedCountryCodes={})
Returns true if id is a valid UIC station code.
Definition uicstationcode.cpp:15
QStringView country(QStringView id)
Returns the country code of a given valid UIC station code.
Definition uicstationcode.cpp:37
QString identifierType()
The identifier type for use in Location::identifer for UIC station ids.
Definition uicstationcode.cpp:42
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
bool isDigit(char32_t ucs4)
uchar row() const const
QStringView mid(qsizetype start, qsizetype length) const const
int toInt(bool *ok, int base) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.