From: George R. <gr...@us...> - 2006-07-27 15:37:13
|
There is the U=5FIS=5FBIG=5FENDIAN macro that is available. You can also detect this just as easily in your own code without ICU. For = example, some platforms define BYTE=5FORDER, BIG=5FENDIAN, and LITTLE=5FEND= IAN.=20 You can check if BYTE=5FORDER is equal to BIG=5FENDIAN. George Rhoten IBM Globalization Center of Competency/ICU San Jos=E9, CA, USA http://www.icu-project.org/ http://icu.sourceforge.net/ "Gisle Forseth" <GFo...@ac...>=20 Sent by: icu...@li... 07/27/2006 04:51 AM Please respond to ICU support mailing list <icu...@li...> To <icu...@li...> cc Subject [icu-support] ICU and endianess Hi, I read from the documentation that ICU is UTF-16, using the endianess of=20 the current platform it is built on. I need to be able to deal with the various endianesses, and I have the=20 stuff set for the necessary byteswapping. However, does ICU4C have a=20 function to return the current endianess? Something like; u=5FcurrentEndian() ?? Thanks. Gisle |