Ref T384, check for ATC suffix

This commit is contained in:
Klaus Basan
2018-10-05 01:57:48 +02:00
parent 7b02816f82
commit 428c37fd97
2 changed files with 9 additions and 0 deletions

View File

@@ -161,6 +161,12 @@ namespace BlackMisc
return this->getStringAsSet().contains('_');
}
bool CCallsign::hasAtcSuffix() const
{
const QString s = this->getSuffix();
return !s.isEmpty() && atcCallsignSuffixes().contains(s);
}
bool CCallsign::equalsString(const QString &callsignString) const
{
CCallsign other(callsignString);