MCPcopy Create free account
hub / github.com/BayshoreNetworks/yextend / tokenize_string

Function tokenize_string

main.cpp:227–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void 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
250std::string process_scan_hit_str(const std::string &hit_str,
251 const std::string &file_scan_type,

Callers 2

process_scan_hit_strFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected