Leaked source code of windows server 2003
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.

57 lines
1.5 KiB

  1. // t_string.h: interface for the t_string class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. //***************************************************************************
  5. //
  6. // judyp May 1999
  7. //
  8. //***************************************************************************
  9. #if !defined(AFX_T_STRING_H__32BF27CE_EAD9_11D2_9C53_00A0249F63EB__INCLUDED_)
  10. #define AFX_T_STRING_H__32BF27CE_EAD9_11D2_9C53_00A0249F63EB__INCLUDED_
  11. #if _MSC_VER > 1000
  12. #pragma once
  13. #endif // _MSC_VER > 1000
  14. #ifndef t_string
  15. #ifndef _UNICODE
  16. // Definitions for WC to MBCS and MBCS to WC routines that do the right thing
  17. // if compiled non-UNICODE.
  18. #define t_string string
  19. #define t_fstream fstream
  20. #define t_istream istream
  21. #define t_ostream ostream
  22. #define t_cout cout
  23. #define t_cin cin
  24. #define t_strstream strstream
  25. #define t_strstreambuf strstreambuf
  26. #define t_ctime ctime
  27. #define t_cerr cerr
  28. #else
  29. // Definitions for WC to MBCS and MBCS to WC routines that do the right thing
  30. // if compiled UNICODE.
  31. #define t_string wstring
  32. #define t_fstream fstream
  33. #define t_istream istream
  34. #define t_ostream ostream
  35. #define t_cout wcout
  36. #define t_cin wcin
  37. #define t_strstream wstringstream
  38. #define t_strstreambuf wstrstreambuf
  39. #define t_ctime _wctime
  40. #define t_cerr wcerr
  41. #endif
  42. #endif
  43. // We do not need conversion routines if compiling under UNICODE
  44. #define mbsrtowcs t_mbsrtowcs
  45. #endif // !defined(AFX_T_STRING_H__32BF27CE_EAD9_11D2_9C53_00A0249F63EB__INCLUDED_)