VPTissue Reference Manual
StringUtils.h File Reference

String manipulation utilities. More...

#include <algorithm>
#include <cctype>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
Include dependency graph for StringUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SimPT_Sim
 Namespace for the core simulator.
 
 SimPT_Sim::Util
 Namespace for miscellaneous utilities.
 

Functions

template<typename T >
static T SimPT_Sim::Util::FromString (const std::string &s)
 Builds a value of type T representation from a string.
 
static std::vector< std::string > SimPT_Sim::Util::Tokenize (const std::string &str, const std::string &delimiters)
 Tokenize a string (in order of occurence) by splitting it on the given delimiters.
 
template<typename T >
static std::string SimPT_Sim::Util::ToString (const T &value)
 Builds a string representation of a value of type T.
 
template<typename T >
static std::string SimPT_Sim::Util::ToString (const T &value, int width, char fill= ' ')
 Builds a string representation with minimum width of a value of type T.
 
static std::string SimPT_Sim::Util::ToUpper (const std::string &source)
 Builds a string with upper case characters only.
 
static std::string SimPT_Sim::Util::Trim (const std::string &source, const std::string &t=" ")
 Trim characters at both ends of string.
 
static std::string SimPT_Sim::Util::TrimLeft (std::string const &source, const std::string &t=" ")
 Trim characters at left end of string.
 
static std::string SimPT_Sim::Util::TrimRight (const std::string &source, const std::string &t=" ")
 Trim characters at right end of string.
 

Detailed Description

String manipulation utilities.

Definition in file StringUtils.h.