marble
GeoUriParser.cpp
Go to the documentation of this file.
80 QRegExp geoUriRegexp( "geo:(" + floatRegexp + "),(" + floatRegexp + "),?(" + floatRegexp + ")?(?:;(crs|u)=([\\w\\d-]+))?(?:;(crs|u)=([\\w\\d-]+))?" , Qt::CaseInsensitive, QRegExp::RegExp2 );
86 double const alt = geoUriRegexp.captureCount() > 2 ? geoUriRegexp.capturedTexts()[3].toDouble() : 0.0;
bool contains(const QString &str, Qt::CaseSensitivity cs) const
double toDouble(bool *ok) const
int indexIn(const QString &str, int offset, CaretMode caretMode) const
int captureCount() const
QStringList capturedTexts() const
bool isEmpty() const
Definition: Planet.h:25
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
QString & replace(int position, int n, QChar after)
GeoDataCoordinates coordinates() const
Returns the coordinates parsed.
Definition: GeoUriParser.cpp:42
GeoUriParser(const QString &geoUri=QString())
Constructs a new GeoUriParser with the given Geo URI.
Definition: GeoUriParser.cpp:23
Planet planet() const
Returns the Planet on which the coordinates are valid.
Definition: GeoUriParser.cpp:47
QString queryItemValue(const QString &key) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.