bindbc.icu.bindings.ucnv

ucnv.h
License: BSL-1.0.
struct USet;
enum UConverterType: int;
UCNV_UNSUPPORTED_CONVERTER
UCNV_SBCS
UCNV_DBCS
UCNV_MBCS
UCNV_LATIN_1
UCNV_UTF8
UCNV_UTF16_BigEndian
UCNV_UTF16_LittleEndian
UCNV_UTF32_BigEndian
UCNV_UTF32_LittleEndian
UCNV_EBCDIC_STATEFUL
UCNV_ISO_2022
UCNV_LMBCS_1
UCNV_LMBCS_2
UCNV_LMBCS_3
UCNV_LMBCS_4
UCNV_LMBCS_5
UCNV_LMBCS_6
UCNV_LMBCS_8
UCNV_LMBCS_11
UCNV_LMBCS_16
UCNV_LMBCS_17
UCNV_LMBCS_18
UCNV_LMBCS_19
UCNV_LMBCS_LAST
UCNV_HZ
UCNV_SCSU
UCNV_ISCII
UCNV_US_ASCII
UCNV_UTF7
UCNV_BOCU1
UCNV_UTF16
UCNV_UTF32
UCNV_CESU8
UCNV_IMAP_MAILBOX
UCNV_COMPOUND_TEXT
UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES
enum UConverterPlatform: int;
UCNV_UNKNOWN
UCNV_IBM
alias UConverterToUCallback = extern (C) void function(const(void)* context, UConverterToUnicodeArgs* args, const(ubyte)* codeUnits, int length, UConverterCallbackReason reason, UErrorCode* pErrorCode);
alias UConverterFromUCallback = extern (C) void function(const(void)* context, UConverterFromUnicodeArgs* args, const(wchar)* codeUnits, int length, dchar codePoint, UConverterCallbackReason reason, UErrorCode* pErrorCode);
enum char UCNV_OPTION_SEP_CHAR;
enum string UCNV_OPTION_SEP_STRING;
enum char UCNV_VALUE_SEP_CHAR;
enum string UCNV_VALUE_SEP_STRING;
enum string UCNV_LOCALE_OPTION_STRING;
enum string UCNV_VERSION_OPTION_STRING;
enum string UCNV_SWAP_LFNL_OPTION_STRING;
int ucnv_compareNames_70(const(char)* name1, const(char)* name2);
@system UConverter* ucnv_open_70(const(char)* converterName, UErrorCode* err);
@system UConverter* ucnv_openU_70(const(char)* name, UErrorCode* err);
@system UConverter* ucnv_openCCSID_70(int codepage, UConverterPlatform platform, UErrorCode* err);
@system UConverter* ucnv_openPackage_70(const(char)* packageName, const(char)* converterName, UErrorCode* err);
@system UConverter* ucnv_safeClone_70(const(UConverter)* cnv, void* stackBuffer, int* pBufferSize, UErrorCode* status);
enum int U_CNV_SAFECLONE_BUFFERSIZE;
@system void ucnv_close_70(UConverter* converter);
void ucnv_getSubstChars_70(const(UConverter)* converter, Char* subChars, byte* len, UErrorCode* err);
void ucnv_setSubstChars_70(UConverter* converter, const(Char)* subChars, byte len, UErrorCode* err);
void ucnv_setSubstString_70(UConverter* cnv, const(UChar)* s, int length, UErrorCode* err);
void ucnv_getInvalidChars_70(const(UConverter)* converter, Char* errBytes, byte* len, UErrorCode* err);
void ucnv_getInvalidUChars_70(const(UConverter)* converter, UChar* errUChars, byte* len, UErrorCode* err);
void ucnv_reset_70(UConverter* converter);
void ucnv_resetToUnicode_70(UConverter* converter);
void ucnv_resetFromUnicode_70(UConverter* converter);
byte ucnv_getMaxCharSize_70(const(UConverter)* converter);
int UCNV_GET_MAX_BYTES_FOR_STRING()(int length, int maxCharSize);
byte ucnv_getMinCharSize_70(const(UConverter)* converter);
int ucnv_getDisplayName_70(const(UConverter)* converter, const(char)* displayLocale, UChar* displayName, int displayNameCapacity, UErrorCode* err);
const(char)* ucnv_getName_70(const(UConverter)* converter, UErrorCode* err);
int ucnv_getCCSID_70(const(UConverter)* converter, UErrorCode* err);
UConverterPlatform ucnv_getPlatform_70(const(UConverter)* converter, UErrorCode* err);
UConverterType ucnv_getType_70(const(UConverter)* converter);
void ucnv_getStarters_70(const(UConverter)* converter, ref UBool[256] starters, UErrorCode* err);
enum UConverterUnicodeSet: int;
UCNV_ROUNDTRIP_SET
UCNV_ROUNDTRIP_AND_FALLBACK_SET
void ucnv_getUnicodeSet_70(const(UConverter)* cnv, USet* setFillIn, UConverterUnicodeSet whichSet, UErrorCode* pErrorCode);
void ucnv_getToUCallBack_70(const(UConverter)* converter, UConverterToUCallback* action, const(void*)* context);
void ucnv_getFromUCallBack_70(const(UConverter)* converter, UConverterFromUCallback* action, const(void*)* context);
void ucnv_setToUCallBack_70(UConverter* converter, UConverterToUCallback newAction, const(void)* newContext, UConverterToUCallback* oldAction, const(void*)* oldContext, UErrorCode* err);
void ucnv_setFromUCallBack_70(UConverter* converter, UConverterFromUCallback newAction, const(void)* newContext, UConverterFromUCallback* oldAction, const(void*)* oldContext, UErrorCode* err);
void ucnv_fromUnicode_70(UConverter* converter, Char** target, const(Char)* targetLimit, const(UChar*)* source, const(UChar)* sourceLimit, int* offsets, UBool flush, UErrorCode* err);
void ucnv_toUnicode_70(UConverter* converter, UChar** target, const(UChar)* targetLimit, const(Char*)* source, const(Char)* sourceLimit, int* offsets, UBool flush, UErrorCode* err);
int ucnv_fromUChars_70(UConverter* cnv, Char* dest, int destCapacity, const(UChar)* src, int srcLength, UErrorCode* pErrorCode);
int ucnv_toUChars_70(UConverter* cnv, UChar* dest, int destCapacity, const(Char)* src, int srcLength, UErrorCode* pErrorCode);
UChar32 ucnv_getNextUChar_70(UConverter* converter, const(Char*)* source, const(Char)* sourceLimit, UErrorCode* err);
void ucnv_convertEx_70(UConverter* targetCnv, UConverter* sourceCnv, Char** target, const(Char)* targetLimit, const(Char*)* source, const(Char)* sourceLimit, UChar* pivotStart, UChar** pivotSource, UChar** pivotTarget, const(UChar)* pivotLimit, UBool reset, UBool flush, UErrorCode* pErrorCode);
int ucnv_convert_70(const(char)* toConverterName, const(char)* fromConverterName, Char* target, int targetCapacity, const(Char)* source, int sourceLength, UErrorCode* pErrorCode);
int ucnv_toAlgorithmic_70(UConverterType algorithmicType, UConverter* cnv, Char* target, int targetCapacity, const(Char)* source, int sourceLength, UErrorCode* pErrorCode);
int ucnv_fromAlgorithmic_70(UConverter* cnv, UConverterType algorithmicType, Char* target, int targetCapacity, const(Char)* source, int sourceLength, UErrorCode* pErrorCode);
int ucnv_flushCache_70();
int ucnv_countAvailable_70();
const(char)* ucnv_getAvailableName_70(int n);
@system UEnumeration* ucnv_openAllNames_70(UErrorCode* pErrorCode);
ushort ucnv_countAliases_70(const(char)* alias_, UErrorCode* pErrorCode);
const(char)* ucnv_getAlias_70(const(char)* alias_, ushort n, UErrorCode* pErrorCode);
void ucnv_getAliases_70(const(char)* alias_, const(char*)* aliases, UErrorCode* pErrorCode);
@system UEnumeration* ucnv_openStandardNames_70(const(char)* convName, const(char)* standard, UErrorCode* pErrorCode);
ushort ucnv_countStandards_70();
const(char)* ucnv_getStandard_70(ushort n, UErrorCode* pErrorCode);
const(char)* ucnv_getStandardName_70(const(char)* name, const(char)* standard, UErrorCode* pErrorCode);
const(char)* ucnv_getCanonicalName_70(const(char)* alias_, const(char)* standard, UErrorCode* pErrorCode);
const(char)* ucnv_getDefaultName_70();
void ucnv_setDefaultName_70(const(char)* name);
void ucnv_fixFileSeparator_70(const(UConverter)* cnv, UChar* source, int sourceLen);
UBool ucnv_isAmbiguous_70(const(UConverter)* cnv);
void ucnv_setFallback_70(UConverter* cnv, UBool usesFallback);
UBool ucnv_usesFallback_70(const(UConverter)* cnv);
const(char)* ucnv_detectUnicodeSignature_70(const(Char)* source, int sourceLength, int* signatureLength, UErrorCode* pErrorCode);
int ucnv_fromUCountPending_70(const(UConverter)* cnv, UErrorCode* status);
int ucnv_toUCountPending_70(const(UConverter)* cnv, UErrorCode* status);
UBool ucnv_isFixedWidth_70(UConverter* cnv, UErrorCode* status);