Split a string into pieces. More...
#include <yarp/os/impl/SplitString.h>
Public Member Functions | |
SplitString () | |
SplitString (const char *command, const char splitter=' ') | |
int | size () |
void | set (int index, const char *txt) |
const char * | get (int idx) |
const char ** | get () |
void | apply (const char *command, char splitter=' ') |
Split a string into pieces.
This class is a bit crufty, and should be replaced with a simple Bottle (now that Bottle exists).
Definition at line 26 of file SplitString.h.
SplitString::SplitString | ( | ) |
Definition at line 18 of file SplitString.cpp.
SplitString::SplitString | ( | const char * | command, |
const char | splitter = ' ' |
||
) |
Definition at line 26 of file SplitString.cpp.
void SplitString::apply | ( | const char * | command, |
char | splitter = ' ' |
||
) |
Definition at line 54 of file SplitString.cpp.
const char ** SplitString::get | ( | ) |
Definition at line 49 of file SplitString.cpp.
const char * SplitString::get | ( | int | idx | ) |
Definition at line 44 of file SplitString.cpp.
void SplitString::set | ( | int | index, |
const char * | txt | ||
) |
Definition at line 36 of file SplitString.cpp.
int SplitString::size | ( | ) |
Definition at line 31 of file SplitString.cpp.