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>
79 lines
2.0 KiB
Markdown
79 lines
2.0 KiB
Markdown
# ``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/<=(_:_:)-1ihf``
|
||
- ``Swift/Character/>(_:_:)-24u5o``
|
||
- ``Swift/Character/>=(_:_:)-8lyhz``
|
||
|
||
### Working with a Character’s Unicode Values
|
||
|
||
- ``Swift/Character/init(_:)-8hq6x``
|
||
- ``Swift/Character/unicodeScalars``
|
||
- ``Swift/Character/UnicodeScalarView``
|
||
- ``Swift/Character/isASCII``
|
||
- ``Swift/Character/asciiValue``
|
||
|
||
### Inspecting a Character
|
||
|
||
- ``Swift/Character/isLetter``
|
||
- ``Swift/Character/isPunctuation``
|
||
- ``Swift/Character/isNewline``
|
||
- ``Swift/Character/isWhitespace``
|
||
- ``Swift/Character/isSymbol``
|
||
- ``Swift/Character/isMathSymbol``
|
||
- ``Swift/Character/isCurrencySymbol``
|
||
|
||
### Checking a Character’s Case
|
||
|
||
- ``Swift/Character/isCased``
|
||
- ``Swift/Character/isUppercase``
|
||
- ``Swift/Character/uppercased()``
|
||
- ``Swift/Character/isLowercase``
|
||
- ``Swift/Character/lowercased()``
|
||
|
||
### Checking a Character’s Numeric Properties
|
||
|
||
- ``Swift/Character/isNumber``
|
||
- ``Swift/Character/isWholeNumber``
|
||
- ``Swift/Character/wholeNumberValue``
|
||
- ``Swift/Character/isHexDigit``
|
||
- ``Swift/Character/hexDigitValue``
|
||
|
||
### Creating a Range Expression
|
||
|
||
- ``Swift/Character/..<(_:_:)``
|
||
- ``Swift/Character/...(_:_:)``
|
||
- ``Swift/Character/..<(_:)``
|
||
- ``Swift/Character/...(_:)-4mm4x``
|
||
- ``Swift/Character/...(_:)-6ct59``
|
||
|
||
### Describing a Character
|
||
|
||
- ``Swift/Character/description``
|
||
- ``Swift/Character/debugDescription``
|
||
- ``Swift/Character/customMirror``
|
||
- ``Swift/Character/customPlaygroundQuickLook``
|
||
- ``Swift/Character/hash(into:)``
|
||
|
||
### Infrequently Used Functionality
|
||
|
||
- ``Swift/Character/init(extendedGraphemeClusterLiteral:)``
|
||
- ``Swift/Character/init(unicodeScalarLiteral:)``
|