6 #ifndef CUTELYSTVALIDATORCHARNOTALLOWED_H
7 #define CUTELYSTVALIDATORCHARNOTALLOWED_H
9 #include <Cutelyst/cutelyst_global.h>
10 #include "validatorrule.h"
14 class ValidatorCharNotAllowedPrivate;
60 static bool validate(
const QString &value,
const QString &forbiddenChars, QChar *foundChar =
nullptr);
74 QString genericValidationError(
Context *c,
const QVariant &errorData = QVariant())
const override;
79 QString genericValidationDataError(
Context *c,
const QVariant &errorData = QVariant())
const override;
Validates an input field for not allowed characters.
Base class for all validator rules.
The Cutelyst namespace holds all public Cutelyst API.
QMultiMap< QString, QString > ParamsMultiMap
Stores custom error messages and the input field label.
Contains the result of a single input parameter validation.