Skip to content

Commit

Permalink
added to lowercase translation
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed May 26, 2024
1 parent c3576e2 commit 0191959
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "loki/details/exceptions.hpp"

#include <algorithm>
#include <fstream>
#include <sstream>
#include <string>
Expand Down Expand Up @@ -54,6 +55,9 @@ std::string read_file(const fs::path& file_path)
tabPos += 4; // Move past the new spaces
}

// Convert line to lowercase
std::transform(line.begin(), line.end(), line.begin(), [](unsigned char c) { return std::tolower(c); });

buffer << line << '\n';
}
return buffer.str();
Expand Down

0 comments on commit 0191959

Please sign in to comment.