diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-20 12:26:29 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-20 13:33:08 +0200 |
| commit | cbbe1593bb0893654bd71e611ca610df03bac768 (patch) | |
| tree | 9a2db686e108f4eb42bae1b9fde801c52349a355 /include | |
| parent | 38dc185ec0c6c010b2f2bbb06f52e41391c33194 (diff) | |
| download | elna-cbbe1593bb0893654bd71e611ca610df03bac768.tar.gz | |
Add newlines a tabs to supported string characters
Diffstat (limited to 'include')
| -rw-r--r-- | include/elna/boot/driver.h | 7 |
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); } |
