5#ifndef CUTELYSTVALIDATORALPHADASH_H
6#define CUTELYSTVALIDATORALPHADASH_H
8#include "validatorrule.h"
12class ValidatorAlphaDashPrivate;
58 bool asciiOnly =
false,
QString genericValidationError(Context *c, const QVariant &errorData=QVariant()) const override
ValidatorAlphaDash(const QString &field, bool asciiOnly=false, const ValidatorMessages &messages=ValidatorMessages(), const QString &defValKey=QString())
~ValidatorAlphaDash() override
QString field() const noexcept
ValidatorRule(const QString &field, const ValidatorMessages &messages={}, const QString &defValKey={}, QByteArrayView validatorName=nullptr)
QString value(const ParamsMultiMap ¶ms) const
QMultiMap< QString, QString > ParamsMultiMap
static bool validate(const QString &value, bool asciiOnly=false)
Returns true if the value only contains alpha-numeric characters, dashes and underscores.
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.