MCPcopy Create free account
hub / github.com/OAID/Tengine / split

Function split

tools/bin/test_accuracy.cpp:126–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void split(std::string& s, std::string delim, std::vector<std::string>* ret)
127{
128 size_t last = 0;
129 size_t index = s.find_first_of(delim, last);
130 while(index != string::npos)
131 {
132 ret->push_back(s.substr(last, index - last));
133 last = index + 1;
134 index = s.find_first_of(delim, last);
135 }
136 if(index - last > 0)
137 {
138 ret->push_back(s.substr(last, index - last));
139 }
140}
141
142void LoadImageFile(std::vector<std::string>& result, const char* fname)
143{

Callers 5

mainFunction · 0.85
PreprocessMethod · 0.85
run_PNetMethod · 0.85
copy_one_patchMethod · 0.85
ParseAttr_nFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected