#ifndef PINYINT9_H_
#define PINYINT9_H_

#include "gType.h"

#define MAX_MATCH_PYMB 	10	//×î´óÆ¥ÅäÊý
#define MAX_Cn_Len	256

class TPinyinT9{
	public:
		int InxCount ;
		struct{
			char Num[12];
		}InputStr;
		struct{
			int Count;
			int CnCount;
			int CnPageCount;
			int Index[MAX_MATCH_PYMB];
			struct{
				int Count;
				int Index[MAX_MATCH_PYMB];
			}FullMatch,PartMatch;
			const char *pCn;
		}CnResult;
	public:
		TPinyinT9(){};
		void Init();
			
		int TryGetMatch(int aInx);
		int GetMatchedPinyinCode(void);
		const char *GetPinyin(int Index);
		void IdentifyCn(int Index);
		const char * TryGetCn(int iInx, int cInx);
};


















#endif
