Jamba C++ API  5.1.1
StringUtils.h File Reference
#include <string>
#include <sstream>
#include <vector>
#include <iterator>

Go to the source code of this file.

Namespaces

 pongasoft
 
 pongasoft::Utils
 

Functions

template<typename TFloat >
std::vector< TFloat > splitFloats (const std::string &iString, char iDelimiter, bool iSkipEmptyEntries=false)
 Converts the string to a TFloat. More...
 
std::vector< std::string > splitString (const std::string &iString, char iDelimiter, bool iSkipEmptyEntries)
 Split a string according to a delimiter and returns a vector. More...
 
template<typename Out >
void splitString (const std::string &iString, char iDelimiter, Out oResult, bool iSkipEmptyEntries=false)
 Split a string according to a delimiter and writes the result into Out (can be a vector, array, etc...) More...
 
template<typename TFloat >
bool stringToFloat (const std::string &iString, TFloat &oValue)
 Converts the string to a TFloat (float or double) More...
 
template<typename TFloat >
TFloat stringToFloat (const std::string &iString)
 Converts the string to a TFloat. More...
 
constexpr char const * to_string (bool iValue)
 Convenient call to convert a boolean into a string. More...