Sho Ikeda
a35c9f0c60
[gardening] Use Collection.isEmpty over Collection.count
2019-05-26 09:35:20 +09:00
Michael Ilseman
4967fc08eb
[Unicode] Add convenience APIs to Unicode encodings
...
Add convenience APIs to the stdlib's Unicode encodings:
* Unicode.UTF16
* isASCII
* isSurrogate
* Unicode.UTF8
* isASCII
* width
* Unicode.UTF32
* isASCII
* Unicode.ASCII
* isASCII
Tests added
2019-03-29 15:43:00 -07:00
Michael Ilseman
3df92911f9
[String] Speed up ASCII checking.
...
Perform ASCII checking using pointer-width strides, making sure to
align properly.
2019-01-22 15:06:03 -08:00
Ben Cohen
1673c12d78
[stdlib] Replace "sanityCheck" with "internalInvariant" ( #20616 )
...
* Replace "sanityCheck" with "internalInvariant"
2018-11-15 20:50:22 -08:00
Johannes Weiss
bee9374997
use legacy replacement ranges to fix tests
...
this is just to be compatible with the current transcoders and can be
undone when the transcoders (based on ForwardParser/ReverseParser) are
improved too.
2018-11-04 10:42:41 -08:00
Johannes Weiss
79e9f26ad7
integrating utf8 validation
2018-11-04 10:42:41 -08:00