KI18n
kcountry.h
35 * @note This requires the iso-codes data files and translation catalogs to be available at runtime.
62 /** Returns @c false if this is an empty/invalid/default constructed instance, @c true otherwise. */
73 /** Returns the QLocale::Country value matching this country, or QLocale::AnyCountry if there is none. */
static KCountry fromLocation(float latitude, float longitude)
Looks up the country at the given geographic coordinate.
Definition kcountry.cpp:264
bool isValid() const
Returns false if this is an empty/invalid/default constructed instance, true otherwise.
Definition kcountry.cpp:42
static KCountry fromName(QStringView name)
Attempts to identify the country from the given name.
Definition kcountry.cpp:347
static KCountry fromQLocale(QLocale::Country country)
Returns a KCountry instance matching the given QLocale::Country code.
Definition kcountry.cpp:272
QLocale::Country country() const
Returns the QLocale::Country value matching this country, or QLocale::AnyCountry if there is none.
Definition kcountry.cpp:108
static KCountry fromAlpha2(QStringView alpha2Code)
Create a KCountry instance from an ISO 3166-1 alpha 2 code.
Definition kcountry.cpp:215
static KCountry fromAlpha3(QStringView alpha3Code)
Create a KCountry instance from an ISO 3166-1 alpha 3 code.
Definition kcountry.cpp:247
KI18NLOCALEDATA_EXPORT KCountry country(const char *)
Returns the country a timezone is in.
Definition ktimezone.cpp:22
Country
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:51 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:51 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.