libpniio
|
Functions | |
std::string | strip (std::string &s, const char *begrem, const char *endrem) |
strips a string More... | |
int | get_key_value (std::string &s, const char *del, std::string &key, std::string &value) |
split into key value pairs More... | |
int get_key_value | ( | std::string & | s, |
const char * | del, | ||
std::string & | key, | ||
std::string & | value | ||
) |
Function splits a string into a "key"/"value" pair according to a delimiter symbol.
s | string to split |
del | delimiter string |
key | reference to the key |
value | reference to the value portion of the original string |
std::string strip | ( | std::string & | s, |
const char * | begrem = "\n " , |
||
const char * | endrem = " \n" |
||
) |
function strips leading and trailing signs from a string object
s | string to strip |
begrem | string with signs to remove from the beginning |
endrem | string with signs to remove from the end of the string |