|
version 1.7, 2001/12/14 19:54:01
|
version 1.8, 2002/11/25 14:04:53
|
|
|
|
| Xutf8ResetIC(ic) | Xutf8ResetIC(ic) |
| XIC ic; | XIC ic; |
| { | { |
| if (ic->core.im) |
if (ic->core.im) { |
| |
if (*ic->methods->utf8_reset) |
| return (*ic->methods->utf8_reset)(ic); | return (*ic->methods->utf8_reset)(ic); |
| |
else if (*ic->methods->mb_reset) |
| |
return (*ic->methods->mb_reset)(ic); |
| |
} |
| return (char *)NULL; | return (char *)NULL; |
| } | } |
| | |
|
|
|
| KeySym *keysym; | KeySym *keysym; |
| Status *status; | Status *status; |
| { | { |
| if (ic->core.im) |
if (ic->core.im) { |
| |
if (*ic->methods->utf8_lookup_string) |
| return (*ic->methods->utf8_lookup_string) (ic, ev, buffer, nbytes, | return (*ic->methods->utf8_lookup_string) (ic, ev, buffer, nbytes, |
| keysym, status); | keysym, status); |
| |
else if (*ic->methods->mb_lookup_string) |
| |
return (*ic->methods->mb_lookup_string) (ic, ev, buffer, nbytes, |
| |
keysym, status); |
| |
} |
| return XLookupNone; | return XLookupNone; |
| } | } |