mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
- "\x" escape sequence to put byte values in strings: "\x34" - String.byteAt(index) gets value of byte in string. - String.bytes returns a raw sequence of bytes for a string. - String.codePointAt(index) gets the code point at an offset as a raw number.
7 lines
166 B
Plaintext
7 lines
166 B
Plaintext
// Bytes: 11111
|
|
// 012345678901234
|
|
// Chars: sø mé ஃ thî ng
|
|
var s = "søméஃthîng"
|
|
|
|
IO.print(s.bytes is StringByteSequence) // expect: true
|