- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for UTF16 (0.01 sec)
-
internal/s3select/jstream/decoder.go
c = d.next() if !utf16.IsSurrogate(r) || c != '\\' { d.scratch.addRune(r) goto scan } if c = d.next(); c != 'u' { d.scratch.addRune(r) goto scan_esc } r2 := d.u4() if r2 < 0 { return "", d.mkError(ErrSyntax, "in unicode escape sequence") } // write surrogate pair d.scratch.addRune(utf16.DecodeRune(r, r2)) c = d.next() goto scan }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 13.5K bytes - Viewed (0) -
internal/s3select/jstream/decoder_test.go
func TestDecoderNested(t *testing.T) { var ( counter int mv *MetaValue body = `{ "1": { "bio": "bada bing bada boom", "id": 0, "name": "Roberto", "nested1": { "bio": "utf16 surrogate (\ud834\udcb2)\n\u201cutf 8\u201d", "id": 1.5, "name": "Roberto*Maestro", "nested2": { "nested2arr": [0,1,2], "nested3": { "nested4": { "depth": "recursion" }} } } },
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 6.6K bytes - Viewed (0)