Home
last modified time | relevance | path

Searched refs:unicstr (Results 1 – 2 of 2) sorted by relevance

/external/libmtp/src/
Dunicode.c60 int ucs2_strlen(uint16_t const * const unicstr) in ucs2_strlen() argument
65 for(length = 0; unicstr[length] != 0x0000U; length ++); in ucs2_strlen()
78 char *utf16_to_utf8(LIBMTP_mtpdevice_t *device, const uint16_t *unicstr) in utf16_to_utf8() argument
81 char *stringp = (char *) unicstr; in utf16_to_utf8()
85 …size_t convlen = (ucs2_strlen(unicstr)+1) * sizeof(uint16_t); // UCS-2 is 16 bit wide, include ter… in utf16_to_utf8()
115 char unicstr[(STRING_BUFFER_LENGTH+1)*2]; // UCS2 encoding is 2 bytes per UTF-8 char. in utf8_to_utf16() local
116 char *unip = unicstr; in utf8_to_utf16()
121 unicstr[0]='\0'; in utf8_to_utf16()
122 unicstr[1]='\0'; in utf8_to_utf16()
133 unicstr[STRING_BUFFER_LENGTH*2] = '\0'; in utf8_to_utf16()
[all …]
Dptp-pack.c149 ucs2strlen(uint16_t const * const unicstr) in ucs2strlen() argument
154 for(length = 0; unicstr[length] != 0x0000U; length ++); in ucs2strlen()