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
endis not included in the returned string.This method returns
Noneif eitherstartorendis out of bounds or ifstartis greater thanend.