10 #ifndef YARP_OS_IMPL_SPLITSTRING_H
11 #define YARP_OS_IMPL_SPLITSTRING_H
31 SplitString(
const char* command,
const char splitter =
' ');
35 void set(
int index,
const char* txt);
37 const char* get(
int idx);
41 void apply(
const char* command,
char splitter =
' ');
44 static constexpr
size_t MAX_ARG_CT = 20;
45 static constexpr
size_t MAX_ARG_LEN = 256;
48 const char* argv[MAX_ARG_CT];
49 char buf[MAX_ARG_CT][MAX_ARG_LEN];
Split a string into pieces.
The main, catch-all namespace for YARP.