No overview available.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 6.1+
Framework
- Foundation
Declaration
init(_ cocoaString: NSString)
No overview available.
SDKs
Framework
init(_ cocoaString: NSString)
func index(of: Character) -> String .Index?Returns the first index where the specified value appears in the collection.
init(string Interpolation: Default String Interpolation)Creates a new instance from an interpolated string literal.
init(string Literal: String)Creates an instance initialized to the given string value.
init(unicode Scalar Literal: String)Creates an instance initialized to the given value.
init(extended Grapheme Cluster Literal: String)Creates an instance initialized to the given value.
var custom Playground Quick Look: _Playground Quick LookA custom playground Quick Look for the String instance.
func with Contiguous Storage If Available<R>((Unsafe Buffer Pointer<Character>) -> R) -> R?Call body(p), where p is a pointer to the collection’s contiguous storage. If no such storage exists, it is first created. If the collection does not support an internal representation in a form of contiguous storage, body is not called and nil is returned.