unicode_reactos

unicode_reactos —

Synopsis




typedef     captive_ucs2;
const captive_ucs2* captive_ucs4_to_ucs2_const
                                            (const gunichar *string_ucs4);

Description

Details

captive_ucs2

typedef guint16 captive_ucs2;

This type is separated from Gnome gunichar2 as captive_ucs2 MUST be used for UCS-2 encoded strings in the opposite of gunichar2 beging used for UTF-16 encoded strings.


captive_ucs4_to_ucs2_const ()

const captive_ucs2* captive_ucs4_to_ucs2_const
                                            (const gunichar *string_ucs4);

Constant string conversion from 32-bit wchar_t to 16-bit wchar_t. You may not modify the result in any way.

It is guaranteed to get two different string addresses for two different input addresses even if the input strings content is the same. Otherwise we would behave as GCC option -fmerge-constants which results in C non-conforming behaviour.

string_ucs4 : const gunichar * type of persistent string to convert. This string MUST remain readable with the same content forever. This string MUST be convertible to UCS-2 string.
Returns : const captive_ucs2 * converted string string_ucs4.