From cbbe1593bb0893654bd71e611ca610df03bac768 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 20 Jul 2026 12:26:29 +0200 Subject: Add newlines a tabs to supported string characters --- include/elna/boot/driver.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 escape_string(const char *escape); } -- cgit v1.2.3