[fdo-dev] single-char to wide-char conversion

Greg Boone greg.boone at autodesk.com
Tue Sep 5 10:19:17 EDT 2006


If you are converting to/from multibyte, use the following marcos....

	...\Utilities\Common\Inc\FdoCommonStringUtil.h

		multibyte_to_wide
		wide_to_multibyte

If you are converting to/from utf8, use the functions...


	...\Fdo\Unmanaged\Inc\Common\StringP.h


		FdoStringP::Utf8FromUnicode
		FdoStringP::Utf8ToUnicode

We have the multibyte macros because class FdoStringP does not act on
multibyte strings.

Greg


-----Original Message-----
From: Mateusz Loskot [mailto:mateusz at loskot.net] 
Sent: Monday, September 04, 2006 11:06 PM
To: dev at fdo.osgeo.org
Subject: [fdo-dev] single-char to wide-char conversion

Hi,

What's the recommended procedure to convert single-byte
character string to wide-character string?

Is FdoStringP::Utf8ToUnicode() function recommended to convert
strings?


Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at fdo.osgeo.org
For additional commands, e-mail: dev-help at fdo.osgeo.org






More information about the Fdo-internals mailing list