Test a string whether it contains a set of characters.
More...
#include <io.hpp>
|
| constexpr bool | operator() (char const ch) const |
| | Check for a single character. More...
|
| |
| template<typename ... CharTs> |
| constexpr bool | any (CharTs const ... chars) const |
| | Check for a set of characters if at least one is part of the string. More...
|
| |
| template<typename ... CharTs> |
| constexpr bool | all (CharTs const ... chars) const |
| | Check for a set of characters if all of them are part of the string. More...
|
| |
|
|
const char *const | str |
| | The string to ask about.
|
| |
Test a string whether it contains a set of characters.
◆ all()
template<typename ... CharTs>
| constexpr bool sys::io::query::contains_ftor::all |
( |
CharTs const ... |
chars | ) |
const |
|
inlineconstexpr |
Check for a set of characters if all of them are part of the string.
- Template Parameters
-
| CharTs | The character types |
- Parameters
-
| chars | The set of characters |
- Returns
- Whether all of the given characters are in the string
◆ any()
template<typename ... CharTs>
| constexpr bool sys::io::query::contains_ftor::any |
( |
CharTs const ... |
chars | ) |
const |
|
inlineconstexpr |
Check for a set of characters if at least one is part of the string.
- Template Parameters
-
| CharTs | The character types |
- Parameters
-
| chars | The set of characters |
- Returns
- Whether at least one of the given characters is in the string
◆ operator()()
| constexpr bool sys::io::query::contains_ftor::operator() |
( |
char const |
ch | ) |
const |
|
inlineconstexpr |
Check for a single character.
- Parameters
-
| ch | The character to check for |
- Returns
- Whether the given character is part of the string
The documentation for this struct was generated from the following file: