Strings and Characters

suggest change

Syntax

Remarks

A String is a collection of characters (extended grapheme clusters). A character can contain more than one Unicode scalar. Strings can hold any Unicode text, including languages other than English and emoji.

Because two scalars could combine to form a single character, the number of scalars in a String is not necessarily always the same as the number of characters.

For more information about Strings, see The Swift Programming Language and the String Structure Reference.

For implementation details, see “Swift String Design”

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents