You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Mark A Russell <ma...@csgsystems.com> on 2001/05/07 18:16:10 UTC
Last parameter of transcodeFrom?
Further transcoding question about the following function from
Iconv400Transcoder:
virtual unsigned int transcodeFrom
(
const XMLByte* const srcData
, const unsigned int srcCount
, XMLCh* const toFill
, const unsigned int maxChars
, unsigned int& bytesEaten
, unsigned char* const charSizes
);
I'm using this to transcode from the platform encoding to the encoding used
by XMLCh. (Basically I'm trying to give it a wchar_t and get an XMLCh out
of it)
What value is this function expecting for charSizes?
Mark A Russell
NextGen Software Engineer
CSG Systems, Inc.
E-Mail: mark_russell@csgsystems.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Last parameter of transcodeFrom?
Posted by Dean Roddey <dr...@charmedquark.com>.
It is an array of unsigned chars, which must be at least as big as the max
output chars, into which will be inserted values that indicate how many
bytes from the input when into each XMLCh that was created in the output
buffer. Since many encodings use variable numbers of byte per character,
this provides a means to find out what bytes in the input went into making a
particular output UTF-16 character.
--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
droddey@charmedquark.com
http://www.charmedquark.com
"Why put off until tomorrow what you can
put off until the day after tomorrow?"
----- Original Message -----
From: "Mark A Russell" <ma...@csgsystems.com>
To: "Xerces C++ Mailing List" <xe...@xml.apache.org>
Sent: Monday, May 07, 2001 9:16 AM
Subject: Last parameter of transcodeFrom?
> Further transcoding question about the following function from
> Iconv400Transcoder:
>
> virtual unsigned int transcodeFrom
> (
> const XMLByte* const srcData
> , const unsigned int srcCount
> , XMLCh* const toFill
> , const unsigned int maxChars
> , unsigned int& bytesEaten
> , unsigned char* const charSizes
> );
>
> I'm using this to transcode from the platform encoding to the encoding
used
> by XMLCh. (Basically I'm trying to give it a wchar_t and get an XMLCh out
> of it)
>
> What value is this function expecting for charSizes?
>
>
> Mark A Russell
> NextGen Software Engineer
> CSG Systems, Inc.
> E-Mail: mark_russell@csgsystems.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org