| 93 | // clipping |
| 94 | |
| 95 | BASEKIT_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 | |
| 106 | BASEKIT_API int UArray_clipBeforeEndOf_(UArray *self, const UArray *other) { |
| 107 | long index = UArray_find_(self, other); |
no test coverage detected