Files
Graham Lee 9ead8781d4 Add .docc catalog to publish stdlib docs on swift.org
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>
2026-04-10 10:04:56 -04:00

2.0 KiB
Raw Permalink Blame History

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 Characters 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 Characters Case

  • Swift/Character/isCased
  • Swift/Character/isUppercase
  • Swift/Character/uppercased()
  • Swift/Character/isLowercase
  • Swift/Character/lowercased()

Checking a Characters 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:)