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
27 lines
676 B
#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();
|
|
};
|