Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // File: WChar.h
  4. //
  5. // Contents: Defines wide character equivalents for standard functions
  6. // usually in strings.h and ctypes.h
  7. //
  8. // History: 11-Sep-91 KyleP Created
  9. // 20-Sep-91 ChrisMay Added several functions
  10. // 25-Sep-91 ChrisMay Added wcsncmp and wcsncpy
  11. // 04-Oct-91 ChrisMay Added wcslwr, wcsupr, wcscoll
  12. // 07-Oct-91 ChrisMay Added BOM and padding macro
  13. // 18-Oct-91 vich added w4*sprintf routines
  14. // 04-Mar-92 ChrisMay added wscatoi, wcsitoa, wcsatol, etc.
  15. //----------------------------------------------------------------------------
  16. #ifndef __WCHAR_H__
  17. #define __WCHAR_H__
  18. #include <stdlib.h>
  19. #if WIN32 != 300
  20. #include <stdarg.h>
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. // Unicode Byte Order Mark (BOM) for Unicode text files
  25. #define BOM 0xFEFF
  26. // Padding constant and macro for localized buffer allocation
  27. #define INTL_PADDING_VALUE 3
  28. #define INTL_PADDING(cb) (INTL_PADDING_VALUE * (cb))
  29. #if 0
  30. long __cdecl wcsatol(const wchar_t *wsz);
  31. int __cdecl wcsatoi(const wchar_t *wsz);
  32. wchar_t * __cdecl wcscat(wchar_t *wsz1, const wchar_t *wsz2);
  33. wchar_t * __cdecl wcschr(const wchar_t *wsz1, wchar_t character);
  34. int __cdecl wcscmp(const wchar_t *wsz1, const wchar_t *wsz2);
  35. int __cdecl wcsicmp(const wchar_t *wsz1, const wchar_t *wsz2);
  36. int __cdecl wcscoll(const wchar_t * wsz1, const wchar_t * wsz2);
  37. wchar_t * __cdecl wcscpy(wchar_t *wsz1, wchar_t const *wsz2);
  38. wchar_t * __cdecl wcsitoa(int ival, wchar_t *wsz, int radix);
  39. size_t __cdecl wcslen(wchar_t const *wsz);
  40. wchar_t * __cdecl wcsltoa(long lval, wchar_t *wsz, int radix);
  41. wchar_t * __cdecl wcslwr(wchar_t *wsz);
  42. int __cdecl wcsncmp(const wchar_t *wsz1, const wchar_t *wsz2, size_t count);
  43. int __cdecl wcsnicmp(const wchar_t *wsz1, const wchar_t *wsz2, size_t count);
  44. wchar_t * __cdecl wcsncpy(wchar_t *wsz1, const wchar_t *wsz2, size_t count);
  45. wchar_t * __cdecl wcsrchr(const wchar_t * wcs, wchar_t wc);
  46. wchar_t * __cdecl wcsupr(wchar_t *wsz);
  47. wchar_t * __cdecl wcswcs(const wchar_t *wsz1, const wchar_t *wsz2);
  48. #endif
  49. // sprintf support now included in misc.lib
  50. extern int __cdecl w4sprintf(char *pszout, const char *pszfmt, ...);
  51. extern int __cdecl w4vsprintf(char *pszout, const char *pszfmt, va_list arglist);
  52. extern int __cdecl w4wcsprintf(wchar_t *pwzout, const char *pszfmt, ...);
  53. extern int __cdecl w4vwcsprintf(wchar_t *pwzout, const char *pszfmt, va_list arglist);
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif // !Cairo
  58. #endif /* __WCHAR_H__ */