From 7bced9e7855d0292be2da10d40aceb53a6c2575f Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 18 Jan 2010 02:55:02 +0100 Subject: added {r,l}trim_newline that only remove '\r' and '\n', remove '\r' from lyrics --- src/base/songloading/songloading_strategy_txt.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/base/songloading/songloading_strategy_txt.hpp') 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 @@ -54,6 +54,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. */ -- cgit v1.2.3