MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / splitOnNewLine

Function splitOnNewLine

common/StringUtil.cpp:232–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 }
231
232 std::vector<std::string> splitOnNewLine(const std::string& str)
233 {
234 std::vector<std::string> lines;
235 std::istringstream stream(str);
236 std::string line;
237 while (std::getline(stream, line))
238 {
239 lines.push_back(line);
240 }
241 return lines;
242 }
243
244 std::string_view StripWhitespace(const std::string_view str)
245 {

Callers 1

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected