Commit c2909c5e authored by Johannes Schriewer's avatar Johannes Schriewer

Seems foundation tries at least to implement something now

parent 2b9ab92d
Pipeline #1136 passed with stage
......@@ -24,10 +24,6 @@ extension String {
#endif
}
#if os(Linux)
public func stringByReplacingOccurrencesOfString(target: String, withString replacement: String) -> String {
return self.bridge().stringByReplacingOccurrencesOfString(target, withString: replacement)
}
public func subStringWithRange(range: Range<String.Index>) -> String {
var result = ""
result.reserveCapacity(range.count)
......@@ -36,7 +32,7 @@ extension String {
}
return result
}
public func substringToIndex(index: Int) -> String {
return self.subStringWithRange(self.startIndex..<self.startIndex.advancedBy(index))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment