mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
9ead8781d4
Co-authored-by: Alex Martini <amartini@apple.com> Co-authored-by: Graham Lee <glee23@apple.com> Co-authored-by: Chris Adamson <cadamson@apple.com> Co-authored-by: Kirby Turner <kirby_turner@apple.com> Co-authored-by: Paris Pinkney <ppinkney@apple.com> Co-authored-by: Dave Spector <dspector@apple.com> Co-authored-by: Sofia Rodriguez Morales <sofia_rodriguez@apple.com> Co-authored-by: Ethan Kusters <ekusters@apple.com> Co-authored-by: Goli Mohammadi <g_mohammadi@apple.com> Co-authored-by: Adora Vaz <a_vaz@apple.com> Co-authored-by: David Rönnqvist <ronnqvist@apple.com> Co-authored-by: Nate Merseth Cook <natecook@apple.com> Co-authored-by: Susan Conant <susan_c@apple.com>
2.0 KiB
2.0 KiB
Swift/Character
Topics
Creating a Character
In addition to creating a character from a single-character string literal, you can also convert a unicode scalar value or single-character string.
Swift/Character/init(_:)-6o1aq
Writing to a Text Stream
Swift/Character/write(to:)
Comparing Characters
Swift/Character/==(_:_:)Swift/Character/!=(_:_:)Swift/Character/<=(_:_:)Swift/Character/<=(_:_:)-1ihfSwift/Character/>(_:_:)-24u5oSwift/Character/>=(_:_:)-8lyhz
Working with a Character’s Unicode Values
Swift/Character/init(_:)-8hq6xSwift/Character/unicodeScalarsSwift/Character/UnicodeScalarViewSwift/Character/isASCIISwift/Character/asciiValue
Inspecting a Character
Swift/Character/isLetterSwift/Character/isPunctuationSwift/Character/isNewlineSwift/Character/isWhitespaceSwift/Character/isSymbolSwift/Character/isMathSymbolSwift/Character/isCurrencySymbol
Checking a Character’s Case
Swift/Character/isCasedSwift/Character/isUppercaseSwift/Character/uppercased()Swift/Character/isLowercaseSwift/Character/lowercased()
Checking a Character’s Numeric Properties
Swift/Character/isNumberSwift/Character/isWholeNumberSwift/Character/wholeNumberValueSwift/Character/isHexDigitSwift/Character/hexDigitValue
Creating a Range Expression
Swift/Character/..<(_:_:)Swift/Character/...(_:_:)Swift/Character/..<(_:)Swift/Character/...(_:)-4mm4xSwift/Character/...(_:)-6ct59
Describing a Character
Swift/Character/descriptionSwift/Character/debugDescriptionSwift/Character/customMirrorSwift/Character/customPlaygroundQuickLookSwift/Character/hash(into:)
Infrequently Used Functionality
Swift/Character/init(extendedGraphemeClusterLiteral:)Swift/Character/init(unicodeScalarLiteral:)