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.

52 lines
1.3 KiB

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