teamALI / Mbed 2 deprecated HB2018

Dependencies:   mbed FreeRTOS

Revision:
17:f9610f3cfa1b
Child:
45:3b51dd26b579
diff -r 05b9e44889f1 -r f9610f3cfa1b comFunction.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/comFunction.cpp	Fri Nov 30 05:24:27 2018 +0000
@@ -0,0 +1,15 @@
+#include "comFunction.h"
+//----------------------------------------
+//文字列スプリット
+//----------------------------------------
+std::vector<std::string> f_Split(const std::string &str, char sep)
+{
+    std::vector<std::string> v;
+    std::stringstream ss(str);
+    std::string buffer;
+    
+    while( std::getline(ss, buffer, sep) ) {
+        v.push_back(buffer);
+    }
+    return v;
+}
\ No newline at end of file