|
JS8Call-Improved master
|
Namespace containing utilities for managing Maidenhead grid locators. More...
Classes | |
| class | Validator |
| Custom Qt validator for stateful UI evaluation of Maidenhead strings. More... | |
Typedefs | |
| using | StandardValidator = Validator<2, 3> |
| Convenience validator requiring Field and Square, allowing Subsquare. | |
| using | ExtendedValidator = Validator<2, 6> |
| Convenience validator permitting high fidelity sub-allocations up to Hyper Extended format. | |
Functions | |
| constexpr char16_t | normalize (char16_t const u) noexcept |
| Converts a lowercase character code point to uppercase if applicable. | |
| constexpr auto | invalidIndex (QStringView const view) noexcept |
| Locates the first invalid character index in a locator string view. | |
| template<qsizetype Min = 2, qsizetype Max = 6> | |
| constexpr auto | valid (QStringView const view) noexcept |
| Assesses whether a complete string view matches acceptable grid lengths and constraints. | |
Namespace containing utilities for managing Maidenhead grid locators.
Provides underlying character validation, bounds checking, string validation, and custom Qt input validators.
| using Maidenhead::ExtendedValidator = Validator<2, 6> |
Convenience validator permitting high fidelity sub-allocations up to Hyper Extended format.
Standard fitment for exact base station grid alignments. Expects between 2 and 6 character pairs.
| using Maidenhead::StandardValidator = Validator<2, 3> |
Convenience validator requiring Field and Square, allowing Subsquare.
Perfect for basic contact (QSO) logging setups. Expects between 2 and 3 character pairs.
|
constexprnoexcept |
Locates the first invalid character index in a locator string view.
Scans the provided view character-by-character based on standard and extended Maidenhead format pairs. Validation is case-insensitive.
Maidenhead Structure Definitions:
| [in] | view | The string view tracking the user input grid locator string. |


|
constexprnoexcept |
Converts a lowercase character code point to uppercase if applicable.
Provides a constexpr alternative to QChar::toUpper(), allowing for compile-time evaluation. Non-alphabetic and uppercase characters are returned unchanged.
| [in] | u | The 16-bit Unicode character value to process. |
u is in the range [a-z]; otherwise u. 
|
constexprnoexcept |
Assesses whether a complete string view matches acceptable grid lengths and constraints.
Verifies that the input length is even, fits within the designated bounds, and contains no character validation failures.
| Min | The minimum allowed pairs (Defaults to 2, e.g., Field + Square). |
| Max | The maximum allowed pairs (Defaults to 6, up to Hyper-Extended). |
| [in] | view | The complete string view to be evaluated. |
