14 Commits

Author SHA1 Message Date
Jeremy Schonfeld
da80d51fa3
(134376602) Change @_nonSendable to unavailable extensions (#892) 2024-09-03 10:46:46 -07:00
Tony Parker
caa08cf226
Enable complete concurrency checking in Foundation 2024-06-04 10:41:59 -07:00
Charles Hu
2a8e9438ec
Upgrade FoundationICU to 0.0.7 (#645) 2024-05-31 13:50:07 -07:00
Takumi Muraishi
60691c5699
(127126788) Fix some typos (#552)
* fix typos

* fix typo minimum

* fix typos

* fix typos in test
2024-04-26 13:28:03 -07:00
jacoblukas
787b17380e
Add support for notation to currency format styles (#449) 2024-04-02 16:17:50 -07:00
Jeremy Schonfeld
e5211f2926
(122981400) Standardize on using internal import 2024-03-06 13:42:02 -08:00
Joey
32bf8bc848
Documentation - Consistency Fixes (#187)
* Documentation for attributed string's number formatting.

* Documentation - Typos & Consistency Fixes
2023-06-29 10:55:29 -07:00
Charles Hu
46da6ae60f
Upgrade swift-foundation-icu to avoid package resources (#173) 2023-06-09 10:56:29 -07:00
Tina Liu
7348693927
FoundationPreview: Stop relying on CharacterSet for trimming whitespace (#145)
* Generalize trimming function to take a predicate block. Move this function to FoundationEssentials.

* Call `_trimmingWhitespaces()` instead of through CharacterSet.

* Review feedback: rename the function to whitespace from whitespaces

* Add tests

* Standarize whitespacing and remove spaces in empty line
2023-05-26 13:11:35 -07:00
Tina Liu
40f73336df
Zero in "0 byte" displays like latn "O" in Chinese simplified. (#144)
* Zero in "0 byte" displays like latn "O" in Chinese simplified.

Only a small number of languages prefer spelling out number in this context according to localization team. Chinese wasn't one of those, hence this bug. Fix it by hard-coding a list of language codes where we should format number 0 as a spellout number.

Also were using a rule-based number formatter to format number 0 into spellout "Zero", which defaults to an ordinal number. That default rule was incorrect. The number should be formatted as a cardinal number instead.

* Review feedback: condense switch cases
2023-05-26 09:34:06 -07:00
Saleem Abdulrasool
971ce3c8ab
Foundationinternationalization: add Codable conformance
Add the missing conformance for `Codable` to Windows.  This fixes a
large set of warnings when building the package.
2023-05-18 09:30:57 -07:00
Jeremy Schonfeld
9c72d351d2
(105902981) Replace @_implementationOnly imports with package imports in FoundationPreview (#109) 2023-05-12 11:36:10 -07:00
Charles Hu
0ac5999256
rdar://107847458 (Fix FoundationPreview CalendarTests on Linux) (#36) 2023-04-18 13:59:56 -07:00
Charles Hu
2095f3cf69 rdar://107533913 (Move FormatStyles to FoundationPreview) 2023-04-10 17:18:23 -07:00