throw CodecError("Can't express character in ISO-2022-JP");
if(mode!=JISX0208)
switch_mode(JISX0208);
+
+ char buf[2]={jis>>8, jis};
+ append(buf, 2);
}
}
+void Iso2022Jp::Encoder::sync()
+{
+ if(mode!=ASCII)
+ switch_mode(ASCII);
+}
+
void Iso2022Jp::Encoder::switch_mode(Mode m)
{
mode=m;