AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ stringtok()

template<typename Container >
void drama::stringtok ( Container container,
std::string const in,
const char *const  delimiters = " \t\n\r" 
)

stringtok is a replacment for C's strtok() function.

It breaks a string up into tokens.

Each token is stored in a STL container.

Template Parameters
ContainerThe type of the container to be used. Any with push_back() should work.
Parameters
containerEach token found in the input string is stored in this container.
inThe string to be broken into tokens.
delimitersThe characters which are used to split the string into tokens. It is each character in this string, rather then the string itself, which are the delimiters.

References CreateRunDramaTask().