MCPcopy Create free account
hub / github.com/Binject/debug / PathToPrefix

Function PathToPrefix

goobj2/internal/objabi/objabi.go:622–649  ·  view source on GitHub ↗

PathToPrefix converts raw string to the prefix that will be used in the symbol table. All control characters, space, '%' and '"', as well as non-7-bit clean bytes turn into %xx. The period needs escaping only in the last segment of the path, and it makes for happier users if we escape that as little

(s string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

initMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…