lscl.utils – Miscellaneous utilities

pydantic model lscl.utils.Runk

Bases: BaseModel

Ronald’s universal number kounter.

This counts lines, columns and offsets.

Fields:
field column: int = 1

Column number, counting from 1.

field line: int = 1

Line number, counting from 1.

field offset: int = 0

Offset in the string, counting from 0.

count(raw: str, /) None

Add a string to the count.

Parameters:

raw (str) – Raw string to take into account.

Return type:

None