mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Update the stdlib to use Unicode 15 data
This commit is contained in:
@@ -24,7 +24,7 @@ __swift_uint8_t _swift_stdlib_getWordBreakProperty(__swift_uint32_t scalar) {
|
||||
swift::swift_abortDisabledUnicodeSupport();
|
||||
#else
|
||||
auto low = 0;
|
||||
auto high = 1086 - 1;
|
||||
auto high = WORD_BREAK_DATA_COUNT - 1;
|
||||
|
||||
while (high >= low) {
|
||||
auto idx = low + (high - low) / 2;
|
||||
@@ -52,8 +52,8 @@ __swift_uint8_t _swift_stdlib_getWordBreakProperty(__swift_uint32_t scalar) {
|
||||
}
|
||||
}
|
||||
|
||||
// If we made it out here, then our scalar was not found in the grapheme
|
||||
// array (this occurs when a scalar doesn't map to any grapheme break
|
||||
// If we made it out here, then our scalar was not found in the word
|
||||
// array (this occurs when a scalar doesn't map to any word break
|
||||
// property). Return the max value here to indicate .any.
|
||||
return std::numeric_limits<__swift_uint8_t>::max();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user