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

Function UArray_count_

libs/basekit/source/UArray_string.c:499–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499size_t UArray_count_(const UArray *self, const UArray *other) {
500 long i = 0;
501 size_t count = 0;
502
503 while ((i = UArray_find_from_(self, other, i)) != -1) {
504 i += UArray_size(other);
505 count++;
506 }
507
508 return count;
509}
510
511UArray *UArray_asBase64(const UArray *self, int charsPerLine) {
512 base64_encodestate state;

Callers 1

IoSeq_immutable.cFile · 0.85

Calls 2

UArray_find_from_Function · 0.85
UArray_sizeFunction · 0.85

Tested by

no test coverage detected