String
-
Undocumented
-
Replace the first
limitoccurrences of oldString with newString.Declaration
Swift
public func replace (oldString: String, _ newString: String, limit: Int) -> String -
Undocumented
-
Undocumented
-
Undocumented
-
A lazy sequence of the ranges of
findstringin this string.Declaration
Swift
public func findAll (findstring: String) -> SequenceOf<Range<String.Index>> -
Split the string at the first occurrence of separator, and return a 3-tuple containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return a 3-tuple containing the string itself, followed by two empty strings.
Declaration
Swift
public func partition (separator: String) -> (String, String, String)
View on GitHub
String Extension Reference