|
SeqAn3 3.4.0
The Modern C++ library for sequence analysis.
|
Provides various operations on character types. More...
Char predicates | |
A set of function objects to check if a character from an input source fulfills certain characteristics. | |
| template<uint8_t interval_first, uint8_t interval_last> | |
| constexpr auto | seqan3::is_in_interval |
| Checks whether a given letter is in the specified interval. | |
| template<int char_v> | |
| constexpr auto | seqan3::is_char |
| Checks whether a given letter is the same as the template non-type argument. | |
| constexpr auto | seqan3::is_cntrl = is_in_interval<'\0', static_cast<char>(31)> || is_char<static_cast<char>(127)> |
| Checks whether c is a control character. | |
| constexpr auto | seqan3::is_print = is_in_interval<' ', '~'> |
| Checks whether c is a printable character. | |
| constexpr auto | seqan3::is_space = is_in_interval<'\t', '\r'> || is_char<' '> |
| Checks whether c is a space character. | |
| constexpr auto | seqan3::is_blank = is_char<'\t'> || is_char<' '> |
| Checks whether c is a blank character. | |
| constexpr auto | seqan3::is_alpha = is_in_interval<'A', 'Z'> || is_in_interval<'a', 'z'> |
| Checks whether c is a graphic character. | |
| constexpr auto | seqan3::is_upper = is_in_interval<'A', 'Z'> |
| Checks whether c is a upper case character. | |
| constexpr auto | seqan3::is_lower = is_in_interval<'a', 'z'> |
| Checks whether c is a lower case character. | |
| constexpr auto | seqan3::is_digit = is_in_interval<'0', '9'> |
| Checks whether c is a digital character. | |
| constexpr auto | seqan3::is_xdigit = is_in_interval<'0', '9'> || is_in_interval<'A', 'F'> || is_in_interval<'a', 'f'> |
| Checks whether c is a hexadecimal character. | |
| constexpr auto | seqan3::is_eof = is_char<EOF> |
| Checks whether a given letter is equal to the EOF constant defined in <cstdio>. | |
Provides various operations on character types.
|
inlineconstexpr |
Checks whether c is a graphic character.
This function like object can be used to check if a character c is a graphic (has a graphical representation) character. For the standard ASCII character set, the following characters are graphic characters:
*/ inline constexpr auto is_graph = is_in_interval<'!', '~'>;
/*! Checks whether c is a punctuation character.
This function like object can be used to check if a character c is a punctuation character. For the standard ASCII character set, the following characters are punctuation characters:
*/ inline constexpr auto is_punct = is_in_interval<'!', '/'> || is_in_interval<':', '@'> || is_in_interval<'[', '`'> || is_in_interval<'{', '~'>;
/*! Checks whether c is a alphanumeric character.
This function like object can be used to check if a character c is a alphanumeric character. For the standard ASCII character set, the following characters are alphanumeric characters:
*/ inline constexpr auto is_alnum = is_in_interval<'0', '9'> || is_in_interval<'A', 'Z'> || is_in_interval<'a', 'z'>;
/*! Checks whether c is a alphabetical character.
This function like object can be used to check if a character c is a alphabetical character. For the standard ASCII character set, the following characters are alphabetical characters:
Checks whether c is a blank character.
This function like object can be used to check if a character c is a blank character. For the standard ASCII character set, the following characters are blank characters:
|
inlineconstexpr |
Checks whether a given letter is the same as the template non-type argument.
| char_v | The letter to compare against. |
This function like object returns true if the argument is the same as the template argument, false otherwise.
|
inlineconstexpr |
Checks whether c is a control character.
This function like object can be used to check if a character c is a control character. For the standard ASCII character set, control characters are those between ASCII codes 0x00 (NUL) and 0x1f (US) and 0x7f (DEL).
|
inlineconstexpr |
Checks whether c is a digital character.
This function like object can be used to check if a character c is a digital character. For the standard ASCII character set, the following characters are digital characters:
|
inlineconstexpr |
Checks whether a given letter is equal to the EOF constant defined in <cstdio>.
This function like object returns true if the argument is equal to EOF, false otherwise.
|
inlineconstexpr |
Checks whether a given letter is in the specified interval.
| interval_first | The first character for which to return true. |
| interval_last | The last character (inclusive) for which to return true. |
This function like object returns true for all characters in the given range, false otherwise.
|
inlineconstexpr |
Checks whether c is a lower case character.
This function like object can be used to check if a character c is a lower case character. For the standard ASCII character set, the following characters are lower case characters:
|
inlineconstexpr |
Checks whether c is a printable character.
This function like object can be used to check if a character c is a printable character. For the standard ASCII character set, printable characters are those between ASCII codes 0x20 (space) and 0x7E (~).
|
inlineconstexpr |
Checks whether c is a space character.
This function like object can be used to check if a character c is a space character. For the standard ASCII character set, the following characters are space characters:
|
inlineconstexpr |
Checks whether c is a upper case character.
This function like object can be used to check if a character c is a upper case character. For the standard ASCII character set, the following characters are upper case characters:
|
inlineconstexpr |
Checks whether c is a hexadecimal character.
This function like object can be used to check if a character c is a hexadecimal character. For the standard ASCII character set, the following characters are hexadecimal characters: