1 /** 2 * Yudit Unicode Editor Source File 3 * 4 * GNU Copyright (C) 1997-2006 Gaspar Sinai <gaspar@yudit.org> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License, version 2, 8 * dated June 1991. See file COPYYING for details. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 19 20 #ifndef SB_X11_JP_h 21 #define SB_X11_JP_h 22 23 #include "stoolkit/SUniMap.h" 24 #include "stoolkit/STypes.h" 25 #include "stoolkit/SString.h" 26 #include "stoolkit/SStringVector.h" 27 #include "stoolkit/sencoder/SBEncoder.h" 28 29 /** 30 * JP Compound text converter (X11) 31 * JIS X0208 1983 Japanese Character Set 32 * @author: Gaspar Sinai <gaspar@yudit.org> 33 * @version: 2000-05-12 34 */ 35 class SB_X11_JP : SBEncoder 36 { 37 public: 38 SB_X11_JP (); 39 virtual ~SB_X11_JP (); 40 41 virtual const SString& encode (const SV_UCS4& input); 42 virtual const SV_UCS4& decode (const SString& input); 43 44 virtual const SStringVector& delimiters (); 45 virtual const SStringVector& delimiters (const SString& sample); 46 47 bool isOK() const; 48 49 protected: 50 SUniMap jis0201; 51 SUniMap jis0208; 52 SUniMap jis0212; 53 bool ok; 54 }; 55 56 #endif /* SB_X11_JP_h */ 57