diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-01-18 02:55:02 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:45 +0100 |
commit | 7bced9e7855d0292be2da10d40aceb53a6c2575f (patch) | |
tree | 903eaf854a53932d4f0fc5e0b8a07373ad382d79 /src/base/songloading/songloading_strategy_txt.hpp | |
parent | f2d97dfee2d1a4e67f9fdbb8a1857e8383e5f300 (diff) | |
download | usdx-7bced9e7855d0292be2da10d40aceb53a6c2575f.tar.gz usdx-7bced9e7855d0292be2da10d40aceb53a6c2575f.tar.xz usdx-7bced9e7855d0292be2da10d40aceb53a6c2575f.zip |
added {r,l}trim_newline that only remove '\r' and '\n', remove '\r' from lyrics
Diffstat (limited to 'src/base/songloading/songloading_strategy_txt.hpp')
-rw-r--r-- | src/base/songloading/songloading_strategy_txt.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/songloading/songloading_strategy_txt.hpp b/src/base/songloading/songloading_strategy_txt.hpp index 0330772b..0f9fd23d 100644 --- a/src/base/songloading/songloading_strategy_txt.hpp +++ b/src/base/songloading/songloading_strategy_txt.hpp @@ -55,6 +55,16 @@ namespace usdx std::string& rtrim(std::string& line); /** + * Removes ''\r'' and ''\n'' in front of the string. + */ + std::string& ltrim_newlines(std::string& line); + + /** + * Removes ''\r'' and ''\n'' behind the string. + */ + std::string& rtrim_newlines(std::string& line); + + /** * Removes whitespaces in front of the string and behind it. */ std::string& trim(std::string& line); |