[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:
Dave Abrahams
2014-05-14 14:18:52 +00:00
parent eb9c3a406d
commit a8bbc4c89b
14 changed files with 199 additions and 225 deletions

View File

@@ -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