mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib/String: change String.stringByAbbreviatingWithTildeInPath into a
property, to match recent Foundation headers Swift SVN r20674
This commit is contained in:
@@ -1147,12 +1147,12 @@ extension String {
|
||||
return _ns.smallestEncoding
|
||||
}
|
||||
|
||||
// - (NSString *)stringByAbbreviatingWithTildeInPath
|
||||
// @property NSString *stringByAbbreviatingWithTildeInPath;
|
||||
|
||||
/// Returns a new string that replaces the current home
|
||||
/// directory portion of the current path with a tilde (`~`)
|
||||
/// character.
|
||||
public func stringByAbbreviatingWithTildeInPath() -> String {
|
||||
public var stringByAbbreviatingWithTildeInPath: String {
|
||||
return _ns.stringByAbbreviatingWithTildeInPath
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user