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.

100 lines
2.2 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. strnumer.hxx
  7. String classes for numerically formatted output - definitions
  8. This file defines the classes
  9. HEX_STR
  10. DEC_STR
  11. NUM_NLS_STR
  12. Q.v. string.hxx and strformt.hxx.
  13. FILE HISTORY:
  14. beng 25-Feb-1992 Created
  15. */
  16. #ifndef _STRNUMER_HXX_
  17. #define _STRNUMER_HXX_
  18. #include "string.hxx"
  19. /*************************************************************************
  20. NAME: DEC_STR
  21. SYNOPSIS: String formatted as a decimal number
  22. INTERFACE: DEC_STR() - ctor. Takes the value of the number as parm.
  23. PARENT: NLS_STR
  24. HISTORY:
  25. beng 25-Feb-1992 Created
  26. **************************************************************************/
  27. DLL_CLASS DEC_STR: public NLS_STR
  28. {
  29. public:
  30. DEC_STR( ULONG nValue, UINT cchDigitPad = 1 );
  31. };
  32. /*************************************************************************
  33. NAME: HEX_STR
  34. SYNOPSIS: String formatted as a hexadecimal number
  35. INTERFACE: HEX_STR() - ctor. Takes the value of the number as parm.
  36. PARENT: NLS_STR
  37. HISTORY:
  38. beng 25-Feb-1992 Created
  39. **************************************************************************/
  40. DLL_CLASS HEX_STR: public NLS_STR
  41. {
  42. public:
  43. HEX_STR( ULONG nValue, UINT cchDigitPad = 1 );
  44. };
  45. /*************************************************************************
  46. NAME: NUM_NLS_STR
  47. SYNOPSIS: String formatted as a number, with thousands separators
  48. INTERFACE: NUM_NLS_STR() - ctor. Takes the value of the number as parm.
  49. Init() - package init
  50. PARENT: NLS_STR
  51. HISTORY:
  52. beng 25-Feb-1992 Created
  53. **************************************************************************/
  54. DLL_CLASS NUM_NLS_STR: public DEC_STR
  55. {
  56. private:
  57. static TCHAR _chThousandSep;
  58. public:
  59. NUM_NLS_STR( ULONG nValue );
  60. static VOID Init();
  61. };
  62. #endif // _STRNUMER_HXX_ - end of file