[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-dev
Subject:    RE: How do I use Xerces strings?
From:       "Scott Cantor" <cantor.2 () osu ! edu>
Date:       2006-03-08 7:18:30
Message-ID: 006401c64280$80e22830$6501a8c0 () oit ! ohiostate ! edu
[Download RAW message or body]

> I believe the second function is superfluous.  Yes, I am depending on a 
> conversion from const char* to QString.  As for the pointer becoming
> invalid, that probably depends on what Xerces does with what I pass.
> If the first 
> thing it does is copy it, then I'm home free.  Or, at least that is my 
> understanding of the C++ Standard.

Because it would wait to destruct the temp object until the outer function
returns? Maybe so, I'd never thought of trying it. It wouldn't have been my
intuition, though.

> IIRC, there /are/ different UTF encodings, even within UTF-16.  
> There is something called UCS-4, and also something called UCS-2 (I
> believe). I do not know the difference between these and their related 
> UTF-32 and UTF-16.

Nor I, but that's what I had in mind when I expressed caution.

-- Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic