File tree Expand file tree Collapse file tree 2 files changed +2
-34
lines changed Expand file tree Collapse file tree 2 files changed +2
-34
lines changed Original file line number Diff line number Diff line change @@ -1479,36 +1479,6 @@ extension String : _NSBridgeable, _CFBridgeable {
1479
1479
internal var _cfObject : CFType { return _nsObject. _cfObject }
1480
1480
}
1481
1481
1482
- #if !(os(OSX) || os(iOS))
1483
- extension String {
1484
- public func hasPrefix( _ prefix: String ) -> Bool {
1485
- if prefix. isEmpty {
1486
- return true
1487
- }
1488
-
1489
- let cfstring = self . _cfObject
1490
- let range = CFRangeMake ( 0 , CFStringGetLength ( cfstring) )
1491
- let opts = CFStringCompareFlags (
1492
- kCFCompareAnchored | kCFCompareNonliteral)
1493
- return CFStringFindWithOptions ( cfstring, prefix. _cfObject,
1494
- range, opts, nil )
1495
- }
1496
-
1497
- public func hasSuffix( _ suffix: String ) -> Bool {
1498
- if suffix. isEmpty {
1499
- return true
1500
- }
1501
-
1502
- let cfstring = self . _cfObject
1503
- let range = CFRangeMake ( 0 , CFStringGetLength ( cfstring) )
1504
- let opts = CFStringCompareFlags (
1505
- kCFCompareAnchored | kCFCompareBackwards | kCFCompareNonliteral)
1506
- return CFStringFindWithOptions ( cfstring, suffix. _cfObject,
1507
- range, opts, nil )
1508
- }
1509
- }
1510
- #endif
1511
-
1512
1482
extension NSString : _StructTypeBridgeable {
1513
1483
public typealias _StructType = String
1514
1484
Original file line number Diff line number Diff line change @@ -1328,8 +1328,7 @@ let comparisonTests: [ComparisonTest] = [
1328
1328
1329
1329
// U+1F1E7 REGIONAL INDICATOR SYMBOL LETTER B
1330
1330
// \u{1F1E7}\u{1F1E7} Flag of Barbados
1331
- ComparisonTest ( " \u{1F1E7} " , " \u{1F1E7} \u{1F1E7} " ,
1332
- expectedFailure: " https://bugs.swift.org/browse/SR-367 " ) ,
1331
+ ComparisonTest ( " \u{1F1E7} " , " \u{1F1E7} \u{1F1E7} " ) ,
1333
1332
1334
1333
// Test that Unicode collation is performed in deterministic mode.
1335
1334
//
@@ -1344,8 +1343,7 @@ let comparisonTests: [ComparisonTest] = [
1344
1343
//
1345
1344
// U+0301 and U+0954 don't decompose in the canonical decomposition mapping.
1346
1345
// U+0341 has a canonical decomposition mapping of U+0301.
1347
- ComparisonTest ( " \u{0301} " , " \u{0341} " ,
1348
- expectedFailure: " https://bugs.swift.org/browse/SR-243 " ) ,
1346
+ ComparisonTest ( " \u{0301} " , " \u{0341} " ) ,
1349
1347
ComparisonTest ( " \u{0301} " , " \u{0954} " ) ,
1350
1348
ComparisonTest ( " \u{0341} " , " \u{0954} " ) ,
1351
1349
]
You can’t perform that action at this time.
0 commit comments