31 void init(
const QString filename);
43 QString
find(QString prefix)
const;
55 QString _extractName(
const QString line)
const;
60 void _removeBrackets(QString &line,
const QString a,
const QString b)
const;
67 QStringList _extractPrefix(QString &line,
bool &more)
const;
72 QString fixup(QString country, QString
const &call)
const;
75 QStringList _countryNames;
76 QHash<QString, QString> _data;
Reader and lookup helper for CTY prefix files.
Definition CountryDat.h:25
void load()
Parse the configured file and populate the internal mapping.
Definition CountryDat.cpp:98
QString find(QString prefix) const
Find the country/entity name for a callsign prefix.
Definition CountryDat.cpp:145
QStringList getCountryNames() const
Get a list of country/entity names discovered in the file.
Definition CountryDat.h:49
void init(const QString filename)
Set the filename of the CTY/cty.dat file to parse.
Definition CountryDat.cpp:33