-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from LiveUI/5.2
FontAwesome 5.2
- Loading branch information
Showing
8 changed files
with
460 additions
and
103 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,78 @@ | ||
import Foundation | ||
|
||
extension Substring { | ||
func firstUppercased() -> Substring { | ||
return prefix(1).uppercased() + dropFirst() | ||
} | ||
func firstUppercased() -> Substring { | ||
return prefix(1).uppercased() + dropFirst() | ||
} | ||
} | ||
|
||
extension String { | ||
|
||
func firstUppercased() -> String { | ||
return prefix(1).uppercased() + dropFirst() | ||
} | ||
|
||
var isKeyword: Bool { | ||
switch self { | ||
case | ||
"associativity", | ||
"break", | ||
"case", | ||
"catch", | ||
"class", | ||
"continue", | ||
"convenience", | ||
"default", | ||
"deinit", | ||
"didSet", | ||
"do", | ||
"else", | ||
"enum", | ||
"extension", | ||
"fallthrough", | ||
"false", | ||
"final", | ||
"for", | ||
"func", | ||
"get", | ||
"guard", | ||
"if", | ||
"in", | ||
"infix", | ||
"init", | ||
"inout", | ||
"internal", | ||
"lazy", | ||
"let", | ||
"mutating", | ||
"nil", | ||
"operator", | ||
"override", | ||
"postfix", | ||
"precedence", | ||
"prefix", | ||
"private", | ||
"public", | ||
"repeat", | ||
"required", | ||
"return", | ||
"self", | ||
"set", | ||
"static", | ||
"struct", | ||
"subscript", | ||
"super", | ||
"switch", | ||
"throws", | ||
"true", | ||
"try", | ||
"var", | ||
"weak", | ||
"where", | ||
"while", | ||
"willSet": | ||
return true | ||
default: | ||
return false | ||
} | ||
} | ||
func firstUppercased() -> String { | ||
return prefix(1).uppercased() + dropFirst() | ||
} | ||
|
||
var isKeyword: Bool { | ||
switch self { | ||
case | ||
"associativity", | ||
"break", | ||
"case", | ||
"catch", | ||
"class", | ||
"continue", | ||
"convenience", | ||
"default", | ||
"deinit", | ||
"didSet", | ||
"do", | ||
"else", | ||
"enum", | ||
"extension", | ||
"fallthrough", | ||
"false", | ||
"final", | ||
"for", | ||
"func", | ||
"get", | ||
"guard", | ||
"if", | ||
"in", | ||
"infix", | ||
"init", | ||
"inout", | ||
"internal", | ||
"lazy", | ||
"let", | ||
"mutating", | ||
"nil", | ||
"operator", | ||
"override", | ||
"postfix", | ||
"precedence", | ||
"prefix", | ||
"private", | ||
"public", | ||
"repeat", | ||
"required", | ||
"return", | ||
"self", | ||
"set", | ||
"static", | ||
"struct", | ||
"subscript", | ||
"super", | ||
"switch", | ||
"throws", | ||
"true", | ||
"try", | ||
"var", | ||
"weak", | ||
"where", | ||
"while", | ||
"willSet": | ||
return true | ||
default: | ||
return false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters