MCPcopy Create free account
hub / github.com/IENT/YUView / splitX26XOptionsString

Function splitX26XOptionsString

YUViewLib/src/parser/common/Functions.cpp:52–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52std::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
70size_t getStartCodeOffset(const ByteVector &data)
71{

Callers 2

parseMethod · 0.85
parseMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected