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_UTF7_h 21 #define SB_UTF7_h 22 23 #include "stoolkit/STypes.h" 24 #include "stoolkit/SString.h" 25 #include "stoolkit/SStringVector.h" 26 #include "stoolkit/sencoder/SBEncoder.h" 27 28 /** 29 * This is the uniconde 7 bit transformation format. 'could' be used in 30 * email. 31 * @author: Gaspar Sinai <gaspar@yudit.org> 32 * @version: 2000-05-12 33 */ 34 class SB_UTF7 : SBEncoder 35 { 36 public: 37 SB_UTF7 (void); 38 virtual ~SB_UTF7 (); 39 40 virtual const SString& encode (const SV_UCS4& input); 41 virtual const SV_UCS4& decode (const SString& input); 42 43 virtual const SStringVector& delimiters (); 44 virtual const SStringVector& delimiters (const SString& sample); 45 }; 46 47 #endif /* SB_UTF7_h */ 48