19 #ifndef __OPENCC_TYPES_H_
20 #define __OPENCC_TYPES_H_
24 #endif // ifdef __cplusplus
29 typedef void* opencc_t;
31 typedef uint32_t ucs4_t;
35 OPENCC_ERROR_DICTLOAD,
37 OPENCC_ERROR_ENCODING,
38 OPENCC_ERROR_ENCODIND = OPENCC_ERROR_ENCODING,
39 OPENCC_ERROR_CONVERTER
41 typedef enum _opencc_error opencc_error;
43 enum _opencc_dictionary_type {
44 OPENCC_DICTIONARY_TYPE_TEXT,
45 OPENCC_DICTIONARY_TYPE_DATRIE
47 typedef enum _opencc_dictionary_type opencc_dictionary_type;
49 enum _opencc_conversion_mode {
50 OPENCC_CONVERSION_FAST = 0,
51 OPENCC_CONVERSION_SEGMENT_ONLY = 1,
52 OPENCC_CONVERSION_LIST_CANDIDATES = 2
54 typedef enum _opencc_conversion_mode opencc_conversion_mode;
58 #endif // ifdef __cplusplus