From 691855a60fca67d1176bbca0871ce9beb9170bbb Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 14 Oct 2025 09:50:14 -0700 Subject: [PATCH] Bring back _isUTF16TrailingSurrogate --- Sources/RopeModule/BigString/Basics/BigString+Index.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/RopeModule/BigString/Basics/BigString+Index.swift b/Sources/RopeModule/BigString/Basics/BigString+Index.swift index 1b17ba1c..99e2a4ba 100644 --- a/Sources/RopeModule/BigString/Basics/BigString+Index.swift +++ b/Sources/RopeModule/BigString/Basics/BigString+Index.swift @@ -106,6 +106,10 @@ extension BigString.Index { _flags = 0 } + public var _isUTF16TrailingSurrogate: Bool { + _orderingValue & 1 != 0 + } + internal func _knownScalarAligned() -> Self { var copy = self copy._chunkIndex = _chunkIndex.scalarAligned