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

Function UArray_isUTF8Compatible

libs/basekit/source/UArray_utf.c:210–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210int UArray_isUTF8Compatible(const UArray *self) {
211 return (self->encoding == CENCODING_ASCII ||
212 self->encoding == CENCODING_UTF8);
213}
214
215UArray *UArray_asUCS2(const UArray *self) {
216 int convertToUtf8First = !UArray_isUTF8Compatible(self);

Callers 2

UArray_asUCS2Function · 0.85
UArray_asUCS4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected