1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-26 20:28:49 +08:00

Remove remarks about UTF-16 incompatibility

This commit is contained in:
Robert Krimen
2013-01-27 10:29:57 -08:00
parent 3240efeb62
commit 38f6d71ff2
2 changed files with 0 additions and 12 deletions

View File

@@ -89,7 +89,6 @@ Caveat Emptor
* Does not support the (?!) or (?=) regular expression syntax (because Go does not)
* JavaScript considers a vertical tab (\000B <VT>) to be part of the whitespace class (\s), while RE2 does not.
* Really, error reporting could use some improvement.
* For now, otto handles strings as UTF-8 rather than UTF-16.
Regular Expression Syntax
@@ -104,11 +103,6 @@ More information about RE2: https://code.google.com/p/re2/
JavaScript considers a vertical tab (\000B <VT>) to be part of the whitespace class (\s), while RE2 does not.
UTF-8 UTF-16
Internally, otto stores strings as Go does, which is UTF-8. JavaScript calls for strings to be handled as UTF-16.
This leads to some strange edge cases, such as a UTF-8 string having a length of 5, while the "same" string as UTF-16 has a length of 3.
*/
package otto