OFFIS DCMTK  Version 3.6.0
Classes | Functions
strhelp.h File Reference
Include dependency graph for strhelp.h:

Go to the source code of this file.

Classes

struct  log4cplus::helpers::ConvertIntegerToStringHelper< intType >
 

Functions

LOG4CPLUS_EXPORT log4cplus::tstring log4cplus::helpers::toUpper (const log4cplus::tstring &s)
 Returns s in upper case.
 
LOG4CPLUS_EXPORT log4cplus::tstring log4cplus::helpers::toLower (const log4cplus::tstring &s)
 Returns s in lower case.
 
template<class StringType >
void log4cplus::helpers::tokenize (const StringType &s, typename StringType::value_type c, OFList< StringType > &result, bool collapseTokens=true)
 Tokenize s using c as the delimiter and put the resulting tokens in _result. More...
 
template<class intType >
void log4cplus::helpers::convertIntegerToString (tstring &str, intType value)
 
template<class intType >
tstring log4cplus::helpers::convertIntegerToString (intType value)
 

Function Documentation

template<class StringType >
void log4cplus::helpers::tokenize ( const StringType &  s,
typename StringType::value_type  c,
OFList< StringType > &  result,
bool  collapseTokens = true 
)
inline

Tokenize s using c as the delimiter and put the resulting tokens in _result.

If collapseTokens is false, multiple adjacent delimiters will result in zero length tokens.

Example:

  string s = // Set string with '.' as delimiters
  list<log4cplus::tstring> tokens;
  tokenize(s, '.', back_insert_iterator<list<string> >(tokens));

Definition at line 66 of file strhelp.h.

References OFList< T >::push_back(), and log4cplus::helpers::tokenize().

Referenced by log4cplus::helpers::tokenize().


Generated on Wed Dec 14 2016 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.11