> I'm wondering if I can count on the fact that the
> chars argument to the characters( ) method will be a
> null terminated array?

No, you cannot.

> The documentation seems not to indicate either way,
> but the fact that the length is passed explicitly
> suggests that it is not neccasarily null temrinated.
> Still, in the tests I've run, chars[length] has
> alwasy been zero

That's just an artifact of the current implementation, or the documents 
you are parsing.

> The reason I ask is because I'd like to call
> XMLString::transcode so I can place the contents into
> an std::string.

Make sure you transcode to UTF-8.

> If it is and if the char argument is not
> guaranteed to be null terminated than I guess I'll
> have to make a copy before calling transcode.

Why?  The transcoder interface does not require this.  Do not use 
XMLString::transcode(), whatever you do, because it transcodes to the 
local code page, and you have no guarantee that all characters can be 
represented.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to