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

FX::FXTextCodec Class Reference

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 List of all members.

Public Member Functions

 FXTextCodec ()
virtual FXint mb2utflen (const FXchar *src, FXint nsrc) const
FXint mb2utflen (const FXString &src) const
virtual FXint mb2utf (FXchar *dst, FXint ndst, const FXchar *src, FXint nsrc) const
FXint mb2utf (FXchar *dst, FXint ndst, const FXchar *src) const
FXint mb2utf (FXchar *dst, FXint ndst, const FXString &src) const
FXString mb2utf (const FXchar *src, FXint nsrc) const
FXString mb2utf (const FXchar *src) const
FXString mb2utf (const FXString &src) const
virtual FXint mb2wc (FXwchar &wc, const FXchar *src, FXint nsrc) const
virtual FXint utf2mblen (const FXchar *src, FXint nsrc) const
virtual FXint utf2mblen (const FXString &src) const
virtual FXint utf2mb (FXchar *dst, FXint ndst, const FXchar *src, FXint nsrc) const
FXint utf2mb (FXchar *dst, FXint ndst, const FXchar *src) const
FXint utf2mb (FXchar *dst, FXint ndst, const FXString &src) const
FXString utf2mb (const FXchar *src, FXint nsrc) const
FXString utf2mb (const FXchar *src) const
FXString utf2mb (const FXString &src) const
virtual FXint wc2mb (FXchar *dst, FXint ndst, FXwchar wc) const
virtual FXint mibEnum () const =0
virtual const FXcharname () const =0
virtual const FXcharmimeName () const =0
virtual const FXchar *const * aliases () const =0
virtual ~FXTextCodec ()

Static Public Member Functions

static FXint utf2wc (FXwchar &wc, const FXchar *src, FXint nsrc)
static FXint utf2wc (FXwchar &wc, const FXnchar *src, FXint nsrc)
static FXint utf2wc (FXwchar &wc, const FXwchar *src, FXint nsrc)
static FXint wc2utf (FXchar *dst, FXint ndst, FXwchar wc)
static FXint wc2utf (FXnchar *dst, FXint ndst, FXwchar wc)
static FXint wc2utf (FXwchar *dst, FXint ndst, FXwchar wc)

Detailed Description

Abstract base class for a stateless coder/decoder.


Constructor & Destructor Documentation

FX::FXTextCodec::FXTextCodec  )  [inline]
 

Construct text codec.

virtual FX::FXTextCodec::~FXTextCodec  )  [inline, virtual]
 

Destruct codec.


Member Function Documentation

static FXint FX::FXTextCodec::utf2wc FXwchar wc,
const FXchar src,
FXint  nsrc
[static]
 

Convert utf8 to single wide character.

static FXint FX::FXTextCodec::utf2wc FXwchar wc,
const FXnchar src,
FXint  nsrc
[static]
 

Convert utf16 to single wide character.

static FXint FX::FXTextCodec::utf2wc FXwchar wc,
const FXwchar src,
FXint  nsrc
[static]
 

Convert utf32 to single wide character.

static FXint FX::FXTextCodec::wc2utf FXchar dst,
FXint  ndst,
FXwchar  wc
[static]
 

Convert single wide character to utf8.

static FXint FX::FXTextCodec::wc2utf FXnchar dst,
FXint  ndst,
FXwchar  wc
[static]
 

Convert single wide character to utf16.

static FXint FX::FXTextCodec::wc2utf FXwchar dst,
FXint  ndst,
FXwchar  wc
[static]
 

Convert single wide character to utf32.

virtual FXint FX::FXTextCodec::mb2utflen const FXchar src,
FXint  nsrc
const [virtual]
 

Count utf8 bytes needed to convert multi-byte characters from src.

Reimplemented in FX::FXUTF16Codec, and FX::FXUTF32Codec.

FXint FX::FXTextCodec::mb2utflen const FXString src  )  const
 

Count utf8 bytes needed to convert multi-byte characters from src.

virtual FXint FX::FXTextCodec::mb2utf FXchar dst,
FXint  ndst,
const FXchar src,
FXint  nsrc
const [virtual]
 

Convert multi-byte characters from src to utf8 characters at dst.

Reimplemented in FX::FXUTF16Codec, and FX::FXUTF32Codec.

FXint FX::FXTextCodec::mb2utf FXchar dst,
FXint  ndst,
const FXchar src
const
 

Convert multi-byte characters from src to utf8 characters at dst.

FXint FX::FXTextCodec::mb2utf FXchar dst,
FXint  ndst,
const FXString src
const
 

Convert multi-byte characters from src to utf8 characters at dst.

FXString FX::FXTextCodec::mb2utf const FXchar src,
FXint  nsrc
const
 

Convert multi-byte characters from src to utf8 string.

FXString FX::FXTextCodec::mb2utf const FXchar src  )  const
 

Convert multi-byte characters from src to utf8 string.

FXString FX::FXTextCodec::mb2utf const FXString src  )  const
 

Convert multi-byte string to utf8 string.

virtual FXint FX::FXTextCodec::mb2wc FXwchar wc,
const FXchar src,
FXint  nsrc
const [virtual]
 

Convert multi-byte characters from src to single wide character.

Reimplemented in 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::FXUTF16LECodec, FX::FXUTF16Codec, FX::FXUTF32BECodec, FX::FXUTF32LECodec, FX::FXUTF32Codec, and FX::FXUTF8Codec.

virtual FXint FX::FXTextCodec::utf2mblen const FXchar src,
FXint  nsrc
const [virtual]
 

Count multi-byte characters characters needed to convert utf8 from src.

Reimplemented in FX::FXUTF16Codec, and FX::FXUTF32Codec.

virtual FXint FX::FXTextCodec::utf2mblen const FXString src  )  const [virtual]
 

Count multi-byte characters characters needed to convert utf8 from src.

virtual FXint FX::FXTextCodec::utf2mb FXchar dst,
FXint  ndst,
const FXchar src,
FXint  nsrc
const [virtual]
 

Convert utf8 characters at src to multi-byte characters at dst.

Reimplemented in FX::FXUTF16Codec, and FX::FXUTF32Codec.

FXint FX::FXTextCodec::utf2mb FXchar dst,
FXint  ndst,
const FXchar src
const
 

Convert utf8 characters at src to multi-byte characters at dst.

FXint FX::FXTextCodec::utf2mb FXchar dst,
FXint  ndst,
const FXString src
const
 

Convert utf8 characters at src to multi-byte characters at dst.

FXString FX::FXTextCodec::utf2mb const FXchar src,
FXint  nsrc
const
 

Convert utf8 characters at src to multi-byte string.

FXString FX::FXTextCodec::utf2mb const FXchar src  )  const
 

Convert utf8 characters at src to multi-byte string.

FXString FX::FXTextCodec::utf2mb const FXString src  )  const
 

Convert utf8 string to multi-byte string.

virtual FXint FX::FXTextCodec::wc2mb FXchar dst,
FXint  ndst,
FXwchar  wc
const [virtual]
 

Convert single wide character to multi-byte characters at dst.

Reimplemented in 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::FXUTF16LECodec, FX::FXUTF16Codec, FX::FXUTF32BECodec, FX::FXUTF32LECodec, FX::FXUTF32Codec, and FX::FXUTF8Codec.

virtual FXint FX::FXTextCodec::mibEnum  )  const [pure virtual]
 

Return the Management Information Base (MIBenum) for the character set.

Implemented in 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::FXUTF16LECodec, FX::FXUTF16Codec, FX::FXUTF32BECodec, FX::FXUTF32LECodec, FX::FXUTF32Codec, and FX::FXUTF8Codec.

virtual const FXchar* FX::FXTextCodec::name  )  const [pure virtual]
 

Return name of the codec.

Implemented in 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::FXUTF16LECodec, FX::FXUTF16Codec, FX::FXUTF32BECodec, FX::FXUTF32LECodec, FX::FXUTF32Codec, and FX::FXUTF8Codec.

virtual const FXchar* FX::FXTextCodec::mimeName  )  const [pure virtual]
 

Return the IANA mime name for this codec; this is used for example as "text/utf-8" in drag and drop protocols.

Implemented in 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::FXUTF16LECodec, FX::FXUTF16Codec, FX::FXUTF32BECodec, FX::FXUTF32LECodec, FX::FXUTF32Codec, and FX::FXUTF8Codec.

virtual const FXchar* const* FX::FXTextCodec::aliases  )  const [pure virtual]
 

Return NULL-terminated list of aliases for this codec.

Implemented in 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::FXUTF16LECodec, FX::FXUTF16Codec, FX::FXUTF32BECodec, FX::FXUTF32LECodec, FX::FXUTF32Codec, and FX::FXUTF8Codec.

Copyright © 1997-2005 Jeroen van der Zijp