Commit Graph

9 Commits

Author SHA1 Message Date
Tor Andersson
2a1804ea26 Generate new tables for isalpha/toupper/tolower from UnicodeDate.txt 2021-07-20 15:01:53 +02:00
Tor Andersson
ad3817fcc3 Silence gcc warning about overflow. 2020-07-06 11:04:32 +02:00
Tor Andersson
ac25ac54fa Fix typo in comment. 2020-05-27 17:07:41 +02:00
Tor Andersson
832e069049 Support 4-byte UTF-8 sequences.
The following functions are no longer restricted to 16-bit integer values:

	String.fromCharCode()
	String.prototype.charCodeAt()

repr() will not escape SMP characters, as doing so would require conversion to
surrogate pairs, but will encode these characters as UTF-8. Unicode characters
in the BMP will still be escaped with \uXXXX as before.

JSON.stringify() only escapes control characters, so will represent all non-ASCII
characters as UTF-8.

We do no automatic conversions to/from surrogate pairs. Code that worked with
surrogate pairs should not be affected by these changes.
2020-05-27 12:32:32 +02:00
Tor Andersson
0261579d78 Support embedded 0 in strings by using modified UTF-8. 2020-05-27 12:32:32 +02:00
Tor Andersson
3e3c382a0c Avoid using 'unsigned int'.
Mixing signed and unsigned ints is just a plain headache.
2016-04-27 16:26:00 +02:00
Tor Andersson
e4a6860f6e More signedness fixes. 2014-02-25 00:22:17 +01:00
Tor Andersson
c7335fa383 Prune unused UTF-8 and rune string functions. 2014-02-11 16:54:17 +01:00
Tor Andersson
e8dfb4e624 Rename non-js utility sources to not have the 'js' prefix. 2014-01-28 01:34:41 +01:00