windows-nt/Source/XPSP1/NT/shell/ext/mlang/detcjpn.h

28 lines
648 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#include "codepage.h"
#define SCORE_NONE 0
#define SCORE_MINOR 1
#define SCORE_MAJOR 2
class CIncdJapanese : public CINetCodeDetector
{
private:
long m_nScoreJis;
long m_nScoreEuc;
long m_nScoreSJis;
DWORD m_nPreferredCp;
enum {NONE, ISO_ESC, ISO_ESC_IN, ISO_ESC_OUT } m_nISOMode;
enum {REGULAR, DOUBLEBYTE, KATAKANA} m_nEucMode, m_nJISMode ;
BOOL m_fDoubleByteSJis;
public:
CIncdJapanese(DWORD nCp = CP_JPN_SJ);
~CIncdJapanese() {}
protected:
virtual BOOL CheckISOChar(UCHAR tc);
virtual BOOL DetectChar(UCHAR tc);
virtual BOOL CleanUp() {return FALSE;}
virtual int GetDetectedCodeSet();
};