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

Function UArray_clipAfter_

libs/basekit/source/UArray_string.c:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124BASEKIT_API int UArray_clipAfter_(UArray *self, const UArray *other) {
125 long index = UArray_find_(self, other);
126
127 if (index > -1) {
128 UArray_removeRange(self, index + other->size, self->size);
129 return 1;
130 }
131
132 return 0;
133}
134
135BASEKIT_API int UArray_clipAfterStartOf_(UArray *self, const UArray *other) {
136 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