diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
| commit | 69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch) | |
| tree | ebc98370a697a9bbd6b973a14fa5113c475c6db7 /HighlightingRules.hpp | |
| parent | 3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff) | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg'
with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
Diffstat (limited to 'HighlightingRules.hpp')
| -rw-r--r-- | HighlightingRules.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/HighlightingRules.hpp b/HighlightingRules.hpp new file mode 100644 index 00000000..80fbed5f --- /dev/null +++ b/HighlightingRules.hpp @@ -0,0 +1,28 @@ +#ifndef HIGHLIGHTING_RULES_HPP__ +#define HIGHLIGHTING_RULES_HPP__ + +#include <QString> + +namespace HighlightingRules +{ + bool matchesDirectionalCall (QString const& configured_entries, + QString const& directional_call); + + // Matches a decoded callsign against a "Highlight orange/blue callsigns" + // entry list. Supported syntax: + // CALL, exact callsign + // ;PFX; 2- or 3-character prefix + // ;P; 1-character prefix -- only matches calls whose 2nd + // character is a digit (e.g. ";K;" matches K1ABC but + // not KH6ABC), unless... + // ;P*; ...a wildcard is used, which matches any call + // starting with that single-character prefix + // !PFX! excludes a 2- or 3-character prefix even when a + // broader wildcard would otherwise match it (e.g. + // ";K*;!KH6!KL!KP!" matches all K-calls except the + // compound-prefix entities normally split out as + // their own DXCC country) + bool matchesCallsignPrefix (QString const& configured_entries, QString const& call); +} + +#endif |
