| 225 | } |
| 226 | |
| 227 | void tokenize_string ( |
| 228 | std::string &str, |
| 229 | std::vector<std::string> &tokens, |
| 230 | const std::string &delimiters) { |
| 231 | |
| 232 | std::string token; |
| 233 | auto start = 0; |
| 234 | auto end = str.find(delimiters); |
| 235 | while(end != std::string::npos){ |
| 236 | |
| 237 | token = str.substr(start, end - start); |
| 238 | tokens.push_back(token); |
| 239 | start = end + delimiters.length(); |
| 240 | end = str.find(delimiters, start); |
| 241 | if (end == std::string::npos) { |
| 242 | |
| 243 | token = str.substr(start, end); |
| 244 | tokens.push_back(token); |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | } |
| 249 | |
| 250 | std::string process_scan_hit_str(const std::string &hit_str, |
| 251 | const std::string &file_scan_type, |
no outgoing calls
no test coverage detected