|
HAL
|
Checks if a given string is not empty. More...
#include <empty_string_validator.h>


Public Member Functions | |
| EmptyStringValidator () | |
| bool | validate (const QString &input) |
Public Member Functions inherited from hal::Validator | |
| void | setFailText (const QString &text) |
| QString | failText () const |
Additional Inherited Members | |
Protected Attributes inherited from hal::Validator | |
| QString | mFailText = "Chosen input is not allowed." |
Checks if a given string is not empty.
The EmptyStringValidator is a Validator which validate function returns true if the candidate string contains at least one non-whitespace character. It should be used whenever an input must not be empty.
Definition at line 40 of file empty_string_validator.h.
| hal::EmptyStringValidator::EmptyStringValidator | ( | ) |
Constructor.
Definition at line 5 of file empty_string_validator.cpp.
References hal::Validator::setFailText().
|
virtual |
Given any string this function returns true iff the string contains at least one non-whitespace character. Whitespace characters are: space, horizontal tab, new line, vertical tab, new page and carriage return
| input | - The input string |
Implements hal::Validator.
Definition at line 10 of file empty_string_validator.cpp.
References hal::input.