Marsyas
0.6.0-alpha
|
Classes and functions for various string manipulation. More...
Functions | |
mrs_string | obsNamesAddPrefix (mrs_string observationNames, mrs_string prefix) |
Helper function for adding a prefix to each of the observation names. | |
std::vector< mrs_string > | obsNamesSplit (mrs_string observationNames) |
Helper function for splitting an observation names string used in MarSystems. | |
std::vector< mrs_string > | stringSplit (mrs_string input, mrs_string delimiter) |
Helper function for splitting a string. |
Classes and functions for various string manipulation.
mrs_string obsNamesAddPrefix | ( | mrs_string | observationNames, |
mrs_string | prefix | ||
) |
Helper function for adding a prefix to each of the observation names.
observationNames | string of observation names (comma separated) |
prefix | the prefix the prepend to all the observation names. |
Definition at line 2344 of file MarSystem.cpp.
vector< mrs_string > obsNamesSplit | ( | mrs_string | observationNames | ) |
Helper function for splitting an observation names string used in MarSystems.
observationNames,: | the observation names string to split. |
Like Marsyas::stringSplit(), but taking the Marsyas convention of a trailing comma into account: the last comma does not produce an empty item. For example, the observation name string "foo,bar," will produce the items "foo" and "bar".
Definition at line 2414 of file MarSystem.cpp.
vector< mrs_string > stringSplit | ( | mrs_string | input, |
mrs_string | delimiter | ||
) |
Helper function for splitting a string.
input | the string to split. |
delimiter | the string to split on. |
Definition at line 2378 of file MarSystem.cpp.