@@ -122,7 +122,8 @@ internal func _decodeSurrogatePair(
122
122
123
123
internal func _hasNormalizationBoundary( before cu: UInt16 ) -> Bool {
124
124
guard !_isSurrogate( cu) else { return false }
125
- return UnicodeScalar ( _unchecked: UInt32 ( cu) ) . _hasNormalizationBoundaryBefore
125
+ return UnicodeScalar (
126
+ _unchecked: UInt32 ( cu) ) . properties. hasNormalizationBoundaryBefore
126
127
}
127
128
128
129
//
@@ -698,10 +699,10 @@ private struct _UnicodeScalarExceptions {
698
699
guard let scalar = UnicodeScalar ( rawValue) else { continue }
699
700
700
701
// Fast path: skip unassigned code points
701
- guard scalar. _isDefined else { continue }
702
+ guard scalar. properties . isDefined else { continue }
702
703
703
704
// Fast path: skip unless QC_FCD=no
704
- if _fastPath ( !scalar. _hasFullCompExclusion ) {
705
+ if _fastPath ( !scalar. properties . isFullCompositionExclusion ) {
705
706
continue
706
707
}
707
708
@@ -717,8 +718,10 @@ private struct _UnicodeScalarExceptions {
717
718
var i = 0
718
719
while i < length {
719
720
let ( innerScalar, nextI) = _parseRawScalar ( & outBuffer, startingFrom: i)
720
- if _slowPath ( i != 0 && innerScalar. _hasNormalizationBoundaryBefore) {
721
- guard innerScalar. _hasNormalizationBoundaryBefore else {
721
+ if _slowPath (
722
+ i != 0 && innerScalar. properties. hasNormalizationBoundaryBefore
723
+ ) {
724
+ guard innerScalar. properties. hasNormalizationBoundaryBefore else {
722
725
fatalError (
723
726
" Unicode invariant violated: non-starter multi-segment expander " )
724
727
}
@@ -892,7 +895,7 @@ extension _UnmanagedString where CodeUnit == UInt16 {
892
895
var ( _, segmentEndIdx) = self . _parseRawScalar ( startingFrom: idx)
893
896
while segmentEndIdx < count {
894
897
let ( scalar, nextIdx) = self . _parseRawScalar ( startingFrom: segmentEndIdx)
895
- if scalar. _hasNormalizationBoundaryBefore {
898
+ if scalar. properties . hasNormalizationBoundaryBefore {
896
899
break
897
900
}
898
901
segmentEndIdx = nextIdx
@@ -910,7 +913,7 @@ extension _UnmanagedString where CodeUnit == UInt16 {
910
913
while idx > 0 {
911
914
let ( scalar, priorIdx) = _reverseParseRawScalar ( endingAt: idx)
912
915
idx = priorIdx
913
- if scalar. _hasNormalizationBoundaryBefore {
916
+ if scalar. properties . hasNormalizationBoundaryBefore {
914
917
break
915
918
}
916
919
}
@@ -936,7 +939,8 @@ extension _UnmanagedString where CodeUnit == UInt16 {
936
939
}
937
940
938
941
// Check current scalar
939
- if self . _parseRawScalar ( startingFrom: idx) . 0 . _hasNormalizationBoundaryBefore {
942
+ let currentScalar = self . _parseRawScalar ( startingFrom: idx) . 0
943
+ if currentScalar. properties. hasNormalizationBoundaryBefore {
940
944
return ( idx, segmentEnd)
941
945
}
942
946
0 commit comments