| 151 | } // namespace Patch |
| 152 | |
| 153 | void Patch::TrimPatchLine(std::string& buffer) |
| 154 | { |
| 155 | StringUtil::StripWhitespace(&buffer); |
| 156 | if (std::strncmp(buffer.c_str(), "//", 2) == 0) |
| 157 | { |
| 158 | // comment |
| 159 | buffer.clear(); |
| 160 | } |
| 161 | |
| 162 | // check for comments at the end of a line |
| 163 | const std::string::size_type pos = buffer.find("//"); |
| 164 | if (pos != std::string::npos) |
| 165 | buffer.erase(pos); |
| 166 | } |
| 167 | |
| 168 | bool Patch::ContainsPatchName(const std::vector<PatchGroup>& patch_list, const std::string_view patch_name) |
| 169 | { |
nothing calls this directly
no test coverage detected