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

Function lastChars

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

Source from the content-addressed store, hash-verified

193 return ""
194 }
195 runes := []rune(s)
196 if len(runes) <= n {
197 return s
198 }
199 return string(runes[:n])
200}
201
202func lastChars(s string, n int) string {
203 if n <= 0 {
204 return ""
205 }
206 runes := []rune(s)
207 if len(runes) <= n {

Callers 2

ClampToAbsoluteMaxFunction · 0.85
hardTruncateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected