Spec-Zone.ru › Dart 2

dart:core

currentAsString property

String currentAsString

Строка, содержащая текущую кодовую точку.

Для кодовых точек за пределами основной многоязычной плоскости это будет строка String длиной 2, содержащая две кодовые единицы.

Возвращает пустую строку, если значение current отсутствует.

Реализация

String get currentAsString {
  if (_position == _nextPosition) return "";
  if (_position + 1 == _nextPosition) return string[_position];
  return string.substring(_position, _nextPosition);
}

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

Spec-Zone.ru

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