Create vector-result-version of split_string with unit test
[libi2ncommon] / src / stringfunc.hxx
index 67c38e7..0d9e363 100644 (file)
@@ -114,6 +114,14 @@ void split_string(
    const std::string& trim_list= std::string()
 );
 
+void split_string(
+   const std::string& str,
+   std::vector< std::string >& result,
+   const std::string& delimiter= "\n",
+   bool omit_empty= false,
+   const std::string& trim_list= std::string()
+);
+
 std::list< std::string > split_string(
    const std::string& str,
    const std::string& delimiter = "\n",