String functions. More...
#include "Robots/LoBot/util/range.hh"
#include <sstream>
#include <string>
#include <list>
#include <deque>
#include <vector>
#include <iterator>
Go to the source code of this file.
Functions | |
template<typename T > | |
std::string | lobot::to_string (const T &t) |
template<typename T > | |
std::string | lobot::to_string (const range< T > &R) |
to_string() specialization for converting ranges to strings. | |
template<typename T > | |
T | lobot::from_string (const std::string &s, const T &defval=T()) |
template<> | |
std::string | lobot::from_string (const std::string &s, const std::string &) |
template<typename T > | |
std::vector< T > | lobot::string_to_vector (const std::string &s) |
Converts a whitespace separated string of T into a vector of T. | |
template<typename T > | |
std::deque< T > | lobot::string_to_deque (const std::string &s) |
Converts a whitespace separated string of T into a deque of T. | |
template<typename T > | |
std::list< T > | lobot::string_to_list (const std::string &s) |
Converts a whitespace separated string of T into a list of T. | |
std::string | lobot::dup_string (const std::string &s, int n) |
std::string | lobot::upstring (std::string) |
String case conversion. | |
std::string | lobot::downstring (std::string s) |
String functions.
Definition in file LoString.H.