Files
swift-mirror/validation-test/stdlib
Karoy Lorentey a3e517ed36 [stdlib] String: Fix forward implementation of grapheme breaking rule 11
Rule GB11 in Unicode Annex 29 is:

GB11: Extended_Pictographic Extend* ZWJ × Extended_Pictographic

However, our forward grapheme breaking state machine implements it as:

GB11: Extended_Pictographic Extend* ZWJ+ × Extended_Pictographic

We implement the correct rules when going backward, which can cause String values to have different counts whether we’re going forward or back.

The rule as implemented would be fine (Unicode doesn’t care much about the placement of grapheme breaks in invalid sequences), but the directional inconsistency messes with String’s Collection conformance.

rdar://104279671
2023-01-15 16:12:38 -08:00
..
2021-12-14 12:29:33 -08:00
2022-11-01 23:59:42 -07:00
2022-04-22 19:18:38 -07:00
2022-11-01 23:59:42 -07:00
2022-04-22 19:18:38 -07:00
2022-04-22 19:18:38 -07:00
2022-04-22 19:18:38 -07:00
2021-06-07 12:04:31 -07:00