mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When a substring gets bridged to NSString, it loses the initial offset, therefore APIs that accept or return StringIndex ranges should handle this case explicitly by adding/subtracting the substring start offset. Fixes <rdar://problem/33873277>
4.6 KiB
4.6 KiB