21#ifndef __ICU_UCNV_SEL_H__
22#define __ICU_UCNV_SEL_H__
26#if !UCONFIG_NO_CONVERSION
33#if U_SHOW_CPLUSPLUS_API
80ucnvsel_open(
const char*
const* converterList, int32_t converterListSize,
81 const USet* excludedCodePoints,
100#if U_SHOW_CPLUSPLUS_API
153 void* buffer, int32_t bufferCapacity,
UErrorCode* status);
189 const char *s, int32_t length,
UErrorCode *status);
"Smart pointer" class, closes a UConverterSelector via ucnvsel_close().
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
C API: Character conversion.
UConverterUnicodeSet
Selectors for Unicode sets that can be returned by ucnv_getUnicodeSet().
U_CAPI int32_t ucnvsel_serialize(const UConverterSelector *sel, void *buffer, int32_t bufferCapacity, UErrorCode *status)
Serialize a selector into a linear buffer.
U_CAPI 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 UConverterSelector UConverterSelector
Typedef for selector data structure.
U_CAPI UConverterSelector * ucnvsel_open(const char *const *converterList, int32_t converterListSize, const USet *excludedCodePoints, const UConverterUnicodeSet whichSet, UErrorCode *status)
Open a selector.
U_CAPI 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.
U_CAPI void ucnvsel_close(UConverterSelector *sel)
Closes a selector.
U_CAPI UConverterSelector * ucnvsel_openFromSerialized(const void *buffer, int32_t length, UErrorCode *status)
Open a selector from its serialized form.
C API: String Enumeration.
struct UEnumeration UEnumeration
structure representing an enumeration object instance
#define U_CAPI
This is used to declare a function as a public ICU C API.
char16_t UChar
The base type for UTF-16 code units and pointers.
struct USet USet
USet is the C API type corresponding to C++ class UnicodeSet.
C API: 16-bit Unicode handling macros.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.