Shipwright/soh/soh/Enhancements/randomizer/3drando/utils.cpp

7 lines
175 B
C++

#include "utils.hpp"
// Removes any line breaks from s.
std::string RemoveLineBreaks(std::string s) {
s.erase(std::remove(s.begin(), s.end(), '\n'), s.end());
return s;
}