Documentation

UnicodeFormat.UTF32

UTF-32 #

Each code point is a single code unit. A code unit that is a surrogate in D800–DFFF or above 10FFFF is ill-formed.

Decoding uses the decoder of UTF32.decodeIter. decode reports the position of the first ill-formed code unit, as an index in the slice.

The UTF-32 code unit of c, as a one-element array.

Instances For

    The UTF-32 encoding of s.

    Instances For

      Decodes the UTF-32 code units of s, or returns an error with the index in s of the first code unit that is not a scalar value.

      Instances For

        Decodes the UTF-32 code units of s, or returns none if s has a code unit that is not a Unicode scalar value.

        Instances For

          Decodes the UTF-32 code units of s, panicking if s has a code unit that is not a Unicode scalar value.

          Instances For

            Decodes the UTF-32 code units of s, replacing each code unit that is not a Unicode scalar value with U+FFFD.

            Instances For

              Whether s is well-formed UTF-32, that is, every code unit is a Unicode scalar value.

              Instances For