[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: Lumir Vanek <vanekl () valachnet ! cz>
Date: 2006-03-08 8:30:55
Message-ID: 440E963F.9040007 () valachnet ! cz
[Download RAW message or body]
Hi,
in KXMLEditor we have helper class for QString - XMLCh* conversion, look at:
http://cvs.sourceforge.net/viewcvs.py/kxmleditor/kxmleditor/part/kxestring.h?rev=1.7&view=markup
A am not sure, if this approach is absolutely right, but it works for me.
Regards,
Lumir Vanek
>>So, if everybody is telling the truth, can I not just do this?
>>
>>const XMLCh* QtoX(const QString& s) {
>> return reinterpret_cast<const XMLCh*>(s.constData());
>>}
>>
>>const XMLCh* CtoX(const char* cs) { return QtoX(cs); }
>>
>>
>
>
>
---------------------------------------------------------------------
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