Spec-Zone.ru › Dart 2

dart:convert

split статический метод

Iterable<String> split(
  1. String lines,
  2. [int start = 0,
  3. int? end]
)

Разбить lines на отдельные строки.

Если указаны start и end, разбивается только содержимое lines.substring(start, end). Значения start и end должны задавать допустимый поддиапазон lines (0 <= start <= end <= lines.length).

Реализация

static Iterable<String> split(String lines, [int start = 0, int? end]) {
  end = RangeError.checkValidRange(start, end, lines.length);
  return _LineSplitIterable(lines, start, end);
}

© 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/LineSplitter/split.html

Spec-Zone.ru

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