|
Botan 3.14.1
Crypto and TLS for C&
|
#include <telephone_number.h>
Public Member Functions | |
| bool | contains (const TelephoneNumber &tn) const |
| bool | contains (const TelephoneNumberRange &other) const |
| uint64_t | count () const |
| TelephoneNumber | last () const |
| auto | operator<=> (const TelephoneNumberRange &) const =default |
| const TelephoneNumber & | start () const |
Static Public Member Functions | |
| static std::optional< TelephoneNumberRange > | from (const TelephoneNumber &start, uint64_t count) |
A block of consecutive telephone numbers, all of the same length
Definition at line 67 of file telephone_number.h.
| bool Botan::TelephoneNumberRange::contains | ( | const TelephoneNumber & | tn | ) | const |
tn has the same length as this range and lies within it Definition at line 80 of file telephone_number.cpp.
References Botan::TelephoneNumber::length(), and Botan::TelephoneNumber::numeric_value().
| bool Botan::TelephoneNumberRange::contains | ( | const TelephoneNumberRange & | other | ) | const |
other lies within this range Definition at line 89 of file telephone_number.cpp.
References Botan::TelephoneNumber::length(), and Botan::TelephoneNumber::numeric_value().
|
inline |
Definition at line 86 of file telephone_number.h.
Referenced by Botan::Cert_Extension::TNAuthList::encompasses(), from(), and operator<=>().
|
static |
Create the range of count numbers beginning at start
start is a wildcard, count is less than 2, or the range would run past the last number of the same length as start Definition at line 48 of file telephone_number.cpp.
References count(), and start().
Referenced by Botan::Cert_Extension::TNAuthList::Entry::decode_from().
| TelephoneNumber Botan::TelephoneNumberRange::last | ( | ) | const |
Definition at line 68 of file telephone_number.cpp.
References BOTAN_ASSERT_NOMSG, Botan::TelephoneNumber::from_string(), and Botan::TelephoneNumber::numeric_value().
|
default |
|
inline |
Definition at line 81 of file telephone_number.h.
Referenced by Botan::Cert_Extension::TNAuthList::encompasses(), from(), and operator<=>().