10 * Split **str** into a list of strings, using the ";,= \t" delimiters and output the result in **str_list**.
12 * @param [in] str String to split and save as list
13 * @param [out] str_list List modified containing str after it has been split
15 extern void get_str_list(const std::string& str,
16 std::list<std::string>& str_list);
19 * Split **str** into a list of strings, using the **delims** delimiters and output the result in **str_list**.
21 * @param [in] str String to split and save as list
22 * @param [in] delims characters used to split **str**
23 * @param [out] str_list List modified containing str after it has been split
25 extern void get_str_list(const std::string& str,
27 std::list<std::string>& str_list);
30 * Split **str** into a list of strings, using the ";,= \t" delimiters and output the result in **str_vec**.
32 * @param [in] str String to split and save as Vector
33 * @param [out] str_vec Vector modified containing str after it has been split
35 extern void get_str_vec(const std::string& str,
36 std::vector<std::string>& str_vec);
39 * Split **str** into a list of strings, using the **delims** delimiters and output the result in **str_vec**.
41 * @param [in] str String to split and save as Vector
42 * @param [in] delims characters used to split **str**
43 * @param [out] str_vec Vector modified containing str after it has been split
45 extern void get_str_vec(const std::string& str,
47 std::vector<std::string>& str_vec);
50 * Split **str** into a list of strings, using the ";,= \t" delimiters and output the result in **str_list**.
52 * @param [in] str String to split and save as Set
53 * @param [out] str_list Set modified containing str after it has been split
55 extern void get_str_set(const std::string& str,
56 std::set<std::string>& str_list);
59 * Split **str** into a list of strings, using the **delims** delimiters and output the result in **str_list**.
61 * @param [in] str String to split and save as Set
62 * @param [in] delims characters used to split **str**
63 * @param [out] str_list Set modified containing str after it has been split
65 extern void get_str_set(const std::string& str,
67 std::set<std::string>& str_list);
70 * Return a String containing the vector **v** joined with **sep**
72 * If **v** is empty, the function returns an empty string
73 * For each element in **v**,
74 * it will concatenate this element and **sep** with result
76 * @param [in] v Vector to join as a String
77 * @param [in] sep String used to join each element from **v**
78 * @return empty string if **v** is empty or concatenated string
80 inline std::string str_join(const std::vector<std::string>& v, std::string sep)
84 std::vector<std::string>::const_iterator i = v.begin();
86 for (++i; i != v.end(); ++i) {
93 static inline std::vector<std::string> get_str_vec(const std::string& str)
95 std::vector<std::string> str_vec;
96 const char *delims = ";,= \t";
97 get_str_vec(str, delims, str_vec);