55 if (!setlocale(LC_ALL,
""))
56 g_warning(
"locale not supported by C library");
148 else if (c < 0x10000)
150 else if (c < 0x200000)
152 else if (c < 0x4000000)
169 }
else if (c < 0x800) {
172 }
else if (c < 0x10000) {
175 }
else if (c < 0x200000) {
178 }
else if (c < 0x4000000) {
189 bp[5] = (c & 0x3f) | 0x80;
192 bp[4] = (c & 0x3f) | 0x80;
195 bp[3] = (c & 0x3f) | 0x80;
198 bp[2] = (c & 0x3f) | 0x80;
201 bp[1] = (c & 0x3f) | 0x80;
238 while (cp != end && dest != dest + dest_max) {
245 }
else if ((c & 0xe0) == 0xc0) {
248 }
else if ((c & 0xf0) == 0xe0) {
251 }
else if ((c & 0xf8) == 0xf0) {
254 }
else if ((c & 0xfc) == 0xf8) {
257 }
else if ((c & 0xfc) == 0xfc) {
266 *dest = (cp[0] & mask);
267 for (i = 1; i <
len; i++) {
268 if ((cp[i] & 0xc0) != 0x80)
271 *dest |= (cp[i] & 0x3f);
299 return mbstowcs(dest, src, src_len);
309 while (cp != end && wcp != dest + dest_max) {
316 }
else if ((c & 0xe0) == 0xc0) {
319 }
else if ((c & 0xf0) == 0xe0) {
328 *wcp = (cp[0] & mask);
329 for (i = 1; i <
len; i++) {
330 if ((cp[i] & 0xc0) != 0x80)
333 *wcp |= (cp[i] & 0x3f);
void gdk_ic_destroy(GdkIC *ic)
gint gdk_nmbstowcs(GdkWChar *dest, const gchar *src, gint src_len, gint dest_max)
gpointer g_malloc(gulong n_bytes)
void gdk_ic_get_values(GdkIC *ic,...)
GdkIC * gdk_ic_new(GdkICAttr *attr, GdkICAttributesType mask)
GdkIMStyle gdk_im_decide_style(GdkIMStyle supported_style)
GdkICAttributesType gdk_ic_get_attr(GdkIC *ic, GdkICAttr *attr, GdkICAttributesType mask)
G_BEGIN_DECLS typedef char gchar
gint gdk_mbstowcs(GdkWChar *dest, const gchar *src, gint dest_max)
GdkIMStyle gdk_im_set_best_style(GdkIMStyle style)
GdkICAttributesType gdk_ic_set_attr(GdkIC *ic, GdkICAttr *attr, GdkICAttributesType mask)
gchar * g_win32_getlocale(void)
g_win32_getlocale:
void gdk_ic_set_values(GdkIC *ic,...)
GdkIMStyle gdk_ic_get_style(GdkIC *ic)
gchar * gdk_set_locale(void)
gchar * gdk_wcstombs(const GdkWChar *src)
static void g_warning(const gchar *format,...)
void gdk_im_begin(GdkIC *ic, GdkWindow *window)
#define dest(otri, vertexptr)
GdkEventMask gdk_ic_get_events(GdkIC *ic)
gint gdk_nmbstowchar_ts(wchar_t *dest, const gchar *src, gint src_len, gint dest_max)