Spec-Zone.ru › Dart 1

dart:core

Метод decodeQueryComponent

String decodeQueryComponent(String encodedComponent, { 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 Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-core/Uri/decodeQueryComponent.html

Spec-Zone.ru

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