Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

/home/jeroen/FOX/fox/fox-1.7.33/include/FXUTF32Codec.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                      U T F - 3 2  T e x t   C o d e c                         *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 2002,2012 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 #ifndef FXUTF32CODEC_H
00022 #define FXUTF32CODEC_H
00023 
00024 #ifndef FXTEXTCODEC_H
00025 #include "FXTextCodec.h"
00026 #endif
00027 
00028 
00029 namespace FX {
00030 
00031 
00033 class FXAPI FXUTF32BECodec : public FXTextCodec {
00034   FXDECLARE(FXUTF32BECodec)
00035 public:
00036   FXUTF32BECodec(){}
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 ~FXUTF32BECodec(){}
00044   };
00045 
00046 
00048 class FXAPI FXUTF32LECodec : public FXTextCodec {
00049   FXDECLARE(FXUTF32LECodec)
00050 public:
00051   FXUTF32LECodec(){}
00052   virtual FXint mb2wc(FXwchar& wc,const FXchar* src,FXint nsrc) const;
00053   virtual FXint wc2mb(FXchar* dst,FXint ndst,FXwchar wc) const;
00054   virtual const FXchar* name() const;
00055   virtual const FXchar* mimeName() const;
00056   virtual FXint mibEnum() const;
00057   virtual const FXchar* const* aliases() const;
00058   virtual ~FXUTF32LECodec(){}
00059   };
00060 
00061 
00063 class FXAPI FXUTF32Codec : public FXTextCodec {
00064   FXDECLARE(FXUTF32Codec)
00065 public:
00066   FXUTF32Codec(){}
00067   virtual FXint mb2wc(FXwchar& wc,const FXchar* src,FXint nsrc) const;
00068   virtual FXint mb2utflen(const FXchar* src,FXint nsrc) const;
00069   virtual FXint mb2utf(FXchar* dst,FXint ndst,const FXchar* src,FXint nsrc) const;
00070   virtual FXint wc2mb(FXchar* dst,FXint ndst,FXwchar wc) const;
00071   virtual FXint utf2mblen(const FXchar* src,FXint nsrc) const;
00072   virtual FXint utf2mb(FXchar* dst,FXint ndst,const FXchar* src,FXint nsrc) const;
00073   virtual const FXchar* name() const;
00074   virtual const FXchar* mimeName() const;
00075   virtual FXint mibEnum() const;
00076   virtual const FXchar* const* aliases() const;
00077   virtual ~FXUTF32Codec(){}
00078   };
00079 
00080 
00081 }
00082 
00083 #endif
00084 

Copyright © 1997-2011 Jeroen van der Zijp