00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __ICU_UCNV_SEL_H__
00020 #define __ICU_UCNV_SEL_H__
00021
00022 #include "unicode/uset.h"
00023 #include "unicode/utypes.h"
00024 #include "unicode/utf16.h"
00025 #include "unicode/uenum.h"
00026 #include "unicode/ucnv.h"
00027
00043 struct UConverterSelector;
00044 typedef struct UConverterSelector UConverterSelector;
00069 U_CAPI UConverterSelector* U_EXPORT2
00070 ucnvsel_open(const char* const* converterList, int32_t converterListSize,
00071 const USet* excludedCodePoints,
00072 const UConverterUnicodeSet whichSet, UErrorCode* status);
00073
00087 U_CAPI void U_EXPORT2
00088 ucnvsel_close(UConverterSelector *sel);
00089
00105 U_CAPI UConverterSelector* U_EXPORT2
00106 ucnvsel_openFromSerialized(const void* buffer, int32_t length, UErrorCode* status);
00107
00122 U_CAPI int32_t U_EXPORT2
00123 ucnvsel_serialize(const UConverterSelector* sel,
00124 void* buffer, int32_t bufferCapacity, UErrorCode* status);
00125
00140 U_CAPI UEnumeration * U_EXPORT2
00141 ucnvsel_selectForString(const UConverterSelector* sel,
00142 const UChar *s, int32_t length, UErrorCode *status);
00143
00158 U_CAPI UEnumeration * U_EXPORT2
00159 ucnvsel_selectForUTF8(const UConverterSelector* sel,
00160 const char *s, int32_t length, UErrorCode *status);
00161
00162 #endif