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

Function UArray_clipBefore_

libs/basekit/source/UArray_string.c:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93// clipping
94
95BASEKIT_API int UArray_clipBefore_(UArray *self, const UArray *other) {
96 long index = UArray_find_(self, other);
97
98 if (index > -1) {
99 UArray_removeRange(self, 0, index);
100 return 1;
101 }
102
103 return 0;
104}
105
106BASEKIT_API int UArray_clipBeforeEndOf_(UArray *self, const UArray *other) {
107 long index = UArray_find_(self, other);

Callers 1

IoSeq_mutable.cFile · 0.85

Calls 2

UArray_find_Function · 0.85
UArray_removeRangeFunction · 0.85

Tested by

no test coverage detected