struct
String.UTF8View
Inheritance |
CollectionType, DebugPrintable, Printable, Reflectable, SequenceType, _CollectionType, _SequenceType, _Sequence_Type
View Protocol Hierarchy →
|
---|---|
Associated Types |
Type alias inferred.
Type alias inferred.
Type alias inferred.
Type alias inferred. |
Nested Types | String.UTF8View.Index |
Import |
|
Instance Variables
Declaration
var
debugDescription
:
String
{
get
}
Declaration
var
description
:
String
{
get
}
The "past the end" position.
endIndex
is not a valid argument to subscript
, and is always
reachable from startIndex
by zero or more applications of
successor()
.
Declaration
var
endIndex
:
String.UTF8View.Index
{
get
}
The position of the first code unit if the String
is
non-empty; identical to endIndex
otherwise.
Declaration
var
startIndex
:
String.UTF8View.Index
{
get
}
Subscripts
Declaration
subscript
(
position
:
String.UTF8View.Index
) -
>
CodeUnit
{
get
}
Declaration
subscript
(
subRange
:
Range
<
String.UTF8View.Index
>
) -
>
String.UTF8View
{
get
}
Instance Methods
Return a generator over the code points that comprise this sequence.
Complexity: O(1)
Declaration
func
generate
() -
>
IndexingGenerator
<
String.UTF8View
>
A collection of UTF-8 code units that encodes a
String
value.