Kea  1.9.9-git
strutil.h File Reference
#include <algorithm>
#include <cctype>
#include <stdint.h>
#include <string>
#include <sstream>
#include <vector>
#include <exceptions/exceptions.h>
#include <boost/lexical_cast.hpp>
#include <boost/shared_ptr.hpp>
+ Include dependency graph for strutil.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  isc::util::str::StringSanitizer
 Implements a regular expression based string scrubber. More...
 
class  isc::util::str::StringTokenError
 A Set of C++ Utilities for Manipulating Strings. More...
 

Namespaces

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

Typedefs

typedef boost::shared_ptr< StringSanitizer > isc::util::str::StringSanitizerPtr
 

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::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...
 
bool isc::util::str::isPrintable (const std::string &content)
 Check if a string is printable. More...
 
bool isc::util::str::isPrintable (const std::vector< uint8_t > &content)
 Check if a byte vector is printable. More...
 
void isc::util::str::lowercase (std::string &text)
 Lowercase String. 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...
 
template<typename Iterator >
Iterator isc::util::str::seekTrimmed (Iterator begin, Iterator end, uint8_t trim_val)
 Finds the "trimmed" end of a buffer. More...
 
vector< string > isc::util::str::tokens (const std::string &text, const std::string &delim=std::string(" \t\n"), bool escape=false)
 Split String into Tokens. More...
 
template<typename NumType , int BitSize>
NumType isc::util::str::tokenToNum (const std::string &num_token)
 Converts a string token to an unsigned integer. More...
 
char isc::util::str::toLower (char chr)
 Lowercase Character. More...
 
char isc::util::str::toUpper (char chr)
 Uppercase Character. More...
 
string isc::util::str::trim (const std::string &instring)
 Trim Leading and Trailing Spaces. More...
 
void isc::util::str::uppercase (std::string &text)
 Uppercase String. More...