Add char nul

This commit is contained in:
Bruce Weirdan 2024-06-27 00:30:29 +02:00
parent b679c2bfa2
commit f3ed529254
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D

View File

@ -19,6 +19,9 @@ static CHAR_MAP: Lazy<IndexMap<&'static str, String>> = Lazy::new(|| {
// These are some regular characters that either can't be used or
// it's just easier to use them like this.
"nul" => '\x00'.to_string(), // nul character, 0x00
"null_byte" => '\x00'.to_string(), // nul character, 0x00
"zero_byte" => '\x00'.to_string(), // nul character, 0x00
// This are the "normal" characters section
"newline" => '\n'.to_string(),
"enter" => '\n'.to_string(),