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.

65 lines
1.1 KiB

  1. #ifndef _LANG_SUPPORT_H_
  2. #define _LANG_SUPPORT_H_
  3. #include "propflags.h"
  4. #include "formats.h"
  5. #include "tracer.h"
  6. struct LangInfo
  7. {
  8. WCHAR m_wchSThousand;
  9. WCHAR m_wchSDecimal;
  10. WCHAR m_wchSTime;
  11. bool m_bDayMonthOrder;
  12. LangInfo& operator= (LangInfo& I)
  13. {
  14. m_wchSThousand = I.m_wchSThousand;
  15. m_wchSDecimal = I.m_wchSDecimal;
  16. m_wchSTime = I.m_wchSTime;
  17. m_bDayMonthOrder = I.m_bDayMonthOrder;
  18. return *this;
  19. }
  20. };
  21. class CLangSupport : public LangInfo
  22. {
  23. public:
  24. CLangSupport(LCID lcid);
  25. WCHAR GetDecimalSeperator()
  26. {
  27. return m_wchSDecimal;
  28. }
  29. WCHAR GetThousandSeperator()
  30. {
  31. return m_wchSThousand;
  32. }
  33. WCHAR GetTimeSeperator()
  34. {
  35. return m_wchSTime;
  36. }
  37. bool IsDayMonthOrder()
  38. {
  39. return m_bDayMonthOrder;
  40. }
  41. CSpecialAbbreviationSet* GetAbbSet()
  42. {
  43. return m_pAbbSet;
  44. }
  45. private:
  46. CSpecialAbbreviationSet* m_pAbbSet;
  47. };
  48. #endif // _LANG_SUPPORT_H_