Kea  2.3.5-git
strutil.cc File Reference
#include <config.h>
#include <util/encode/hex.h>
#include <util/strutil.h>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/constants.hpp>
#include <boost/algorithm/string/split.hpp>
#include <numeric>
#include <iostream>
#include <sstream>
#include <sys/types.h>
#include <regex.h>
#include <string.h>
+ Include dependency graph for strutil.cc:

Go to the source code of this file.

Classes

class  isc::util::str::StringSanitizerImpl
 

Namespaces

 isc
 Defines the logger used by the top-level component of kea-lfc.
 
 isc::util
 
 isc::util::str
 

Functions

void isc::util::str::decodeColonSeparatedHexString (const std::string &hex_string, std::vector< uint8_t > &binary)
 Converts a string of hexadecimal digits with colons into a vector. More...
 
void isc::util::str::decodeFormattedHexString (const std::string &hex_string, std::vector< uint8_t > &binary)
 Converts a formatted string of hexadecimal digits into a vector. More...
 
void isc::util::str::decodeSeparatedHexString (const std::string &hex_string, const std::string &sep, std::vector< uint8_t > &binary)
 Converts a string of separated hexadecimal digits into a vector. More...
 
std::string isc::util::str::dumpAsHex (const uint8_t *data, size_t length)
 Dumps a buffer of bytes as a string of hexadecimal digits. More...
 
std::string isc::util::str::format (const std::string &format, const std::vector< std::string > &args)
 Apply Formatting. More...
 
std::string isc::util::str::getToken (std::istringstream &iss)
 Returns one token from the given stringstream. More...
 
void isc::util::str::normalizeSlash (std::string &name)
 Normalize Backslash. More...
 
std::vector< uint8_t > isc::util::str::quotedStringToBinary (const std::string &quoted_string)
 Converts a string in quotes into vector. More...
 
vector< string > isc::util::str::tokens (const std::string &text, const std::string &delim=std::string(" \\"), bool escape=false)
 Split String into Tokens. More...
 
string isc::util::str::trim (const std::string &instring)
 Trim Leading and Trailing Spaces. More...