charon-core  0.3.1
StringTool.h File Reference

Declaration of StringTool methods. More...

#include <string>
#include <vector>
#include "DllEx.h"
Include dependency graph for StringTool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 StringTool
 Useful methods when working with strings.
 

Functions

std::string charon_core_DLL_PUBLIC StringTool::combine (std::vector< std::string > strings, char delim=';')
 Combine a vector of strings to one string. More...
 
void charon_core_DLL_PUBLIC StringTool::explode (std::string str, char delimiter, std::vector< std::string > &result)
 Use delimiter to split the string in a list of substrings. More...
 
std::string charon_core_DLL_PUBLIC StringTool::toLowerCase (std::string s)
 Convert a string to lowercase. More...
 
std::string charon_core_DLL_PUBLIC StringTool::trim (const std::string &s, const std::string &t=" \t\r\n")
 Remove (whitespace) characters from head and tail of a string. More...
 
std::string charon_core_DLL_PUBLIC StringTool::trimLeft (const std::string &s, const std::string &t=" \t\r\n")
 Remove (whitespace) characters from the head of a string. More...
 
std::string charon_core_DLL_PUBLIC StringTool::trimRight (const std::string &s, const std::string &t=" \t\r\n")
 Remove (whitespace) characters from the tail of a string. More...
 

Detailed Description

Date
11.08.2008
Author
Jens-Malte Gottfried
Remarks
Based on StringTool.hxx by Daniel Kondermann

Definition in file StringTool.h.