ucnvsel.h

Go to the documentation of this file.
00001 /*
00002 *******************************************************************************
00003 *
00004 *   Copyright (C) 2008, International Business Machines
00005 *   Corporation, Google and others.  All Rights Reserved.
00006 *
00007 *******************************************************************************
00008 */
00009 /*
00010  * Author : eldawy@google.com (Mohamed Eldawy)
00011  * ucnvsel.h
00012  *
00013  * Purpose: To generate a list of encodings capable of handling
00014  * a given Unicode text
00015  *
00016  * Started 09-April-2008
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  /* __ICU_UCNV_SEL_H__ */

Generated on 21 Jul 2013 for ICU 4.2.1 by  doxygen 1.4.7