def line_end

bend-lint-api@0.2.0.0 · shared/strings.bend:46

import bend-lint-api@0.2.0.0/shared/strings.bend as Strings
import Base

46# Where the line of `text` that starts at `beg` ends: after its newline, or at the end of the text.
47def line_end(text: String, +beg: U32) -> U32:
48  line_end.go(String.drop(text, U32.to_nat(beg)), beg)

Uses (5)

Used by (2)