Lines Matching defs:ucs2len
79 size_t ucs2len = 0;
91 while (*utf8str && ucs2len < count) {
116 ucs2str[ucs2len] = SWAP16(ch);
119 ucs2str[ucs2len] = ch;
123 ucs2len++; /* Count number of wide chars stored/required */
126 assert(ucs2len < count);
130 ucs2str[ucs2len] = 0;
133 return ucs2len;
257 ucs2len is -1 if the UCS-2 string is NUL terminated, otherwise it is the
262 size_t count, ssize_t ucs2len, int little_endian)
274 while (ucs2len == -1 ? *ucs2str : --ucs2len >= 0) {
296 while (ucs2len == -1 ? *ucs2str != 0 : --ucs2len >= 0) {