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.

27 lines
676 B

  1. #include "codepage.h"
  2. #define SCORE_NONE 0
  3. #define SCORE_MINOR 1
  4. #define SCORE_MAJOR 2
  5. class CIncdJapanese : public CINetCodeDetector
  6. {
  7. private:
  8. long m_nScoreJis;
  9. long m_nScoreEuc;
  10. long m_nScoreSJis;
  11. DWORD m_nPreferredCp;
  12. enum {NONE, ISO_ESC, ISO_ESC_IN, ISO_ESC_OUT } m_nISOMode;
  13. enum {REGULAR, DOUBLEBYTE, KATAKANA} m_nEucMode, m_nJISMode ;
  14. BOOL m_fDoubleByteSJis;
  15. public:
  16. CIncdJapanese(DWORD nCp = CP_JPN_SJ);
  17. ~CIncdJapanese() {}
  18. protected:
  19. virtual BOOL CheckISOChar(UCHAR tc);
  20. virtual BOOL DetectChar(UCHAR tc);
  21. virtual BOOL CleanUp() {return FALSE;}
  22. virtual int GetDetectedCodeSet();
  23. };