#include <iomanip>
#include <sstream>
#include <stdexcept>
#include <algorithm>
#include <array>
Go to the source code of this file.
|
template<std::size_t N> |
MinFittingType< N >::type | byteArrayToInt (const std::array< std::uint8_t, N > &a) |
|
std::string | ip2string (const uint32_t ip) |
|
std::string | mac2string (const uint64_t mac) |
|
template<uint32_t n> |
std::array< std::string, n > | split (const std::string &s, const char sep) |
|
template<uint32_t n> |
std::array< uint8_t, n > | string2byte (const std::string &s, const int base, const char sep) |
|
std::array< uint8_t, 4 > | string2ip (const std::string &ip) |
|
std::array< uint8_t, 6 > | string2mac (const std::string &mac) |
|
bool | wildcardMatch (std::string::const_iterator str_first, std::string::const_iterator str_last, std::string::const_iterator p_first, std::string::const_iterator p_last) |
|
template<std::size_t N>
MinFittingType<N>::type byteArrayToInt |
( |
const std::array< std::uint8_t, N > & |
a | ) |
|
std::string ip2string |
( |
const uint32_t |
ip | ) |
|
|
inline |
std::string mac2string |
( |
const uint64_t |
mac | ) |
|
|
inline |
template<uint32_t n>
std::array<std::string, n> split |
( |
const std::string & |
s, |
|
|
const char |
sep |
|
) |
| |
template<uint32_t n>
std::array<uint8_t, n> string2byte |
( |
const std::string & |
s, |
|
|
const int |
base, |
|
|
const char |
sep |
|
) |
| |
std::array<uint8_t, 4> string2ip |
( |
const std::string & |
ip | ) |
|
|
inline |
std::array<uint8_t, 6> string2mac |
( |
const std::string & |
mac | ) |
|
|
inline |
bool wildcardMatch |
( |
std::string::const_iterator |
str_first, |
|
|
std::string::const_iterator |
str_last, |
|
|
std::string::const_iterator |
p_first, |
|
|
std::string::const_iterator |
p_last |
|
) |
| |
|
inline |