Bob Nystrom
5bb3154e83
Copy editing.
2015-03-27 20:59:15 -07:00
Bob Nystrom
72c38a59ce
More stuff for working with strings and bytes!
...
- "\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.
2015-03-27 20:44:07 -07:00
Bob Nystrom
7d45dda383
String.fromCodePoint(). Fix #219 .
2015-03-27 07:43:36 -07:00
Bob Nystrom
eb424f5c1a
Make strings iterable over their code points.
...
I'm not sure why, but this also regresses perf:
binary_trees - wren .......... 3290 0.30s 96.68% relative to baseline
delta_blue - wren .......... 7948 0.13s 99.06% relative to baseline
fib - wren .......... 3165 0.32s 95.90% relative to baseline
for - wren .......... 8242 0.12s 96.00% relative to baseline
method_call - wren .......... 5417 0.18s 78.74% relative to baseline
Need to investigate.
2015-01-22 20:58:22 -08:00
Bob Nystrom
a5b00cebe7
Clarify how string subscripting handles UTF-8.
2015-01-22 16:38:03 -08:00
Bob Nystrom
2a4804bbc9
Reorganize core library docs.
2015-01-18 15:36:36 -08:00