def line_start

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

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

33# Where the line of `text` that holds the offset `at` starts: after the last newline before it.
34def line_start(text: String, +at: U32) -> U32:
35  line_start.go(text, 0, at, 0, U32.is_lt(0, at))

Uses (4)

Used by (2)