| 50 | } |
| 51 | |
| 52 | std::vector<std::string> splitX26XOptionsString(const std::string str, const std::string seperator) |
| 53 | { |
| 54 | std::vector<std::string> splitStrings; |
| 55 | |
| 56 | std::string::size_type prev_pos = 0; |
| 57 | std::string::size_type pos = 0; |
| 58 | while ((pos = str.find(seperator, pos)) != std::string::npos) |
| 59 | { |
| 60 | auto substring = str.substr(prev_pos, pos - prev_pos); |
| 61 | splitStrings.push_back(substring); |
| 62 | prev_pos = pos + seperator.size(); |
| 63 | pos++; |
| 64 | } |
| 65 | splitStrings.push_back(str.substr(prev_pos, pos - prev_pos)); |
| 66 | |
| 67 | return splitStrings; |
| 68 | } |
| 69 | |
| 70 | size_t getStartCodeOffset(const ByteVector &data) |
| 71 | { |