20#include <boost/lexical_cast.hpp> 
   47trim(
const std::string& input);
 
   63template <
typename Iterator>
 
   65seekTrimmed(Iterator 
const& begin, Iterator end, uint8_t 
const trim_val) {
 
   66    while (end != begin && *(end - 1) == trim_val) {
 
 
  100std::vector<std::string>
 
  101tokens(
const std::string& text, 
const std::string& delim = 
" \t\n", 
bool escape = 
false);
 
  181                         const std::string& sep,
 
  182                         std::vector<uint8_t>& binary);
 
  216class StringSanitizerImpl;
 
  238    StringSanitizer(
const std::string& char_set, 
const std::string& char_replacement);
 
  248    std::string 
scrub(
const std::string& original);
 
 
  294std::string 
dumpDouble(
double val, 
size_t precision = 5);
 
Exception(const char *file, size_t line, const char *what)
Constructor for a given type for exceptions with file name and file line number.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
static const uint32_t MAX_DATA_SIZE
The maximum size for regex parameters.
StringSanitizer(const std::string &char_set, const std::string &char_replacement)
Constructor.
std::string scrub(const std::string &original)
Returns a scrubbed copy of a given string.
StringTokenError(const char *file, size_t line, const char *what)
std::unique_ptr< StringSanitizer > StringSanitizerPtr
Type representing the pointer to the StringSanitizer.
Iterator seekTrimmed(Iterator const &begin, Iterator end, uint8_t const trim_val)
Finds the "trimmed" end of a buffer.
string dumpAsHex(const uint8_t *data, size_t length)
Dumps a buffer of bytes as a string of hexadecimal digits.
void lowercase(string &text)
Convert string to lowercase.
void decodeSeparatedHexString(const string &hex_string, const string &sep, vector< uint8_t > &binary)
Converts a string of separated hexadecimal digits into a vector.
char toUpper(char const chr)
Convert character to uppercase.
void decodeFormattedHexString(const string &hex_string, vector< uint8_t > &binary)
Converts a formatted string of hexadecimal digits into a vector.
bool isPrintable(const string &content)
Check if a string is printable.
char toLower(char const chr)
Convert character to lowercase.
vector< string > tokens(const string &text, const string &delim, bool escape)
Split string into tokens.
std::shared_ptr< StringSanitizerImpl > StringSanitizerImplPtr
Type representing the pointer to the StringSanitizerImpl.
string dumpDouble(double val, size_t precision)
Converts a double to a string with given precision.
vector< uint8_t > quotedStringToBinary(const string "ed_string)
Converts a string in quotes into vector.
void decodeColonSeparatedHexString(const string &hex_string, vector< uint8_t > &binary)
Converts a string of hexadecimal digits with colons into a vector.
string trim(const string &input)
Trim leading and trailing spaces.
void uppercase(string &text)
Convert string to uppercase.
Defines the logger used by the top-level component of kea-lfc.