|
HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
Checks if a given string is not empty. More...
#include </home/runner/work/hal/hal/plugins/gui/include/gui/validator/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 |
true iff the string is considered valid (unique), false otherwise. Implements hal::Validator.
Definition at line 10 of file empty_string_validator.cpp.
References hal::input.