teamALI / Mbed 2 deprecated HB2018

Dependencies:   mbed FreeRTOS

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;
}