MCPcopy Create free account
hub / github.com/rsc/tmp / hasPathPrefix

Function hasPathPrefix

bootstrap/internal/obj/obj.go:108–133  ·  view source on GitHub ↗

Does s have t as a path prefix? That is, does s == t or does s begin with t followed by a slash? For portability, we allow ASCII case folding, so that hasPathPrefix("a/b/c", "A/B") is true. Similarly, we allow slash folding, so that hasPathPrefix("a/b/c", "a\\b") is true. We do not allow full Unicod

(s string, t string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

setFileMethod · 0.85

Calls 1

intFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…