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

Function UArray_endsWith_

libs/basekit/source/UArray_string.c:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313BASEKIT_API int UArray_endsWith_(UArray *self, const UArray *other) {
314 if (self->size >= other->size) {
315 UArray tmp =
316 UArray_stackRange(self, self->size - other->size, other->size);
317 return UArray_find_(&tmp, other) != -1;
318 }
319
320 return 0;
321}
322
323// escape and quote
324

Callers 3

UArray_unquoteFunction · 0.85
IoSeq_immutable.cFile · 0.85
IoSeq_mutable.cFile · 0.85

Calls 2

UArray_stackRangeFunction · 0.85
UArray_find_Function · 0.85

Tested by

no test coverage detected