Commit Graph

27 Commits

Author SHA1 Message Date
Alejandro Alonso 916bfc16a6 Update copyrights 2025-12-15 21:52:02 -08:00
Alejandro Alonso fba131945e Regenerate grapheme data 2025-12-15 21:46:38 -08:00
Alejandro Alonso 39906adfe2 Update Unicode data to 17 for generators
more updates

more
2025-12-15 12:21:03 -08:00
Doug Gregor 3c933a1f73 Move Unicode Data declarations from SwiftShims to @_extern(c)
This eliminates UnicodeData.h from the public SwiftShims. A small
part of it remains as a private header, but everything else moves
into `@_extern(c)`.
2025-12-02 15:11:53 -08:00
Alejandro Alonso 708d72d2c3 Update tests for 6.1 Unicode 16 stdlib 2025-01-15 14:09:57 -08:00
Alejandro Alonso b49466de06 Update Unicode generators to support 16 2025-01-14 14:16:29 -08:00
Alejandro Alonso c6bcb037e6 Update Unicode generator data files to 16 2025-01-14 14:15:07 -08:00
Alexander Cyon 4a2942bb4e Fix typos in: cmake, tools, utils, unittests, validation-test
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
2024-07-12 02:34:00 +03:00
David Smith f1feba0e42 Eytzingerize word break data (#71731)
Switch word break property searching to Eytzinger binary search
2024-02-20 22:49:34 -08:00
Alejandro Alonso ad5aac0d37 Fix folder name 2024-02-16 17:41:52 -08:00
Alejandro Alonso 70a56e60f3 Add Unicode Word Break generator 2024-02-16 17:11:00 -08:00
David Smith ea7d07714f Switch grapheme break property searching to Eytzinger binary search (#71668) 2024-02-16 16:06:20 -08:00
Alejandro Alonso bef663da0f Remove Unicode 14 data files 2023-03-29 23:11:03 -07:00
Alejandro Alonso f16f0c3c23 Update the stdlib to use Unicode 15 data 2023-03-29 10:18:16 -07:00
L-j-h-c 913dcd62b8 [Gardening] fix typos across docs and codebase
fix typos across docs and codebase
2023-02-17 23:55:16 +09:00
Egor Zhdan 84a1ffcb33 [Shims] Include SwiftShims headers without ../
This replaces a number of `#include`-s like this:
```
#include "../../../stdlib/public/SwiftShims/Visibility.h"
```
with this:
```
#include "swift/shims/Visibility.h"
```

This is needed to allow SwiftCompilerSources to use C++ headers which include SwiftShims headers. Currently trying to do that results in errors:
```
swift/swift/include/swift/Demangling/../../../stdlib/public/SwiftShims/module.modulemap:1:8: error: redefinition of module 'SwiftShims'
module SwiftShims {
       ^
Builds.noindex/swift/swift/bootstrapping0/lib/swift/shims/module.modulemap:1:8: note: previously defined here
module SwiftShims {
       ^
```
This happens because the headers in both the source dir and the build dir refer to SwiftShims headers by relative path, and both the source root and the build root contain SwiftShims headers (which are equivalent, but since they are located in different dirs, Clang treats them as different modules).
2022-09-14 11:14:50 +01:00
Alejandro Alonso c59f47389f Add Script and Script Extension tests (#59194) 2022-06-01 09:55:09 -07:00
Alejandro Alonso 5fe6a7e247 Add caseFolded to scalar properties 2022-04-10 13:03:13 -07:00
Alejandro Alonso 4a451829f8 Implement the Indic grapheme breaking rules 2022-01-05 16:18:54 -08:00
Alejandro Alonso 47a8402be6 Define the last scalar offset instead of hard coding it 2021-12-20 15:40:43 -08:00
Alejandro Alonso 76fbb3c139 Some fixes for scalar names 2021-12-20 13:51:45 -08:00
Alejandro Alonso da246ac287 Use Apple's PUA Unicode data
oops
2021-12-13 03:32:40 -08:00
Alejandro Alonso ac6c08f157 [stdlib] Make the rest of the scalar properties native (#40233)
* Factor out the scalar bit array index mechanism

* Implement native numeric scalar properties

* Implement native scalar name aliases

* Implement native scalar mappings

* Implement native scalar names

* Implement native scalar age

* Implement native scalar general category

* Address Michael's and others comments

fix special mappings

fix bug
2021-11-30 12:40:32 -08:00
Alejandro Alonso 3b402f0179 [stdlib] Implement native Unicode.Scalar binary properties (#39597)
* Generate Unicode data for Scalar Binary Properties

* Use native scalar binary property lookup

* Add _BinaryProperties to Scalar Properties

narrow access control

* Upgrade the notice to a warning in UnicodeScalarProperties
2021-11-15 15:20:46 -08:00
Alejandro Alonso 5a0bbb9f89 [stdlib] Implement native grapheme breaking for String (#37864)
* Implement GraphemeWalker that does native grapheme breaking

* Bridged strings use native grapheme breaking for forward strides

* Implement bidirectional native grapheme breaking for native and foreign strings

* Remove ICU's grapheme breaking support

* Use UnicodeScalarView to implement GraphemeWalker

use an Iterator approach

remove Iterator conformance

* Incorporate Michael's feedback

more comments addressed

fix crlf bug

* Try bringing back some old fast paths

* Parameterize nextBoundary and previousBoundary

Parameterize nextBoundary and previousBoundary

* Implement Michael's suggestions
2021-11-01 16:52:28 -07:00
Alejandro Alonso 9b25a2d02b Add a Unicode normalization data generator 2021-09-29 14:20:21 -07:00
Alejandro Alonso b189084f4f [utils] Add a Unicode data generator util package (#39213)
* Add a Unicode data generator util package

* Add a common GenUtils library

* Use string methods for reading/writing files
2021-09-09 15:47:37 -07:00