00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __ICU_UCNV_SEL_H__
00022 #define __ICU_UCNV_SEL_H__
00023
00024 #include "unicode/utypes.h"
00025
00026 #if !UCONFIG_NO_CONVERSION
00027
00028 #include "unicode/uset.h"
00029 #include "unicode/utf16.h"
00030 #include "unicode/uenum.h"
00031 #include "unicode/ucnv.h"
00032 #include "unicode/localpointer.h"
00033
00049 struct UConverterSelector;
00050 typedef struct UConverterSelector UConverterSelector;
00075 U_STABLE UConverterSelector* U_EXPORT2
00076 ucnvsel_open(const char* const* converterList, int32_t converterListSize,
00077 const USet* excludedCodePoints,
00078 const UConverterUnicodeSet whichSet, UErrorCode* status);
00079
00093 U_STABLE void U_EXPORT2
00094 ucnvsel_close(UConverterSelector *sel);
00095
00096 #if U_SHOW_CPLUSPLUS_API
00097
00098 U_NAMESPACE_BEGIN
00099
00109 U_DEFINE_LOCAL_OPEN_POINTER(LocalUConverterSelectorPointer, UConverterSelector, ucnvsel_close);
00110
00111 U_NAMESPACE_END
00112
00113 #endif
00114
00130 U_STABLE UConverterSelector* U_EXPORT2
00131 ucnvsel_openFromSerialized(const void* buffer, int32_t length, UErrorCode* status);
00132
00147 U_STABLE int32_t U_EXPORT2
00148 ucnvsel_serialize(const UConverterSelector* sel,
00149 void* buffer, int32_t bufferCapacity, UErrorCode* status);
00150
00165 U_STABLE UEnumeration * U_EXPORT2
00166 ucnvsel_selectForString(const UConverterSelector* sel,
00167 const UChar *s, int32_t length, UErrorCode *status);
00168
00183 U_STABLE UEnumeration * U_EXPORT2
00184 ucnvsel_selectForUTF8(const UConverterSelector* sel,
00185 const char *s, int32_t length, UErrorCode *status);
00186
00187 #endif
00188
00189 #endif