Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
trim.cpp File Reference
#include <tlx/string/trim.hpp>
#include <algorithm>
#include <cstring>
+ Include dependency graph for trim.cpp:

Go to the source code of this file.

Namespaces

 tlx
 

Functions

std::string & trim (std::string *str, const char *drop=" \r\n\t")
 Trims the given string in-place on the left and right. More...
 
std::string & trim (std::string *str, const std::string &drop)
 Trims the given string in-place on the left and right. More...
 
std::string trim (const std::string &str, const char *drop=" \r\n\t")
 Trims the given string in-place on the left and right. More...
 
std::string trim (const std::string &str, const std::string &drop)
 Trims the given string in-place on the left and right. More...
 
std::string & trim_left (std::string *str, const char *drop=" \r\n\t")
 Trims the given string in-place only on the left. More...
 
std::string & trim_left (std::string *str, const std::string &drop)
 Trims the given string in-place only on the left. More...
 
std::string trim_left (const std::string &str, const char *drop=" \r\n\t")
 Trims the given string only on the left. More...
 
std::string trim_left (const std::string &str, const std::string &drop)
 Trims the given string only on the left. More...
 
std::string & trim_right (std::string *str, const char *drop=" \r\n\t")
 Trims the given string in-place only on the right. More...
 
std::string & trim_right (std::string *str, const std::string &drop)
 Trims the given string in-place only on the right. More...
 
std::string trim_right (const std::string &str, const char *drop=" \r\n\t")
 Trims the given string only on the right. More...
 
std::string trim_right (const std::string &str, const std::string &drop)
 Trims the given string only on the right. More...