Main Page
Class Hierarchy
Alphabetical List
Compound List
File List
Compound Members
include
FXUTF8Codec.h
1
/********************************************************************************
2
* *
3
* U T F - 8 T e x t C o d e c *
4
* *
5
*********************************************************************************
6
* Copyright (C) 2002,2024 by L.Johnson & J.van der Zijp. All Rights Reserved. *
7
*********************************************************************************
8
* This library is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU Lesser General Public License as published by *
10
* the Free Software Foundation; either version 3 of the License, or *
11
* (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 *
16
* GNU Lesser General Public License for more details. *
17
* *
18
* You should have received a copy of the GNU Lesser General Public License *
19
* along with this program. If not, see <http://www.gnu.org/licenses/> *
20
********************************************************************************/
21
#ifndef FXUTF8CODEC_H
22
#define FXUTF8CODEC_H
23
24
#ifndef FXTEXTCODEC_H
25
#include "FXTextCodec.h"
26
#endif
27
28
namespace
FX
{
29
31
class
FXAPI
FXUTF8Codec
:
public
FXTextCodec
{
32
public
:
33
FXUTF8Codec
(){}
34
virtual
FXint mb2wc(FXwchar& wc,
const
FXchar* src,FXint nsrc)
const
;
35
virtual
FXint wc2mb(FXchar* dst,FXint ndst,FXwchar wc)
const
;
36
virtual
const
FXchar* name()
const
;
37
virtual
const
FXchar* mimeName()
const
;
38
virtual
FXint mibEnum()
const
;
39
virtual
const
FXchar*
const
* aliases()
const
;
40
virtual
~
FXUTF8Codec
(){}
41
};
42
43
}
44
45
#endif
46
FX::FXTextCodec
Abstract base class for a stateless coder/decoder.
Definition:
FXTextCodec.h:34
FX::FXUTF8Codec
Codec for UTF-8.
Definition:
FXUTF8Codec.h:31
FX
Definition:
FX4Splitter.h:28
Copyright © 1997-2022 Jeroen van der Zijp