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.
comFunction.cpp
- Committer:
- takeru0x1103
- Date:
- 2018-11-30
- Revision:
- 17:f9610f3cfa1b
- Child:
- 45:3b51dd26b579
File content as of revision 17:f9610f3cfa1b:
#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;
}