MCPcopy Create free account
hub / github.com/cel-expr/cel-go / countRemainingCodePoints

Function countRemainingCodePoints

common/runes/buffer.go:150–157  ·  view source on GitHub ↗
(data string, idx int, count int)

Source from the content-addressed store, hash-verified

148}
149
150func countRemainingCodePoints(data string, idx int, count int) int {
151 for idx < len(data) {
152 _, s := utf8.DecodeRuneInString(data[idx:])
153 idx += s
154 count++
155 }
156 return count
157}
158
159func newBufferWithLimit(data string, lines bool, limit int) (Buffer, []int32, error) {
160 if len(data) == 0 {

Callers 1

newBufferWithLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected