diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /HighlightingRules.hpp | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
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 |
