| 479 | } |
| 480 | |
| 481 | std::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 | |
| 495 | bool Emotibit::get_header ( |
| 496 | const std::string &package_string, int *package_num, int *data_len, std::string &type_tag) |
nothing calls this directly
no outgoing calls
no test coverage detected