W
wolverine
Hi
Let me explain my situation first. I was porting a code from
windows to linux. The code used xerces parser and also used
std::wstring thoughout. When i came to linux the XMLCh(typedef
unsigned short) is of 2 bytes and wchar_t is 4 bytes. So it became
impossible to use std::wstring in the code as it was also using xerces
which expects each character (XMLCh) as 2 bytes.
Then i tried creating a new string class like typedef
std::basic_string<XMLCh, XMLCh_traits> uString; with traits defined.
Then came the new problem, i also needed to create stringstream for the
above defined uString. This is going from tough to tougher.
Have any one of you encountered the same problem or the appropriate
question is to ask a solution for the problem rather than creating
uString and uStringStream.
Thanks in Advance
Kiran.
Let me explain my situation first. I was porting a code from
windows to linux. The code used xerces parser and also used
std::wstring thoughout. When i came to linux the XMLCh(typedef
unsigned short) is of 2 bytes and wchar_t is 4 bytes. So it became
impossible to use std::wstring in the code as it was also using xerces
which expects each character (XMLCh) as 2 bytes.
Then i tried creating a new string class like typedef
std::basic_string<XMLCh, XMLCh_traits> uString; with traits defined.
Then came the new problem, i also needed to create stringstream for the
above defined uString. This is going from tough to tougher.
Have any one of you encountered the same problem or the appropriate
question is to ask a solution for the problem rather than creating
uString and uStringStream.
Thanks in Advance
Kiran.