19 int sign = bigendian ? -1 : 1;
23 for (
i = 1;
i < 4;
i++) {
24 *ch |= (
ut32)ptr[3 - high +
i * sign] << 8 *
i;
27 if (ptr[high] || ptr[high - 1 * sign]) {
30 if (ptr[low + 1 * sign]) {
RZ_API int rz_utf32le_decode(const ut8 *ptr, int ptrlen, RzRune *ch)
RZ_API int rz_utf32_decode(const ut8 *ptr, int ptrlen, RzRune *ch, bool bigendian)
RZ_API int rz_utf32be_decode(const ut8 *ptr, int ptrlen, RzRune *ch)