MCPcopy Create free account
hub / github.com/codehamr/codehamr / countLines

Function countLines

internal/tui/prompt.go:210–216  ·  view source on GitHub ↗

countLines returns a paste's visual line count. Terminals disagree on separators (\n unix, \r old-mac, \r\n Windows); max of the \n and \r counts handles all three without double-counting \r\n.

(s string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

shouldChipFunction · 0.85
insertChipMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected