MULTCODE.H
上传用户:zhang8947
上传日期:2007-01-08
资源大小:1910k
文件大小:1k
- //自动判断,需要怎么处理内码
- int JudgeCode( LPSTR lpsStr , int nNum ) ; //判断为何种内码
-
- //-------------------------------------------------------------------------------------------------//
- //自动判断当前是何种内码
- #define JUDGE_LIB_NAME "hzck.ku"
- class CJudgeCode:public CFile
- {
- private:
- char huge * m_lpsList ; //转换码表
- int m_nItemNum ; //表中项数
- public:
- CJudgeCode( char *psFileName ) ;
- ~CJudgeCode( void ) ;
- private:
- int IsGB( LPSTR lpsStr , int nNum ) ; //判断是否为GB码
- //从字符串中得到一个汉字
- int GetZi( LPSTR lpsLine , int nNum ,
- LPINT lpnLinePoint , LPSTR lpsZi ) ;
- //判断该几个字是否能够组成一个词
- int CJudgeCode::IsWord( LPSTR lpsWordBuff ) ;
- public:
- //判断是GB码还是BIG5
- int JudgeGBorBig5( LPSTR lpsStr , int nNum ) ;
- //判断是否存在HZ码
- void JudgeHZ( LPSTR lpsStr , int nNum ) ;
- } ;