Spec-Zone.ru › Dart 2

dart:core

Метод decodeQueryComponent

String decodeQueryComponent(
  1. String encodedComponent,
  2. {Encoding encoding = utf8}
)

Декодирует кодировку процентов в encodedComponent, преобразуя плюсы в пробелы.

Она создаст список байтов из декодированных символов, а затем использует encoding для декодирования списка байтов в строку. По умолчанию используется кодировка UTF-8.

Реализация

static String decodeQueryComponent(String encodedComponent,
    {Encoding encoding = utf8}) {
  return _Uri._uriDecode(
      encodedComponent, 0, encodedComponent.length, encoding, true);
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/Uri/decodeQueryComponent.html

Spec-Zone.ru

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