#include <charset.h>
|
| constexpr CharacterValidityTable | invert () const |
| constexpr bool | operator() (char c) const |
Character classifier
Definition at line 112 of file charset.h.
◆ alpha_numeric_plus()
| constexpr CharacterValidityTable Botan::CharacterValidityTable::alpha_numeric_plus |
( |
std::string_view | extras | ) |
|
|
inlinestaticconstexpr |
◆ invert()
| CharacterValidityTable Botan::CharacterValidityTable::invert |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 130 of file charset.h.
130 {
131 TableStorage inverted = m_tbl;
132 for(auto& v : inverted) {
133 v = ~v;
134 }
135 return CharacterValidityTable(inverted);
136 }
Referenced by Botan::HTTP::url_encode().
◆ operator()()
| bool Botan::CharacterValidityTable::operator() |
( |
char | c | ) |
const |
|
inlineconstexpr |
Definition at line 125 of file charset.h.
125 {
126 const uint8_t uc = static_cast<uint8_t>(c);
127 return ((m_tbl[uc / 32] >> (uc % 32)) & 1) != 0;
128 }
The documentation for this class was generated from the following file: