logicalrow

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(text string) int

Count returns the number of targetable logical lines in text.

Types

type Line

type Line struct {
	Start      int
	ContentEnd int
	End        int
}

Line identifies one logical line using UTF-8 byte offsets. End includes the line terminator, while ContentEnd excludes it.

func At

func At(text string, number int) (Line, bool)

At returns one positive one-based logical line without allocating the complete line table.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL