28 #ifndef CHRLIB_INC_MAPEX_H_
29 #define CHRLIB_INC_MAPEX_H_ 1
42 #define CHRLIB_NODYNAMIC_MAPPING 0
44 #if CHRLIB_NODYNAMIC_MAPPING
124 struct GUCS2Mapper<CharSet::
GBK>
126 template<
typename _tObj,
typename _tIn,
typename _tState>
128 Map(_tObj& uc, _tIn&& i, _tState&& st)
138 return ConversionResult::BadSource;
139 if(
cp113[seq[0]] != 0)
146 return ConversionResult::BadSource;
147 if(
YB_LIKELY((seq[0] << 8 | seq[1]) < 0xFF7E))
149 uc =
reinterpret_cast<const ucs2_t*
>(
cp113 + 0x0100)[
150 seq[0] << 8 | seq[1]];
153 return ConversionResult::Unhandled;
155 return ConversionResult::BadState;
157 return ConversionResult::OK;
162 struct GUCS2Mapper<CharSet::
Big5>
212 template<
typename _fCodemapTransform>
216 using namespace CharSet;
218 #define CHR_MapItem(enc) \
220 return UCS2Mapper<enc>;