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.

54 lines
1.4 KiB

  1. #include "convbase.h"
  2. class CInccKscIn : public CINetCodeConverter
  3. {
  4. private:
  5. BOOL (CInccKscIn::*m_pfnConv)(UCHAR tc);
  6. BOOL (CInccKscIn::*m_pfnCleanUp)();
  7. BOOL m_fShift;
  8. BOOL m_fKorea;
  9. BOOL m_fLeadByte;
  10. UINT m_nESCBytes; /* # bytes of ESC sequence */
  11. public:
  12. CInccKscIn(UINT uCodePage, int nCodeSet);
  13. ~CInccKscIn() {}
  14. virtual HRESULT ConvertChar(UCHAR tc, int cchSrc=-1);
  15. virtual BOOL CleanUp();
  16. virtual int GetUnconvertBytes();
  17. virtual DWORD GetConvertMode();
  18. virtual void SetConvertMode(DWORD mode);
  19. private:
  20. void Reset();
  21. BOOL ConvMain(UCHAR tc);
  22. BOOL CleanUpMain();
  23. BOOL ConvEsc(UCHAR tc);
  24. BOOL CleanUpEsc();
  25. BOOL ConvIsoIn(UCHAR tc);
  26. BOOL CleanUpIsoIn();
  27. BOOL ConvIsoInKr(UCHAR tc);
  28. BOOL CleanUpIsoInKr();
  29. };
  30. class CInccKscOut : public CINetCodeConverter
  31. {
  32. private:
  33. BOOL m_fDoubleByte;
  34. BYTE m_tcLeadByte;
  35. DWORD _dwFlag;
  36. BOOL m_fShift;
  37. BOOL m_fKorea;
  38. WCHAR *_lpFallBack;
  39. public:
  40. CInccKscOut(UINT uCodePage, int nCodeSet, DWORD dwFlag, WCHAR *lpFallBack);
  41. ~CInccKscOut() {}
  42. virtual HRESULT ConvertChar(UCHAR tc, int cchSrc=-1);
  43. virtual BOOL CleanUp();
  44. virtual int GetUnconvertBytes();
  45. virtual DWORD GetConvertMode();
  46. virtual void SetConvertMode(DWORD mode);
  47. private:
  48. void Reset();
  49. };