1
0
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:
AAAA 2021-04-19 03:41:04 -05:00 committed by GitHub
parent 75d1b54f7b
commit a45da620e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() }
}