MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / firstChars

Function firstChars

tools/budget.go:184–193  ·  view source on GitHub ↗
(s string, n int)

Source from the content-addressed store, hash-verified

182 return s
183 }
184 return ""
185}
186
187func charLen(s string) int {
188 return len([]rune(s))
189}
190
191func firstChars(s string, n int) string {
192 if n <= 0 {
193 return ""
194 }
195 runes := []rune(s)
196 if len(runes) <= n {

Callers 5

ClampToAbsoluteMaxFunction · 0.85
hardTruncateFunction · 0.85
truncateAggregateContentFunction · 0.85
executeBackgroundMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected