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

FXUTF8Codec.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * U T F - 8 T e x t C o d e c *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2002,2006 by L.Johnson & J.van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
21 *********************************************************************************
22 * $Id: FXUTF8Codec.h,v 1.13 2006/01/22 17:58:12 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXUTF8CODEC_H
25 #define FXUTF8CODEC_H
26 
27 #ifndef FXTEXTCODEC_H
28 #include "FXTextCodec.h"
29 #endif
30 
31 
32 namespace FX {
33 
34 /// Codec for UTF-8
35 class FXAPI FXUTF8Codec : public FXTextCodec {
36 public:
38  virtual FXint mb2wc(FXwchar& wc,const FXchar* src,FXint nsrc) const;
39  virtual FXint wc2mb(FXchar* dst,FXint ndst,FXwchar wc) const;
40  virtual const FXchar* name() const;
41  virtual const FXchar* mimeName() const;
42  virtual FXint mibEnum() const;
43  virtual const FXchar* const* aliases() const;
44  virtual ~FXUTF8Codec(){}
45  };
46 
47 }
48 
49 #endif
50 
Abstract base class for a stateless coder/decoder.
Definition: FXTextCodec.h:38
char FXchar
Definition: fxdefs.h:380
#define FXAPI
Definition: fxdefs.h:122
Codec for UTF-8.
Definition: FXUTF8Codec.h:35
FXString name(const FXString &file)
Return name and extension part of the path name.
FXUTF8Codec()
Definition: FXUTF8Codec.h:37
wchar_t FXwchar
Definition: fxdefs.h:404
Definition: FX4Splitter.h:31
int FXint
Definition: fxdefs.h:390
FXwchar wc(const FXchar *ptr)
Return wide character from utf8 string at ptr.
virtual ~FXUTF8Codec()
Definition: FXUTF8Codec.h:44

Copyright © 1997-2005 Jeroen van der Zijp