StringLines

typeStringLines

A view into a string indexed by lines.

functionget(self: StringLines, idx: u64) Option[char]

Get the nth line in this string.

functionlen(self: StringLines) u64

Get the number of lines in this string.

functionlist(self: StringLines) List[String]

Get a list of lines.

functionslice(self: StringLines, start: u64, end: u64) Option[String]

Slice this string by lines.

The line at index end is not included in the returned string.

This method returns None if either start or end is out of bounds or if start is greater than end.