17 ssize_t extbytes, charsleft;
50 dst_size += charsleft;
51 buffer = realloc( buffer, dst_size *
sizeof(
FB_WCHAR ) );
52 dst = buffer + dst_size - charsleft;
71 *chars = dst_size - charsleft;
76 while( charsleft > 0 )
127 ssize_t extbytes, charsleft;
132 ssize_t dst_size = 0;
142 c += *src++; c <<= 6;
144 c += *src++; c <<= 6;
146 c += *src++; c <<= 6;
148 c += *src++; c <<= 6;
150 c += *src++; c <<= 6;
160 dst_size += charsleft;
161 buffer = realloc( buffer, dst_size *
sizeof(
FB_WCHAR ) );
162 dst = buffer + dst_size - charsleft;
173 *chars = dst_size - charsleft;
178 while( charsleft > 0 )
186 c += *src++; c <<= 6;
188 c += *src++; c <<= 6;
190 c += *src++; c <<= 6;
192 c += *src++; c <<= 6;
194 c += *src++; c <<= 6;
246 ssize_t dst_size = 0;
250 c = *src++ & 0x0000FFFF;
260 dst_size += charsleft;
261 buffer = realloc( buffer, dst_size *
sizeof(
FB_WCHAR ) );
262 dst = buffer + dst_size - charsleft;
273 *chars = dst_size - charsleft;
278 while( charsleft > 0 )
280 c = *src++ & 0x0000FFFF;
315 memcpy( dst, src, *chars *
sizeof(
UTF_16 ) );
337 ssize_t dst_size = 0;
346 dst_size += charsleft;
347 buffer = realloc( buffer, dst_size *
sizeof(
FB_WCHAR ) );
348 dst = buffer + dst_size - charsleft;
366 *chars = dst_size - charsleft;
371 while( charsleft > 0 )
417 memcpy( dst, src, *chars *
sizeof(
UTF_32 ) );