|
JS8Call-Improved master
|
Utilities for validating and normalizing Maidenhead grid locators. More...
#include <QString>#include <QStringView>#include <QValidator>

Go to the source code of this file.
Classes | |
| class | Maidenhead::Validator< Min, Max > |
| Custom Qt validator for stateful UI evaluation of Maidenhead strings. More... | |
Namespaces | |
| namespace | Maidenhead |
| Namespace containing utilities for managing Maidenhead grid locators. | |
Typedefs | |
| using | Maidenhead::StandardValidator = Validator<2, 3> |
| Convenience validator requiring Field and Square, allowing Subsquare. | |
| using | Maidenhead::ExtendedValidator = Validator<2, 6> |
| Convenience validator permitting high fidelity sub-allocations up to Hyper Extended format. | |
Functions | |
| constexpr char16_t | Maidenhead::normalize (char16_t const u) noexcept |
| Converts a lowercase character code point to uppercase if applicable. | |
| constexpr auto | Maidenhead::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 | Maidenhead::valid (QStringView const view) noexcept |
| Assesses whether a complete string view matches acceptable grid lengths and constraints. | |
Utilities for validating and normalizing Maidenhead grid locators.
This header defines functions and classes for validating Maidenhead grid locators, which are used in amateur radio to specify geographic locations. It includes constexpr functions for normalization and validation, as well as a QValidator subclass for use in Qt applications.