MCPcopy Create free account
hub / github.com/corestoreio/pkg / segmentRoute

Function segmentRoute

config/route_trie.go:106–115  ·  view source on GitHub ↗

segmentRoute segments string key paths by slash separators. For example, "/a/b/c" -> ("/a", 2), ("/b", 4), ("/c", -1) in successive calls. It does not allocate any heap memory.

(path string, start int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

TestPathSegmenterFunction · 0.85
GetMethod · 0.85
processMethod · 0.85
trieGetNodeFunction · 0.85
DeleteEventMethod · 0.85
DeleteMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestPathSegmenterFunction · 0.68