mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: add string representation of ESC (#9799)
This commit is contained in:
parent
75d1b54f7b
commit
a45da620e6
@ -472,6 +472,7 @@ pub fn (b byte) str_escaped() string {
|
||||
11 { r'`\v`' }
|
||||
12 { r'`\f`' }
|
||||
13 { r'`\r`' }
|
||||
27 { r'`\e`' }
|
||||
32...126 { b.ascii_str() }
|
||||
else { '0x' + b.hex() }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user