Spec-Zone.ru › Dart 1

dart:core

Свойство uri

Uri uri

The Uri to which this UriData provides access.

Returns a Uri with scheme data and the remaining data URI data as path.

Исходный код

Uri get uri {
  if (_uriCache != null) return _uriCache;
  String path = _text;
  String query = null;
  int colonIndex = _separatorIndices[0];
  int queryIndex = _text.indexOf('?', colonIndex + 1);
  int end = _text.length;
  if (queryIndex >= 0) {
    query = _Uri._normalizeOrSubstring(
        _text, queryIndex + 1, end, _Uri._queryCharTable);
    end = queryIndex;
  }
  path = _Uri._normalizeOrSubstring(
      _text, colonIndex + 1, end, _Uri._pathCharOrSlashTable);
  _uriCache = new _DataUri(this, path, query);
  return _uriCache;
}

© 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/UriData/uri.html

Spec-Zone.ru

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