mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make emoji properties Darwin only.
Ubuntu 16.04 doesn't have a recent enough ICU to support these; we need a better long-term solution, such as bundling ICU with the toolchain.
This commit is contained in:
@@ -581,6 +581,12 @@ extension Unicode.Scalar.Properties {
|
||||
return _hasBinaryProperty(__swift_stdlib_UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED)
|
||||
}
|
||||
|
||||
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
|
||||
// FIXME: These properties were introduced in ICU 57, but Ubuntu 16.04 comes
|
||||
// with ICU 55 so the values won't be correct there. Exclude them on
|
||||
// non-Darwin platforms for now; bundling ICU with the toolchain would resolve
|
||||
// this and other inconsistencies (https://bugs.swift.org/browse/SR-6076).
|
||||
|
||||
/// A Boolean property indicating whether the scalar has an emoji
|
||||
/// presentation, whether or not it is the default.
|
||||
///
|
||||
@@ -656,6 +662,7 @@ extension Unicode.Scalar.Properties {
|
||||
public var isEmojiModifierBase: Bool {
|
||||
return _hasBinaryProperty(__swift_stdlib_UCHAR_EMOJI_MODIFIER_BASE)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/// Case mapping properties.
|
||||
|
||||
Reference in New Issue
Block a user