![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
00001 /******************************************************************************** 00002 * * 00003 * U T F - 3 2 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: FXUTF32Codec.h,v 1.15 2009/01/06 13:07:29 fox Exp $ * 00022 ********************************************************************************/ 00023 #ifndef FXUTF32CODEC_H 00024 #define FXUTF32CODEC_H 00025 00026 #ifndef FXTEXTCODEC_H 00027 #include "FXTextCodec.h" 00028 #endif 00029 00030 00031 namespace FX { 00032 00033 00034 /// Codec for UTF-32BE 00035 class FXAPI FXUTF32BECodec : public FXTextCodec { 00036 FXDECLARE(FXUTF32BECodec) 00037 public: 00038 FXUTF32BECodec(){} 00039 virtual FXint mb2wc(FXwchar& wc,const FXchar* src,FXint nsrc) const; 00040 virtual FXint wc2mb(FXchar* dst,FXint ndst,FXwchar wc) const; 00041 virtual const FXchar* name() const; 00042 virtual const FXchar* mimeName() const; 00043 virtual FXint mibEnum() const; 00044 virtual const FXchar* const* aliases() const; 00045 virtual ~FXUTF32BECodec(){} 00046 }; 00047 00048 00049 /// Codec for UTF-32LE 00050 class FXAPI FXUTF32LECodec : public FXTextCodec { 00051 FXDECLARE(FXUTF32LECodec) 00052 public: 00053 FXUTF32LECodec(){} 00054 virtual FXint mb2wc(FXwchar& wc,const FXchar* src,FXint nsrc) const; 00055 virtual FXint wc2mb(FXchar* dst,FXint ndst,FXwchar wc) const; 00056 virtual const FXchar* name() const; 00057 virtual const FXchar* mimeName() const; 00058 virtual FXint mibEnum() const; 00059 virtual const FXchar* const* aliases() const; 00060 virtual ~FXUTF32LECodec(){} 00061 }; 00062 00063 00064 /// Codec for UTF-32 00065 class FXAPI FXUTF32Codec : public FXTextCodec { 00066 FXDECLARE(FXUTF32Codec) 00067 public: 00068 FXUTF32Codec(){} 00069 virtual FXint mb2wc(FXwchar& wc,const FXchar* src,FXint nsrc) const; 00070 virtual FXint mb2utflen(const FXchar* src,FXint nsrc) const; 00071 virtual FXint mb2utf(FXchar* dst,FXint ndst,const FXchar* src,FXint nsrc) const; 00072 virtual FXint wc2mb(FXchar* dst,FXint ndst,FXwchar wc) const; 00073 virtual FXint utf2mblen(const FXchar* src,FXint nsrc) const; 00074 virtual FXint utf2mb(FXchar* dst,FXint ndst,const FXchar* src,FXint nsrc) const; 00075 virtual const FXchar* name() const; 00076 virtual const FXchar* mimeName() const; 00077 virtual FXint mibEnum() const; 00078 virtual const FXchar* const* aliases() const; 00079 virtual ~FXUTF32Codec(){} 00080 }; 00081 00082 00083 } 00084 00085 #endif 00086
![]() |