| 49 | std::vector<std::vector<int>> response_time; |
| 50 | |
| 51 | std::vector<std::string> split(const std::string& str, |
| 52 | const std::string& pattern) { |
| 53 | std::vector<std::string> res; |
| 54 | if (str == "") return res; |
| 55 | std::string strs = str + pattern; |
| 56 | size_t pos = strs.find(pattern); |
| 57 | while (pos != strs.npos) { |
| 58 | std::string temp = strs.substr(0, pos); |
| 59 | res.push_back(temp); |
| 60 | strs = strs.substr(pos + 1, strs.size()); |
| 61 | pos = strs.find(pattern); |
| 62 | } |
| 63 | return res; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Simulate CPython hash function on string objects |
no test coverage detected