mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: ~500 more byte=>u8
This commit is contained in:
parent
ae6a25f44e
commit
fbb9e65c0f
148 changed files with 544 additions and 494 deletions
|
@ -159,9 +159,8 @@ pub fn decode_quoted_escapes(mut q ast.Quoted) ? {
|
|||
&& u8(s.peek(3)).is_hex_digit() && u8(s.peek(4)).is_hex_digit()
|
||||
|
||||
if is_valid_short {
|
||||
is_valid_long := u8(s.peek(5)).is_hex_digit()
|
||||
&& u8(s.peek(6)).is_hex_digit() && u8(s.peek(7)).is_hex_digit()
|
||||
&& u8(s.peek(8)).is_hex_digit()
|
||||
is_valid_long := u8(s.peek(5)).is_hex_digit() && u8(s.peek(6)).is_hex_digit()
|
||||
&& u8(s.peek(7)).is_hex_digit() && u8(s.peek(8)).is_hex_digit()
|
||||
// If it's a long type Unicode (\UXXXXXXXX) with a maximum of 10 chars: '\' + 'U' + 8 hex characters
|
||||
// we pass in 10 characters from the `u`/`U` which is the longest possible sequence
|
||||
// of 9 chars plus one extra.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue