Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
StringUtils.h File Reference
#include <string>
#include <sstream>
#include <vector>
#include <iterator>

Go to the source code of this file.

Namespaces

namespace  pongasoft
namespace  pongasoft::Utils

Functions

template<typename TFloat>
std::vector< TFloat > splitFloats (const std::string &iString, char iDelimiter, bool iSkipEmptyEntries=false)
 Converts the string to a an array of floats.
std::vector< std::string > splitString (const std::string &iString, char iDelimiter, bool iSkipEmptyEntries)
 Split a string according to a delimiter and returns a vector.
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...).
template<typename TFloat>
TFloat stringToFloat (const std::string &iString)
 Converts the string to a TFloat.
template<typename TFloat>
bool stringToFloat (const std::string &iString, TFloat &oValue)
 Converts the string to a TFloat (float or double).
constexpr char const * to_string (bool iValue)
 Convenient call to convert a boolean into a string.