MCPcopy Create free account
hub / github.com/VKCOM/kphp / f$basename

Function f$basename

runtime-light/stdlib/file/file-system-functions.h:45–60  ·  view source on GitHub ↗

ATTENTION For some reason KPHP's implementation of basename works incorrectly for at least following cases: 1. basename(""); 2. basename("/"); This implementation works the same way as PHP. That means we can face with some problems during transition to K2

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 7

remove_suffixMethod · 0.80
substrMethod · 0.80
ends_withMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45
backMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected