Searched refs:unicstr (Results 1 – 2 of 2) sorted by relevance
61 int ucs2_strlen(uint16_t const * const unicstr) in ucs2_strlen() argument66 for(length = 0; unicstr[length] != 0x0000U; length ++); in ucs2_strlen()79 char *utf16_to_utf8(LIBMTP_mtpdevice_t *device, const uint16_t *unicstr) in utf16_to_utf8() argument82 char *stringp = (char *) unicstr; in utf16_to_utf8()86 …size_t convlen = (ucs2_strlen(unicstr)+1) * sizeof(uint16_t); // UCS-2 is 16 bit wide, include ter… in utf16_to_utf8()116 char unicstr[(STRING_BUFFER_LENGTH+1)*2]; // UCS2 encoding is 2 bytes per UTF-8 char. in utf8_to_utf16() local117 char *unip = unicstr; in utf8_to_utf16()122 unicstr[0]='\0'; in utf8_to_utf16()123 unicstr[1]='\0'; in utf8_to_utf16()134 unicstr[STRING_BUFFER_LENGTH*2] = '\0'; in utf8_to_utf16()[all …]
182 ucs2strlen(uint16_t const * const unicstr) in ucs2strlen() argument187 for(length = 0; unicstr[length] != 0x0000U; length ++); in ucs2strlen()