9#ifndef _LOG4CPP_STRINGUTIL_HH
10#define _LOG4CPP_STRINGUTIL_HH
35 static std::string
trim(
const std::string&
s);
50 static unsigned int split(std::vector<std::string>&
v,
66 std::string::size_type
left = 0;
70 if (
right == std::string::npos) {
#define LOG4CPP_UNIQUE_PTR
Definition Portability.hh:73
Definition StringUtil.hh:20
static std::string trim(const std::string &s)
Returns a string identical to the given string but without leading or trailing HTABs or spaces.
Definition StringUtil.cpp:71
static unsigned int split(std::vector< std::string > &v, const std::string &s, char delimiter, unsigned int maxSegments=INT_MAX)
Definition StringUtil.cpp:90
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,...
Definition StringUtil.cpp:37
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...
Definition StringUtil.hh:63
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
LOG4CPP_EXPORT CategoryStream & left(CategoryStream &os)
left manipulator
Definition CategoryStream.cpp:71