MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / loadStringList

Method loadStringList

src/Abyss/FileSystem/FileLoader.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13std::vector<std::string> FileLoader::loadStringList(std::string_view path) {
14 auto stream = loadFile(path);
15 std::vector<std::string> result;
16 std::string line;
17 while (std::getline(stream, line)) {
18 if (line.empty()) {
19 continue;
20 }
21 result.push_back(std::move(line));
22 }
23 return result;
24}
25
26std::vector<std::byte> FileLoader::loadBytes(std::string_view path) {
27 auto stream = loadFile(path);

Callers 1

CreditsMethod · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected