Instance Propertyswift 6.0.1Swift

    isContiguousUTF8

    Returns whether this string is capable of providing access to validly-encoded UTF-8 contents in contiguous memory in O(1) time.

    var isContiguousUTF8: Bool { get }

    Contiguous strings always operate in O(1) time for withUTF8 and always give a result for String.UTF8View.withContiguousStorageIfAvailable. Contiguous strings also benefit from fast-paths and better optimizations.

    Other members in extension

    Types

    Typealiases

    Show obsolete interfaces (2)

    Hide obsolete interfaces

    Type members

    Show obsolete interfaces (17)

    Hide obsolete interfaces

    Instance members

    Show obsolete interfaces (3)

    Hide obsolete interfaces