A class that can be associated with a TextBox or a TextField to filter some characters.
More...
#include <TextFilter.h>
|
| TextFilter (void) |
|
void | allowAll (void) |
| Causes the filter does not filter anything.
|
|
void | allowNumbers (void) |
| Causes the filter just allows numbers.
|
|
void | allowLetters (void) |
| Causes the filter just allows letters.
|
|
void | allowThese (const std::string &filter) |
| Causes the filter also allows the characters specified in the argument.
|
|
void | denyAll (void) |
| Causes the filter allows nothing.
|
|
void | denyNumbers (void) |
| Causes the filter to filter numbers.
|
|
void | denyLetters (void) |
| Causes the filter to filter letters.
|
|
void | denyThese (const std::string &filter) |
| Causes the filter to filter the characters specified in the argument.
|
|
bool | checkFilter (char character) |
| Test if a character is filtered by the filter.
|
|
A class that can be associated with a TextBox or a TextField to filter some characters.
scv::TextFilter::TextFilter |
( |
void |
| ) |
|
void scv::TextFilter::allowAll |
( |
void |
| ) |
|
Causes the filter does not filter anything.
void scv::TextFilter::allowLetters |
( |
void |
| ) |
|
Causes the filter just allows letters.
void scv::TextFilter::allowNumbers |
( |
void |
| ) |
|
Causes the filter just allows numbers.
void scv::TextFilter::allowThese |
( |
const std::string & |
filter | ) |
|
Causes the filter also allows the characters specified in the argument.
- Parameters
-
filter | Characters that the filter will allow. |
bool scv::TextFilter::checkFilter |
( |
char |
character | ) |
|
Test if a character is filtered by the filter.
- Parameters
-
character | Character to be tested. |
void scv::TextFilter::denyAll |
( |
void |
| ) |
|
Causes the filter allows nothing.
void scv::TextFilter::denyLetters |
( |
void |
| ) |
|
Causes the filter to filter letters.
void scv::TextFilter::denyNumbers |
( |
void |
| ) |
|
Causes the filter to filter numbers.
void scv::TextFilter::denyThese |
( |
const std::string & |
filter | ) |
|
Causes the filter to filter the characters specified in the argument.
- Parameters
-
filter | Characters that the filter will deny. |
The documentation for this class was generated from the following files: