#ifndef _RESA_H_ #define _RESA_H_ #include "unicode.h" typedef long IndexType; typedef std::pair UU; //used to map a token char to the raw string class Tchar { public: int tid; //token id UChar c; //character IndexType cix; //start index in raw IndexType ceix; //end index in raw (needed to map one char to multiple) Tchar(int tid, UChar c) :tid(tid), c(c), cix(-1), ceix(-1) {}; }; #endif