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

FX::FXTextCodec Class Referenceabstract

Abstract base class for a stateless coder/decoder. More...

#include <FXTextCodec.h>

Inheritance diagram for FX::FXTextCodec:
FX::FXObject FX::FX885910Codec FX::FX885911Codec FX::FX885913Codec FX::FX885914Codec FX::FX885915Codec FX::FX885916Codec FX::FX88591Codec FX::FX88592Codec FX::FX88593Codec FX::FX88594Codec FX::FX88595Codec FX::FX88596Codec FX::FX88597Codec FX::FX88598Codec FX::FX88599Codec FX::FXCP1250Codec FX::FXCP1251Codec FX::FXCP1252Codec FX::FXCP1253Codec FX::FXCP1254Codec FX::FXCP1255Codec FX::FXCP1256Codec FX::FXCP1257Codec FX::FXCP1258Codec FX::FXCP437Codec FX::FXCP850Codec FX::FXCP852Codec FX::FXCP855Codec FX::FXCP856Codec FX::FXCP857Codec FX::FXCP860Codec FX::FXCP861Codec FX::FXCP862Codec FX::FXCP863Codec FX::FXCP864Codec FX::FXCP865Codec FX::FXCP866Codec FX::FXCP869Codec FX::FXCP874Codec FX::FXKOI8RCodec FX::FXUTF16BECodec FX::FXUTF16Codec FX::FXUTF16LECodec FX::FXUTF32BECodec FX::FXUTF32Codec FX::FXUTF32LECodec FX::FXUTF8Codec

Public Member Functions

 FXTextCodec ()
 Construct text codec.
 
virtual FXint mb2utflen (const FXchar *src, FXint nsrc) const
 Count utf8 bytes needed to convert multi-byte characters from src.
 
FXint mb2utflen (const FXString &src) const
 Count utf8 bytes needed to convert multi-byte characters from src.
 
virtual FXint mb2utf (FXchar *dst, FXint ndst, const FXchar *src, FXint nsrc) const
 Convert multi-byte characters from src to utf8 characters at dst.
 
FXint mb2utf (FXchar *dst, FXint ndst, const FXchar *src) const
 Convert multi-byte characters from src to utf8 characters at dst.
 
FXint mb2utf (FXchar *dst, FXint ndst, const FXString &src) const
 Convert multi-byte characters from src to utf8 characters at dst.
 
FXString mb2utf (const FXchar *src, FXint nsrc) const
 Convert multi-byte characters from src to utf8 string.
 
FXString mb2utf (const FXchar *src) const
 Convert multi-byte characters from src to utf8 string.
 
FXString mb2utf (const FXString &src) const
 Convert multi-byte string to utf8 string.
 
virtual FXint mb2wc (FXwchar &wc, const FXchar *src, FXint nsrc) const
 Convert multi-byte characters from src to single wide character.
 
virtual FXint utf2mblen (const FXchar *src, FXint nsrc) const
 Count multi-byte characters characters needed to convert utf8 from src.
 
virtual FXint utf2mblen (const FXString &src) const
 Count multi-byte characters characters needed to convert utf8 from src.
 
virtual FXint utf2mb (FXchar *dst, FXint ndst, const FXchar *src, FXint nsrc) const
 Convert utf8 characters at src to multi-byte characters at dst.
 
FXint utf2mb (FXchar *dst, FXint ndst, const FXchar *src) const
 Convert utf8 characters at src to multi-byte characters at dst.
 
FXint utf2mb (FXchar *dst, FXint ndst, const FXString &src) const
 Convert utf8 characters at src to multi-byte characters at dst.
 
FXString utf2mb (const FXchar *src, FXint nsrc) const
 Convert utf8 characters at src to multi-byte string.
 
FXString utf2mb (const FXchar *src) const
 Convert utf8 characters at src to multi-byte string.
 
FXString utf2mb (const FXString &src) const
 Convert utf8 string to multi-byte string.
 
virtual FXint wc2mb (FXchar *dst, FXint ndst, FXwchar wc) const
 Convert single wide character to multi-byte characters at dst.
 
virtual FXint mibEnum () const =0
 Return the Management Information Base (MIBenum) for the character set.
 
virtual const FXchar * name () const =0
 Return name of the codec.
 
virtual const FXchar * mimeName () const =0
 Return the IANA mime name for this codec; this is used for example as "text/utf-8" in drag and drop protocols.
 
virtual const FXchar *const * aliases () const =0
 Return NULL-terminated list of aliases for this codec.
 
virtual ~FXTextCodec ()
 Destruct codec.
 
- Public Member Functions inherited from FX::FXObject
const FXchar * getClassName () const
 Get class name of some object.
 
FXbool isMemberOf (const FXMetaClass *metaclass) const
 Check if object is member of metaclass.
 
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
 Try handle message safely, catching certain exceptions.
 
virtual long onDefault (FXObject *, FXSelector, void *)
 Called for unhandled messages.
 
virtual void save (FXStream &store) const
 Save object to stream.
 
virtual void load (FXStream &store)
 Load object from stream.
 
virtual ~FXObject ()
 Virtual destructor.
 

Detailed Description

Abstract base class for a stateless coder/decoder.


The documentation for this class was generated from the following file:

Copyright © 1997-2022 Jeroen van der Zijp