5#ifndef CUTELYSTVALIDATORALPHANUM_H
6#define CUTELYSTVALIDATORALPHANUM_H
8#include "validatorrule.h"
10#include <Cutelyst/cutelyst_global.h>
14class ValidatorAlphaNumPrivate;
55 bool asciiOnly =
false,
57 const QString &defValKey = QString());
71 static bool validate(
const QString &value,
bool asciiOnly =
false);
85 QString genericValidationError(
Context *c,
86 const QVariant &errorData = QVariant())
const override;
Checks a value for only alpha-numeric content.
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.