[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

@@ -208,9 +208,11 @@ println("so < tocks => \(so < tocks)")
// CHECK-NEXT: true
println("sox < tocks => \(sox < tocks)")
let qqq = nonASCIILiteral.hasPrefix("🏂☃")
let rrr = nonASCIILiteral.hasPrefix("")
let zz = (
nonASCIILiteral.startsWith("🏂☃"), nonASCIILiteral.startsWith(""),
nonASCIILiteral.endsWith("⛄️❄️"), nonASCIILiteral.endsWith(""))
nonASCIILiteral.hasPrefix("🏂☃"), nonASCIILiteral.hasPrefix(""),
nonASCIILiteral.hasSuffix("⛄️❄️"), nonASCIILiteral.hasSuffix(""))
// CHECK-NEXT: <true, false, true, false>
println("<\(zz.0), \(zz.1), \(zz.2), \(zz.3)>")