Doug Gregor
22eecacc35
Adopt unsafe annotations throughout the standard library
2025-02-26 14:28:01 -08:00
Michael Ilseman
a0bf388bd5
UTF8-validation: speed up findInvalidRange ( #75381 )
...
Changes findInvalidRange from being O(n) to O(1).
2024-07-20 07:49:49 -06:00
Kuba Mracek
7ae20b7039
[embedded] Port Swift.String to embedded Swift
2024-05-08 11:11:37 -07:00
Guillaume Lessard
6b328f9c07
[gardening] add a missing license header
2024-01-27 13:15:16 -08:00
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