Protocol names end in "Type," "ible," or "able"

Mechanically add "Type" to the end of any protocol names that don't end
in "Type," "ible," or "able."  Also, drop "Type" from the end of any
associated type names, except for those of the *LiteralConvertible
protocols.

There are obvious improvements to make in some of these names, which can
be handled with separate commits.

Fixes <rdar://problem/17165920> Protocols `Integer` etc should get
uglier names.

Swift SVN r19883
This commit is contained in:
Dave Abrahams
2014-07-12 17:29:57 +00:00
parent dff53defae
commit 6d1095f44e
201 changed files with 1658 additions and 1582 deletions

View File

@@ -652,7 +652,7 @@ NSStringAPIs.test("init(format:_:...)") {
NSStringAPIs.test("init(format:arguments:)") {
let world: NSString = "world"
let args: [CVarArg] = [ world, 42 ]
let args: [CVarArgType] = [ world, 42 ]
expectEqual("Hello, world!%42",
String(format: "Hello, %@!%%%ld", arguments: args))
}
@@ -667,7 +667,7 @@ NSStringAPIs.test("init(format:locale:_:...)") {
NSStringAPIs.test("init(format:locale:arguments:)") {
let world: NSString = "world"
let args: [CVarArg] = [ world, 42 ]
let args: [CVarArgType] = [ world, 42 ]
expectEqual("Hello, world!%42", String(format: "Hello, %@!%%%ld",
locale: nil, arguments: args))
expectEqual("Hello, world!%42", String(format: "Hello, %@!%%%ld",