• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libunistring-0.9.3/lib/

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. */
125 # define DCHAR_T wchar_t
136 # define DCHAR_T char
1742 DCHAR_T *
1743 VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
1773 DCHAR_T *result;
1820 DCHAR_T *memory; \
1825 memory_size = xtimes (allocated, sizeof (DCHAR_T)); \
1829 memory = (DCHAR_T *) malloc (memory_size); \
1831 memory = (DCHAR_T *) realloc (result, memory_size); \
1847 /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we
1849 if FCHAR_T and DCHAR_T are not the same type. */
1850 if (sizeof (FCHAR_T) == sizeof (DCHAR_T))
1852 DCHAR_CPY (result + length, (const DCHAR_T *) cp, n);
2063 DCHAR_T *converted = result + length;
2191 DCHAR_T *converted = result + length;
2319 DCHAR_T *converted = result + length;
2626 DCHAR_T *tmpdst;
2760 /* Convert from TCHAR_T[] to DCHAR_T[]. */
2916 DCHAR_T tmpbuf[700];
2917 DCHAR_T *tmp;
2918 DCHAR_T *pad_ptr;
2919 DCHAR_T *p;
3006 if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T))
3010 size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T));
3015 tmp = (DCHAR_T *) malloc (tmp_memsize);
3154 if (sizeof (DCHAR_T) == 1)
3305 if (sizeof (DCHAR_T) == 1)
3331 DCHAR_T *end = p + pad;
3342 DCHAR_T *q = end;
3352 DCHAR_T *q = end;
3380 memcpy (result + length, tmp, count * sizeof (DCHAR_T));
3423 DCHAR_T tmpbuf[700];
3424 DCHAR_T *tmp;
3425 DCHAR_T *pad_ptr;
3426 DCHAR_T *p;
3552 if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T))
3556 size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T));
3561 tmp = (DCHAR_T *) malloc (tmp_memsize);
3767 if (sizeof (DCHAR_T) == 1)
3948 if (sizeof (DCHAR_T) == 1)
4240 if (sizeof (DCHAR_T) == 1)
4433 if (sizeof (DCHAR_T) == 1)
4517 DCHAR_T *end = p + pad;
4528 DCHAR_T *q = end;
4538 DCHAR_T *q = end;
4566 memcpy (result + length, tmp, count * sizeof (DCHAR_T));
4692 /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need
4888 The latter is an array of DCHAR_T; SNPRINTF appends an
4890 sizeof (TCHAR_T) divides sizeof (DCHAR_T) and
4891 alignof (TCHAR_T) <= alignof (DCHAR_T). */
4892 # define TCHARS_PER_DCHAR (sizeof (DCHAR_T) / sizeof (TCHAR_T))
5277 /* Convert from TCHAR_T[] to DCHAR_T[]. */
5284 DCHAR_T *tmpdst;
5321 /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a
5324 if (sizeof (DCHAR_T) != sizeof (TCHAR_T))
5328 DCHAR_T *tmpdst;
5415 DCHAR_T * const rp = result + length;
5417 DCHAR_T * const rp = tmp;
5419 DCHAR_T *p = rp + count;
5420 DCHAR_T *end = p + pad;
5421 DCHAR_T *pad_ptr;
5451 DCHAR_T *q = end;
5461 DCHAR_T *q = end;
5479 memcpy (result + length, tmp, count * sizeof (DCHAR_T));
5490 DCHAR_T *rp = result + length;
5512 DCHAR_T *memory;
5514 memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T));
5563 #undef DCHAR_T