Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: comFunction.cpp
- 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