From a2c5c430867d38aacb2e69ec3744ea604bf8af5f Mon Sep 17 00:00:00 2001 From: sdottaka Date: Wed, 18 Dec 2024 09:11:23 +0900 Subject: [PATCH] WIP --- Src/DiffWrapper.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Src/DiffWrapper.cpp b/Src/DiffWrapper.cpp index ad590d4c6e3..07deb2f7233 100644 --- a/Src/DiffWrapper.cpp +++ b/Src/DiffWrapper.cpp @@ -339,6 +339,16 @@ static void ReplaceChars(std::string & str, const char* chars, const char *rep) } } +/** + * @brief Remove the end-of-line (EOL) characters (LF, CR, or CRLF) from the end of a string. + * + * This function removes any of the following EOL characters from the end of the string: + * - LF (line feed, '\n') + * - CR (carriage return, '\r') + * - CRLF (carriage return + line feed, "\r\n") + * + * @param [in,out] str - A string from which the EOL characters will be removed. + */ static void RemoveEOL(std::string& str) { if (str.empty())