最終更新:2017-05-29 (月) 02:39:55 (2517d)  

Swift/String
Top / Swift / String

https://developer.apple.com/reference/swift/string

https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html

Nested Types

  • String.Encoding?
    String.CharacterView?A view of a string’s contents as a collection of characters.
    String.UnicodeScalarView?A view of a string’s contents as a collection of Unicode scalar values.
    String.UTF8View?A view of a string’s contents as a collection of UTF-8 code units.
    String.UTF16View?A view of a string’s contents as a collection of UTF-16 code units.

プロパティ

  • プロパティ
    String.CharacterView?String.characters?
    String.UnicodeScalarView?Srting.unicodeScalars?
    String.UTF8View?String.utf8?
    String.Index(typealias Index = String.CharacterView.Index?)Srting.startIndex?

メソッド

  • func substring(from: String.Index)
    func substring(to: String.Index)
    func substring(with: Range<String.Index>)

関連

  • Swift/Character?