MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / split_string

Method split_string

src/board_controller/emotibit/emotibit.cpp:481–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481std::vector<std::string> Emotibit::split_string (const std::string &package, char delim)
482{
483 std::vector<std::string> result;
484 size_t start;
485 size_t end = 0;
486 while ((start = package.find_first_not_of (delim, end)) != std::string::npos)
487 {
488 end = package.find (delim, start);
489 std::string cur_str = package.substr (start, end - start);
490 result.push_back (cur_str);
491 }
492 return result;
493}
494
495bool Emotibit::get_header (
496 const std::string &package_string, int *package_num, int *data_len, std::string &type_tag)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected