19 #ifndef __ICU_UCNV_SEL_H__
20 #define __ICU_UCNV_SEL_H__
24 #if !UCONFIG_NO_CONVERSION
47 struct UConverterSelector;
48 typedef struct UConverterSelector UConverterSelector;
73 U_STABLE UConverterSelector* U_EXPORT2
74 ucnvsel_open(
const char*
const* converterList, int32_t converterListSize,
75 const USet* excludedCodePoints,
94 #if U_SHOW_CPLUSPLUS_API
128 U_STABLE UConverterSelector* U_EXPORT2
147 void* buffer, int32_t bufferCapacity,
UErrorCode* status);
183 const char *s, int32_t length,
UErrorCode *status);
UConverterSelector * ucnvsel_openFromSerialized(const void *buffer, int32_t length, UErrorCode *status)
Open a selector from its serialized form.
UEnumeration * ucnvsel_selectForString(const UConverterSelector *sel, const UChar *s, int32_t length, UErrorCode *status)
Select converters that can map all characters in a UTF-16 string, ignoring the excluded code points...
struct UEnumeration UEnumeration
structure representing an enumeration object instance
UEnumeration * ucnvsel_selectForUTF8(const UConverterSelector *sel, const char *s, int32_t length, UErrorCode *status)
Select converters that can map all characters in a UTF-8 string, ignoring the excluded code points...
void ucnvsel_close(UConverterSelector *sel)
Closes a selector.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
UConverterUnicodeSet
Selectors for Unicode sets that can be returned by ucnv_getUnicodeSet().
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
int32_t ucnvsel_serialize(const UConverterSelector *sel, void *buffer, int32_t bufferCapacity, UErrorCode *status)
Serialize a selector into a linear buffer.
C API: 16-bit Unicode handling macros.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
"Smart pointer" class, closes a UConverterSelector via ucnvsel_close().
UConverterSelector * ucnvsel_open(const char *const *converterList, int32_t converterListSize, const USet *excludedCodePoints, const UConverterUnicodeSet whichSet, UErrorCode *status)
Open a selector.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
C API: String Enumeration.
Basic definitions for ICU, for both C and C++ APIs.
C API: Character conversion.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.