mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] String internal API review changes
I had to XFAIL test/ClangModules/cf.swift, which is failing for reasons I can't understand. <rdar://problem/16911496> Swift SVN r18071
This commit is contained in:
@@ -738,25 +738,6 @@ extension String {
|
||||
return _ns.hash
|
||||
}
|
||||
|
||||
// - (BOOL)hasPrefix:(NSString *)aString
|
||||
|
||||
/// \brief Returns a Boolean value that indicates whether a given
|
||||
/// string matches the beginning characters of the receiver.
|
||||
|
||||
func hasPrefix(aString: String) -> Bool {
|
||||
return _ns.hasPrefix(aString)
|
||||
}
|
||||
|
||||
// - (BOOL)hasSuffix:(NSString *)aString
|
||||
|
||||
/// \brief Returns a Boolean value that indicates whether a given
|
||||
/// string matches the ending characters of the receiver.
|
||||
|
||||
func hasSuffix(aString: String) -> Bool {
|
||||
return _ns.hasSuffix(aString)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Nothing to do here; already provided for String
|
||||
|
||||
@@ -1075,13 +1056,6 @@ extension String {
|
||||
return self.longLongValue
|
||||
}
|
||||
|
||||
// @property NSString * lowercaseString
|
||||
|
||||
/// \brief Returns lowercased representation of the receiver.
|
||||
var lowercaseString: String {
|
||||
return _ns.lowercaseString
|
||||
}
|
||||
|
||||
// - (NSString *)lowercaseStringWithLocale:(NSLocale *)locale
|
||||
|
||||
/// \brief Returns a version of the string with all letters
|
||||
@@ -1481,12 +1455,6 @@ extension String {
|
||||
return _ns.substringWithRange(aRange)
|
||||
}
|
||||
|
||||
// @property NSString* uppercaseString;
|
||||
|
||||
/// \brief Returns a uppercased representation of the receiver.
|
||||
var uppercaseString: String {
|
||||
return _ns.uppercaseString
|
||||
}
|
||||
|
||||
// - (NSString *)uppercaseStringWithLocale:(NSLocale *)locale
|
||||
|
||||
|
||||
Reference in New Issue
Block a user