mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
Add char nul
(#13241)
# Description Adds `char nul`, `char null_byte` and `char zero_byte` named characters. All of them generate 0x00 byte. # User-Facing Changes Three new named characters are added: * `char nul` - generates 0x00 byte * `char null_byte` - generates 0x00 byte * `char zero_byte` - generates 0x00 byte
This commit is contained in:
parent
ee74ec7423
commit
46ed69ab12
@ -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
|
// These are some regular characters that either can't be used or
|
||||||
// it's just easier to use them like this.
|
// 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
|
// This are the "normal" characters section
|
||||||
"newline" => '\n'.to_string(),
|
"newline" => '\n'.to_string(),
|
||||||
"enter" => '\n'.to_string(),
|
"enter" => '\n'.to_string(),
|
||||||
|
Loading…
Reference in New Issue
Block a user