Logo Search packages:      
Sourcecode: icu version File versions

ucnvsel.h File Reference


Detailed Description

A converter selector is built with a set of encoding/charset names and given an input string returns the set of names of the corresponding converters which can convert the string.

A converter selector can be serialized into a buffer and reopened from the serialized form.

Definition in file ucnvsel.h.

#include "unicode/uset.h"
#include "unicode/utypes.h"
#include "unicode/utf16.h"
#include "unicode/uenum.h"
#include "unicode/ucnv.h"

Go to the source code of this file.

Typedefs

typedef struct UConverterSelector UConverterSelector

Functions

U_CAPI void U_EXPORT2 ucnvsel_close (UConverterSelector *sel)
U_CAPI UConverterSelector
*U_EXPORT2 
ucnvsel_open (const char *const *converterList, int32_t converterListSize, const USet *excludedCodePoints, const UConverterUnicodeSet whichSet, UErrorCode *status)
U_CAPI UConverterSelector
*U_EXPORT2 
ucnvsel_openFromSerialized (const void *buffer, int32_t length, UErrorCode *status)
U_CAPI UEnumeration *U_EXPORT2 ucnvsel_selectForString (const UConverterSelector *sel, const UChar *s, int32_t length, UErrorCode *status)
U_CAPI UEnumeration *U_EXPORT2 ucnvsel_selectForUTF8 (const UConverterSelector *sel, const char *s, int32_t length, UErrorCode *status)
U_CAPI int32_t U_EXPORT2 ucnvsel_serialize (const UConverterSelector *sel, void *buffer, int32_t bufferCapacity, UErrorCode *status)


Generated by  Doxygen 1.6.0   Back to index