25 #define SWAPW(value) LESwaps::swapWord((le_uint16)(value))
33 #define SWAPL(value) LESwaps::swapLong((le_uint32)(value))
59 #if (defined(U_IS_BIG_ENDIAN) && U_IS_BIG_ENDIAN) || \
60 (defined(BYTE_ORDER) && defined(BIG_ENDIAN) && (BYTE_ORDER == BIG_ENDIAN)) || \
61 defined(__BIG_ENDIAN__)
83 #if (defined(U_IS_BIG_ENDIAN) && U_IS_BIG_ENDIAN) || \
84 (defined(BYTE_ORDER) && defined(BIG_ENDIAN) && (BYTE_ORDER == BIG_ENDIAN)) || \
85 defined(__BIG_ENDIAN__)
91 return (
le_uint32)((p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]);
uint32_t le_uint32
A type used for unsigned, 32-bit integers.
uint16_t le_uint16
A type used for unsigned, 16-bit integers.
#define U_LAYOUT_API
Set to export library symbols from inside the layout engine library, and to import them from outside...
This class is used to access data which stored in big endian order regardless of the conventions of t...
C API: Basic definitions for the ICU LayoutEngine.
static le_uint16 swapWord(le_uint16 value)
Reads a big-endian 16-bit word and returns a native-endian value.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
static le_uint32 swapLong(le_uint32 value)
Reads a big-endian 32-bit word and returns a native-endian value.
uint8_t le_uint8
A type used for unsigned, 8-bit integers.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.