Mention consistency with std::str with respect to byte indices.

This commit is contained in:
Andrew Gallant 2014-04-13 00:08:35 -04:00
parent b1315ee307
commit 67f972f598
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ UTF8 codepoint boundaries by construction of the VM). My reason for this is
that byte indices result in a lower cost abstraction. If character indices are that byte indices result in a lower cost abstraction. If character indices are
desired, then a mapping can be maintained by the client at their discretion. desired, then a mapping can be maintained by the client at their discretion.
Additionally, this makes it consistent with the `std::str` API, which also
exposes byte indices.
## Word boundaries, word characters and Unicode ## Word boundaries, word characters and Unicode
The `\w` character class and the zero-width word boundary assertion `\b` are The `\w` character class and the zero-width word boundary assertion `\b` are