MCPcopy Create free account
hub / github.com/IoLanguage/io / UArray_clipBeforeLastPathComponent

Function UArray_clipBeforeLastPathComponent

libs/basekit/source/UArray_path.c:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void UArray_clipBeforeLastPathComponent(UArray *self) {
38 long pos = UArray_findLastPathComponent(self);
39
40 if (pos != -1) {
41 UArray_removeRange(self, 0, pos);
42 }
43}
44
45long UArray_findLastPathComponent(const UArray *self) {
46 if (self->size) {

Callers

nothing calls this directly

Calls 2

UArray_removeRangeFunction · 0.85

Tested by

no test coverage detected