Lines Matching refs:DCHAR_T
22 DCHAR_T The element type of the destination (result) string.
25 FCHAR_T and DCHAR_T are not the same type.
32 DCHAR_CPY memcpy like function for DCHAR_T[] arrays.
33 DCHAR_SET memset like function for DCHAR_T[] arrays.
34 DCHAR_MBSNLEN mbsnlen like function for DCHAR_T[] arrays.
40 sizeof (TCHAR_T) | sizeof (DCHAR_T) and
41 alignof (TCHAR_T) <= alignof (DCHAR_T).
42 DCHAR_IS_TCHAR Set to 1 if DCHAR_T and TCHAR_T are the same type.
44 DCHAR_IS_UINT8_T Set to 1 if DCHAR_T is uint8_t.
45 DCHAR_IS_UINT16_T Set to 1 if DCHAR_T is uint16_t.
46 DCHAR_IS_UINT32_T Set to 1 if DCHAR_T is uint32_t. */
154 # define DCHAR_T wchar_t
164 # define DCHAR_T char
1412 DCHAR_T *
1413 VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
1443 DCHAR_T *result;
1490 DCHAR_T *memory; \
1495 memory_size = xtimes (allocated, sizeof (DCHAR_T)); \
1499 memory = (DCHAR_T *) malloc (memory_size); \
1501 memory = (DCHAR_T *) realloc (result, memory_size); \
1517 /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we
1519 if FCHAR_T and DCHAR_T are not the same type. */
1520 if (sizeof (FCHAR_T) == sizeof (DCHAR_T))
1522 DCHAR_CPY (result + length, (const DCHAR_T *) cp, n);
1733 DCHAR_T *converted = result + length;
1861 DCHAR_T *converted = result + length;
1989 DCHAR_T *converted = result + length;
2062 DCHAR_T tmpbuf[700];
2063 DCHAR_T *tmp;
2064 DCHAR_T *pad_ptr;
2065 DCHAR_T *p;
2152 if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T))
2156 size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T));
2161 tmp = (DCHAR_T *) malloc (tmp_memsize);
2300 if (sizeof (DCHAR_T) == 1)
2451 if (sizeof (DCHAR_T) == 1)
2477 DCHAR_T *end = p + pad;
2488 DCHAR_T *q = end;
2498 DCHAR_T *q = end;
2526 memcpy (result + length, tmp, count * sizeof (DCHAR_T));
2567 DCHAR_T tmpbuf[700];
2568 DCHAR_T *tmp;
2569 DCHAR_T *pad_ptr;
2570 DCHAR_T *p;
2694 if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T))
2698 size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T));
2703 tmp = (DCHAR_T *) malloc (tmp_memsize);
2885 if (sizeof (DCHAR_T) == 1)
3042 if (sizeof (DCHAR_T) == 1)
3253 if (sizeof (DCHAR_T) == 1)
3423 if (sizeof (DCHAR_T) == 1)
3507 DCHAR_T *end = p + pad;
3518 DCHAR_T *q = end;
3528 DCHAR_T *q = end;
3556 memcpy (result + length, tmp, count * sizeof (DCHAR_T));
3888 /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need
4045 The latter is an array of DCHAR_T; SNPRINTF appends an
4047 sizeof (TCHAR_T) divides sizeof (DCHAR_T) and
4048 alignof (TCHAR_T) <= alignof (DCHAR_T). */
4049 # define TCHARS_PER_DCHAR (sizeof (DCHAR_T) / sizeof (TCHAR_T))
4385 /* Convert from TCHAR_T[] to DCHAR_T[]. */
4392 DCHAR_T *tmpdst;
4430 /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a
4433 if (sizeof (DCHAR_T) != sizeof (TCHAR_T))
4437 DCHAR_T *tmpdst;
4520 DCHAR_T * const rp = result + length;
4522 DCHAR_T * const rp = tmp;
4524 DCHAR_T *p = rp + count;
4525 DCHAR_T *end = p + pad;
4527 DCHAR_T *pad_ptr;
4559 DCHAR_T *q = end;
4570 DCHAR_T *q = end;
4595 memcpy (result + length, tmp, count * sizeof (DCHAR_T));
4606 DCHAR_T *rp = result + length;
4628 DCHAR_T *memory;
4630 memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T));
4675 #undef DCHAR_T