11 * Split **str** into a list of strings, using the ";,= \t" delimiters and output the result in **str_list**.
13 * @param [in] str String to split and save as list
14 * @param [out] str_list List modified containing str after it has been split
16 extern void get_str_list(const std::string& str,
17 std::list<std::string>& str_list);
20 * Split **str** into a list of strings, using the **delims** delimiters and output the result in **str_list**.
22 * @param [in] str String to split and save as list
23 * @param [in] delims characters used to split **str**
24 * @param [out] str_list List modified containing str after it has been split
26 extern void get_str_list(const std::string& str,
28 std::list<std::string>& str_list);
31 * Split **str** into a list of strings, using the ";,= \t" delimiters and output the result in **str_vec**.
33 * @param [in] str String to split and save as Vector
34 * @param [out] str_vec Vector modified containing str after it has been split
36 extern void get_str_vec(const std::string& str,
37 std::vector<std::string>& str_vec);
40 * Split **str** into a list of strings, using the **delims** delimiters and output the result in **str_vec**.
42 * @param [in] str String to split and save as Vector
43 * @param [in] delims characters used to split **str**
44 * @param [out] str_vec Vector modified containing str after it has been split
46 extern void get_str_vec(const std::string& str,
48 std::vector<std::string>& str_vec);
51 * Split **str** into a list of strings, using the ";,= \t" delimiters and output the result in **str_list**.
53 * @param [in] str String to split and save as Set
54 * @param [out] str_list Set modified containing str after it has been split
56 extern void get_str_set(const std::string& str,
57 std::set<std::string>& str_list);
60 * Split **str** into a list of strings, using the **delims** delimiters and output the result in **str_list**.
62 * @param [in] str String to split and save as Set
63 * @param [in] delims characters used to split **str**
64 * @param [out] str_list Set modified containing str after it has been split
66 extern void get_str_set(const std::string& str,
68 std::set<std::string>& str_list);
71 * Return a String containing the vector **v** joined with **sep**
73 * If **v** is empty, the function returns an empty string
74 * For each element in **v**,
75 * it will concatenate this element and **sep** with result
77 * @param [in] v Vector to join as a String
78 * @param [in] sep String used to join each element from **v**
79 * @return empty string if **v** is empty or concatenated string
81 inline std::string str_join(const std::vector<std::string>& v, std::string sep)
85 std::vector<std::string>::const_iterator i = v.begin();
87 for (++i; i != v.end(); ++i) {