Game Develop C++ Platform: CommonTools.h File Reference

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Classes | Functions
CommonTools.h File Reference
`#include <string>`
`#include <sstream>`
`#include <vector>`
`#include <cmath>`

Go to the source code of this file.

## Classes

struct | StringEmpty
| Functor testing if a std::string is empty. More...

## Functions

template<typename T >
int | ToInt (const T &value)
template<typename T >
float | ToFloat (const T &value)
template<typename T >
double | ToDouble (const T &value)
template<typename T >
std::string | ToString (const T &value)
template<typename T >
std::vector< T > | SplitString (const std::string &str, char separator)
double | GDRound (double d)

## Detailed Description

Game Develop 2008-2014 Florian Rival (Flori.nosp@m.an.R.nosp@m.ival@.nosp@m.gmai.nosp@m.l.com)

## Function Documentation

template<typename T >

std::vector<T> SplitString | ( | const std::string & | str,
|  | char | separator
| ) |  |

Split a string into tokens stored in a vector, using the specified separator.

Parameters

  str | String to split
  separator | Separator to use