mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] String API Review: hide "split" and "lines"
Swift SVN r18514
This commit is contained in:
@@ -41,11 +41,11 @@ extension String {
|
||||
input: Repeat(count: count, repeatedValue: c.value))
|
||||
}
|
||||
|
||||
var lines : String[] {
|
||||
return split("\n")
|
||||
var _lines : String[] {
|
||||
return _split("\n")
|
||||
}
|
||||
|
||||
func split(separator: UnicodeScalar) -> String[] {
|
||||
func _split(separator: UnicodeScalar) -> String[] {
|
||||
var scalarSlices = Swift.split(unicodeScalars, { $0 == separator })
|
||||
return scalarSlices.map { $0 as String }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user