log4cpp::StringUtil (3) - Linux Manuals
NAME
log4cpp::StringUtil -
SYNOPSIS
Static Public Member Functions
static std::string vform (const char *format, va_list args)
Returns a string contructed from the a format specifier and a va_list of arguments, analogously to vprintf(3).
static std::string trim (const std::string &s)
Returns a string identical to the given string but without leading or trailing HTABs or spaces.
static unsigned int split (std::vector< std::string > &v, const std::string &s, char delimiter, unsigned int maxSegments=INT_MAX)
splits a string into a vector of string segments based on the given delimiter.
template<typename T > static unsigned int split (T &output, const std::string &s, char delimiter, unsigned int maxSegments=INT_MAX)
splits a string into string segments based on the given delimiter and assigns the segments through an output_iterator.
Member Function Documentation
unsigned int log4cpp::StringUtil::split (std::vector< std::string > &v, const std::string &s, chardelimiter, unsigned intmaxSegments = INT_MAX) [static]
splits a string into a vector of string segments based on the given delimiter.
@param v The vector in which the segments will be stored. The vector will be emptied before storing the segments @param s The string to split into segments. @param delimiter The delimiter character @param maxSegments the maximum number of segments. Upon return v.size() <= maxSegments. The string is scanned from left to right so v[maxSegments - 1] may contain a string containing the delimiter character.
Returns:
splits a string into string segments based on the given delimiter and assigns the segments through an output_iterator.
Parameters:
Returns:
Returns a string identical to the given string but without leading or trailing HTABs or spaces.
Returns a string contructed from the a format specifier and a va_list of arguments, analogously to vprintf(3).
Parameters:
Generated automatically by Doxygen for log4cpp from the source code.
template<typename T > static unsigned int log4cpp::StringUtil::split (T &output, const std::string &s, chardelimiter, unsigned intmaxSegments = INT_MAX) [inline], [static]
s The string to split into segments.
delimiter The delimiter character
maxSegments The maximum number of segments.
std::string log4cpp::StringUtil::trim (const std::string &s) [static]
std::string log4cpp::StringUtil::vform (const char *format, va_listargs) [static]
args the va_list of arguments.
Author