refactor: move buffer module to a subdirectory
This commit is contained in:
parent
b2c12ba337
commit
6bab2e6cda
6 changed files with 1 additions and 1 deletions
39
src/buffer/unicode.zig
Normal file
39
src/buffer/unicode.zig
Normal file
|
@ -0,0 +1,39 @@
|
|||
pub fn control_code_to_unicode(code: u8) [:0]const u8 {
|
||||
return switch (code) {
|
||||
'\x00' => "␀",
|
||||
'\x01' => "␁",
|
||||
'\x02' => "␂",
|
||||
'\x03' => "␃",
|
||||
'\x04' => "␄",
|
||||
'\x05' => "␅",
|
||||
'\x06' => "␆",
|
||||
'\x07' => "␇",
|
||||
'\x08' => "␈",
|
||||
'\x09' => "␉",
|
||||
'\x0A' => "␊",
|
||||
'\x0B' => "␋",
|
||||
'\x0C' => "␌",
|
||||
'\x0D' => "␍",
|
||||
'\x0E' => "␎",
|
||||
'\x0F' => "␏",
|
||||
'\x10' => "␐",
|
||||
'\x11' => "␑",
|
||||
'\x12' => "␒",
|
||||
'\x13' => "␓",
|
||||
'\x14' => "␔",
|
||||
'\x15' => "␕",
|
||||
'\x16' => "␖",
|
||||
'\x17' => "␗",
|
||||
'\x18' => "␘",
|
||||
'\x19' => "␙",
|
||||
'\x1A' => "␚",
|
||||
'\x1B' => "␛",
|
||||
'\x1C' => "␜",
|
||||
'\x1D' => "␝",
|
||||
'\x1E' => "␞",
|
||||
'\x1F' => "␟",
|
||||
'\x20' => "␠",
|
||||
'\x7F' => "␡",
|
||||
else => "",
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue