The small3d framework
Functions
GetTokens.hpp File Reference

Declaration of the getTokens function. More...

#include <string>
#include <vector>

Go to the source code of this file.

Functions

int small3d::getTokens (const std::string &input, const char sep, std::vector< std::string > &tokens)
 Separates a string into tokens, using the given character as a separator. More...
 

Detailed Description

Declaration of the getTokens function.

Created on: 2014/10/18 Author: Dimitri Kourkoulis License: BSD 3-Clause License (see LICENSE file)

Function Documentation

◆ getTokens()

int small3d::getTokens ( const std::string &  input,
const char  sep,
std::vector< std::string > &  tokens 
)

Separates a string into tokens, using the given character as a separator.

Parameters
inputThe input string
sepThe separator
[in,out]tokensThe tokens
Returns
The number of tokens