Overview 概要
Do not declare new conformances to String
. Only the String
and Substring
types in the standard library are valid conforming types.
新しい準拠事項をString
に宣言しないでください。String
とSubstring
型だけが標準ライブラリにおいて有効な準拠する型です。
Availability
Technology
protocol StringProtocol where Self.Element
== Character
, Self.Index
== String
.Index
, Self.StringInterpolation
== DefaultStringInterpolation
, Self.SubSequence
: StringProtocol
Do not declare new conformances to String
. Only the String
and Substring
types in the standard library are valid conforming types.
新しい準拠事項をString
に宣言しないでください。String
とSubstring
型だけが標準ライブラリにおいて有効な準拠する型です。
init(cString : UnsafePointer<CChar>)
init<C, Encoding>(decoding: C, as: Encoding.Type)
init<Encoding>(decodingCString : UnsafePointer<Encoding.CodeUnit>, as: Encoding.Type)
func substring(from: Self.Index) -> String
Deprecated
非推奨
func substring(to: Self.Index) -> String
Deprecated
非推奨
func substring(with: Range<Self.Index>) -> String
Deprecated
非推奨
func withCString <Result>((UnsafePointer<CChar>) -> Result) -> Result
func withCString <Result, Encoding>(encodedAs : Encoding.Type, (UnsafePointer<Encoding.CodeUnit>) -> Result) -> Result
static func == <RHS>(Self, RHS) -> Bool
struct Substring
struct String.Index
struct String.UnicodeScalarView
struct String.UTF16View
struct String.UTF8View
struct String.Iterator