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

/home/jeroen/FOX/fox/fox-1.7.33/include/FXUTF8Codec.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                      U T F - 8  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 FXUTF8CODEC_H
00022 #define FXUTF8CODEC_H
00023 
00024 #ifndef FXTEXTCODEC_H
00025 #include "FXTextCodec.h"
00026 #endif
00027 
00028 
00029 namespace FX {
00030 
00032 class FXAPI FXUTF8Codec : public FXTextCodec {
00033 public:
00034   FXUTF8Codec(){}
00035   virtual FXint mb2wc(FXwchar& wc,const FXchar* src,FXint nsrc) const;
00036   virtual FXint wc2mb(FXchar* dst,FXint ndst,FXwchar wc) const;
00037   virtual const FXchar* name() const;
00038   virtual const FXchar* mimeName() const;
00039   virtual FXint mibEnum() const;
00040   virtual const FXchar* const* aliases() const;
00041   virtual ~FXUTF8Codec(){}
00042   };
00043 
00044 }
00045 
00046 #endif
00047 

Copyright © 1997-2011 Jeroen van der Zijp