5#ifndef CUTELYSTVALIDATORDIGITS_H
6#define CUTELYSTVALIDATORDIGITS_H
8#include "validatorrule.h"
12class ValidatorDigitsPrivate;
55 const QVariant &length = -1,
57 const QString &defValKey = {});
76 static bool validate(
const QString &value, qsizetype length = -1);
101 QString genericValidationError(
Context *c,
102 const QVariant &errorData = QVariant())
const override;
Checks for digits only with optional length check.
~ValidatorDigits() override
Base class for all validator rules.
std::function< void(ValidatorReturnType &&result)> ValidatorRtFn
Void callback function for validator rules that processes the ValidatorReturnType.
QMultiMap< QString, QString > ParamsMultiMap
The Cutelyst namespace holds all public Cutelyst API.
Stores custom error messages and the input field label.
Contains the result of a single input parameter validation.