Spec-Zone.ru › Dart 2

dart:convert

Класс Utf8Codec

Utf8Codec кодирует строки в кодовые единицы UTF-8 (байты) и декодирует кодовые единицы UTF-8 в строки.

Наследование
  • Object
  • Codec<String, List<int>>
  • Encoding
  • Utf8Codec

Конструкторы

Utf8Codec({bool allowMalformed = false})
const
Создаёт экземпляр Utf8Codec.

Свойства

decoder → Utf8Decoder
read-onlyoverride
Возвращает декодер this, преобразующий List<int> в String.
encoder → Utf8Encoder
read-onlyoverride
Возвращает кодировщик, преобразующий String в List<int>.
hashCode → int
read-onlyinherited
Хеш-код этого объекта.
inverted → Codec<List<int>, String>
read-onlyinherited
Инвертирует this.
name → String
read-onlyoverride
Имя этого кодека — "utf-8".
runtimeType → Type
read-onlyinherited
Представление типа объекта во время выполнения.

Методы

decode(List<int> codeUnits, {bool? allowMalformed}) → String
override
Декодирует UTF-8 codeUnits (список беззнаковых 8-битных целых чисел) в соответствующую строку.
decodeStream(Stream<List<int>> byteStream) → Future<String>
inherited
encode(String input) → List<int>
inherited
Кодирует input.
fuse<R>(Codec<List<int>, R> other) → Codec<String, R>
inherited
Объединяет this с other.
noSuchMethod(Invocation invocation) → dynamic
inherited
Вызывается при обращении к несуществующему методу или свойству.
toString() → String
inherited
Строковое представление этого объекта.

Операторы

operator ==(Object other) → bool
inherited
Оператор равенства.

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-convert/Utf8Codec-class.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API