aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/elna/boot/driver.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/elna/boot/driver.h b/include/elna/boot/driver.h
index ef5be81..34a8c99 100644
--- a/include/elna/boot/driver.h
+++ b/include/elna/boot/driver.h
@@ -46,5 +46,12 @@ namespace elna::boot
constexpr char escape_invalid_char = '\xff';
char escape_char(char escape);
+ /**
+ * Replaces both \r\n sequences and lone \r characters with \n.
+ * Modifies the original input.
+ *
+ * \param string Text to normalize.
+ */
+ void normalize_newlines(std::string& string);
std::optional<std::string> escape_string(const char *escape);
}