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

FX::FXUTF16Codec Class Reference

Codec for UTF-16. More...

#include <FXUTF16Codec.h>

Inheritance diagram for FX::FXUTF16Codec:

FX::FXTextCodec List of all members.

Public Member Functions

 FXUTF16Codec ()
virtual unsigned long fromUnicode (FXuchar *&dest, unsigned long m, const FXwchar *&src, unsigned long n)
unsigned long insertBOM (FXuchar *&dest, unsigned long m)
virtual unsigned long toUnicode (FXwchar *&dest, unsigned long m, const FXuchar *&src, unsigned long n)
virtual const FXchar * mimeName () const
virtual FXint mibEnum () const
virtual ~FXUTF16Codec ()

Detailed Description

Codec for UTF-16.


Constructor & Destructor Documentation

FX::FXUTF16Codec::FXUTF16Codec  )  [inline]
 

Constructor.

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

Destructor.


Member Function Documentation

virtual unsigned long FX::FXUTF16Codec::fromUnicode FXuchar *&  dest,
unsigned long  m,
const FXwchar *&  src,
unsigned long  n
[virtual]
 

Convert a sequence of wide characters from Unicode to UTF-16.

Reads at most n wide characters from src and writes at most m bytes into dest. Returns the number of characters actually written into dest.

On exit, the src and dest pointers are updated to point to the next available character (or byte) for reading (writing).

Implements FX::FXTextCodec.

unsigned long FX::FXUTF16Codec::insertBOM FXuchar *&  dest,
unsigned long  m
 

Insert byte-order mark (BOM) into the stream.

virtual unsigned long FX::FXUTF16Codec::toUnicode FXwchar *&  dest,
unsigned long  m,
const FXuchar *&  src,
unsigned long  n
[virtual]
 

Convert a sequence of bytes in UTF-16 encoding to a sequence of wide characters (Unicode).

Reads at most n bytes from src and writes at most m characters into dest. Returns the number of characters actually read from src.

On exit, the src and dest pointers are updated to point to the next available byte (or character) for writing (reading).

Implements FX::FXTextCodec.

virtual const FXchar* FX::FXUTF16Codec::mimeName  )  const [virtual]
 

Return the IANA mime name for this codec.

Implements FX::FXTextCodec.

virtual FXint FX::FXUTF16Codec::mibEnum  )  const [virtual]
 

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

Implements FX::FXTextCodec.

Copyright © 1997-2004 Jeroen van der Zijp