static uint16_t wget(const u_char **str, size_t *sz, int joliet_level) { if (joliet_level > 0 && cd9660_utf8_joliet) { /* decode UTF-8 sequence */ return wget_utf8((const char **) str, sz); } else { /* * Raw 8-bit characters without any conversion. For Joliet, * this effectively assumes provided file name is using * ISO-8859-1 subset. */ uint16_t c = *str[0]; (*str)++; return c; } }
/* * Read one wide character off the string, shift the string pointer * and return the character. */ wchar ntfs_utf8_wget(const char **str, size_t *sz) { return (wchar) wget_utf8(str, sz); }