Lines Matching refs:DCHAR_T
21 DCHAR_T The element type of the destination (result) string.
24 FCHAR_T and DCHAR_T are not the same type.
31 DCHAR_CPY memcpy like function for DCHAR_T[] arrays.
32 DCHAR_SET memset like function for DCHAR_T[] arrays.
33 DCHAR_MBSNLEN mbsnlen like function for DCHAR_T[] arrays.
39 sizeof (TCHAR_T) | sizeof (DCHAR_T) and
40 alignof (TCHAR_T) <= alignof (DCHAR_T).
41 DCHAR_IS_TCHAR Set to 1 if DCHAR_T and TCHAR_T are the same type.
43 DCHAR_IS_UINT8_T Set to 1 if DCHAR_T is uint8_t.
44 DCHAR_IS_UINT16_T Set to 1 if DCHAR_T is uint16_t.
45 DCHAR_IS_UINT32_T Set to 1 if DCHAR_T is uint32_t. */
153 # define DCHAR_T wchar_t
163 # define DCHAR_T char
1411 DCHAR_T *
1412 VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
1442 DCHAR_T *result;
1489 DCHAR_T *memory; \
1494 memory_size = xtimes (allocated, sizeof (DCHAR_T)); \
1498 memory = (DCHAR_T *) malloc (memory_size); \
1500 memory = (DCHAR_T *) realloc (result, memory_size); \
1516 /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we
1518 if FCHAR_T and DCHAR_T are not the same type. */
1519 if (sizeof (FCHAR_T) == sizeof (DCHAR_T))
1521 DCHAR_CPY (result + length, (const DCHAR_T *) cp, n);
1732 DCHAR_T *converted = result + length;
1860 DCHAR_T *converted = result + length;
1988 DCHAR_T *converted = result + length;
2061 DCHAR_T tmpbuf[700];
2062 DCHAR_T *tmp;
2063 DCHAR_T *pad_ptr;
2064 DCHAR_T *p;
2151 if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T))
2155 size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T));
2160 tmp = (DCHAR_T *) malloc (tmp_memsize);
2299 if (sizeof (DCHAR_T) == 1)
2450 if (sizeof (DCHAR_T) == 1)
2476 DCHAR_T *end = p + pad;
2487 DCHAR_T *q = end;
2497 DCHAR_T *q = end;
2525 memcpy (result + length, tmp, count * sizeof (DCHAR_T));
2566 DCHAR_T tmpbuf[700];
2567 DCHAR_T *tmp;
2568 DCHAR_T *pad_ptr;
2569 DCHAR_T *p;
2693 if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T))
2697 size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T));
2702 tmp = (DCHAR_T *) malloc (tmp_memsize);
2884 if (sizeof (DCHAR_T) == 1)
3041 if (sizeof (DCHAR_T) == 1)
3252 if (sizeof (DCHAR_T) == 1)
3422 if (sizeof (DCHAR_T) == 1)
3506 DCHAR_T *end = p + pad;
3517 DCHAR_T *q = end;
3527 DCHAR_T *q = end;
3555 memcpy (result + length, tmp, count * sizeof (DCHAR_T));
3887 /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need
4044 The latter is an array of DCHAR_T; SNPRINTF appends an
4046 sizeof (TCHAR_T) divides sizeof (DCHAR_T) and
4047 alignof (TCHAR_T) <= alignof (DCHAR_T). */
4048 # define TCHARS_PER_DCHAR (sizeof (DCHAR_T) / sizeof (TCHAR_T))
4384 /* Convert from TCHAR_T[] to DCHAR_T[]. */
4391 DCHAR_T *tmpdst;
4429 /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a
4432 if (sizeof (DCHAR_T) != sizeof (TCHAR_T))
4436 DCHAR_T *tmpdst;
4519 DCHAR_T * const rp = result + length;
4521 DCHAR_T * const rp = tmp;
4523 DCHAR_T *p = rp + count;
4524 DCHAR_T *end = p + pad;
4526 DCHAR_T *pad_ptr;
4558 DCHAR_T *q = end;
4569 DCHAR_T *q = end;
4594 memcpy (result + length, tmp, count * sizeof (DCHAR_T));
4605 DCHAR_T *rp = result + length;
4627 DCHAR_T *memory;
4629 memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T));
4674 #undef DCHAR_T