| 1 | /* |
| 2 | * SPDX-FileCopyrightText: 2014 Weng Xuetian <wengxt@gmail.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: LGPL-2.1-only |
| 5 | * |
| 6 | */ |
| 7 | #ifndef _XCB_IMDKIT_ENCODING_H_ |
| 8 | #define _XCB_IMDKIT_ENCODING_H_ |
| 9 | |
| 10 | #include "ximcommon.h" |
| 11 | #include <stdlib.h> |
| 12 | |
| 13 | XCBIMDKIT_DECL_BEGIN |
| 14 | |
| 15 | XCBIMDKIT_EXPORT void xcb_compound_text_init(); |
| 16 | XCBIMDKIT_EXPORT char * |
| 17 | xcb_utf8_to_compound_text(const char *utf8, size_t length, size_t *lenghtOut); |
| 18 | XCBIMDKIT_EXPORT char *xcb_compound_text_to_utf8(const char *compound_text, |
| 19 | size_t length, |
| 20 | size_t *lenghtOut); |
| 21 | |
| 22 | XCBIMDKIT_DECL_END |
| 23 | |
| 24 | #endif // _XCB_IMDKIT_ENCODING_H_ |