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

Function isBroadSearchRoot

tools/builtin.go:1222–1232  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

1220 runes := utf16.Decode(u16)
1221 if len(data)%2 == 1 {
1222 runes = append(runes, '\ufffd')
1223 }
1224 return string(runes)
1225 }
1226 return string(bytes.ToValidUTF8(data, []byte("\ufffd")))
1227}
1228
1229func detectLineEndings(content string) string {
1230 sample := content
1231 if len(sample) > 4096 {
1232 sample = sample[:4096]
1233 }
1234 crlf := strings.Count(sample, "\r\n")
1235 lf := strings.Count(sample, "\n") - crlf

Callers 2

ValidateInputMethod · 0.85
ValidateInputMethod · 0.85

Calls 1

resolvePathBestEffortFunction · 0.85

Tested by

no test coverage detected