![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
00001 /******************************************************************************** 00002 * * 00003 * U T F - 8 T e x t C o d e c * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 2002,2009 by L.Johnson & J.van der Zijp. All Rights Reserved. * 00007 ********************************************************************************* 00008 * This library is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU Lesser General Public License as published by * 00010 * the Free Software Foundation; either version 3 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This library is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public License * 00019 * along with this program. If not, see <http://www.gnu.org/licenses/> * 00020 ********************************************************************************* 00021 * $Id: FXUTF8Codec.h,v 1.17 2009/01/06 13:07:29 fox Exp $ * 00022 ********************************************************************************/ 00023 #ifndef FXUTF8CODEC_H 00024 #define FXUTF8CODEC_H 00025 00026 #ifndef FXTEXTCODEC_H 00027 #include "FXTextCodec.h" 00028 #endif 00029 00030 00031 namespace FX { 00032 00033 /// Codec for UTF-8 00034 class FXAPI FXUTF8Codec : public FXTextCodec { 00035 public: 00036 FXUTF8Codec(){} 00037 virtual FXint mb2wc(FXwchar& wc,const FXchar* src,FXint nsrc) const; 00038 virtual FXint wc2mb(FXchar* dst,FXint ndst,FXwchar wc) const; 00039 virtual const FXchar* name() const; 00040 virtual const FXchar* mimeName() const; 00041 virtual FXint mibEnum() const; 00042 virtual const FXchar* const* aliases() const; 00043 virtual ~FXUTF8Codec(){} 00044 }; 00045 00046 } 00047 00048 #endif 00049
![]() |