90#if !UCONFIG_NO_CONVERSION
102#define UCNV_SUB_STOP_ON_ILLEGAL "i"
108#define UCNV_SKIP_STOP_ON_ILLEGAL "i"
114#define UCNV_ESCAPE_ICU NULL
119#define UCNV_ESCAPE_JAVA "J"
125#define UCNV_ESCAPE_C "C"
131#define UCNV_ESCAPE_XML_DEC "D"
137#define UCNV_ESCAPE_XML_HEX "X"
142#define UCNV_ESCAPE_UNICODE "U"
149#define UCNV_ESCAPE_CSS2 "S"
239 const UChar* codeUnits,
263 const char* codeUnits,
290 const UChar* codeUnits,
320 const UChar* codeUnits,
376 const UChar* codeUnits,
404 const char* codeUnits,
430 const char* codeUnits,
456 const char* codeUnits,
The structure for the fromUnicode callback function parameter.
const char * targetLimit
Pointer to the limit (end + 1) of target buffer.
UBool flush
The internal state of converter will be reset and data flushed if set to true.
const UChar * source
Pointer to the source source buffer.
int32_t * offsets
Pointer to the buffer that receives the offsets.
const UChar * sourceLimit
Pointer to the limit (end + 1) of source buffer.
uint16_t size
The size of this struct.
char * target
Pointer to the target buffer.
UConverter * converter
Pointer to the converter that is opened and to which this struct is passed as an argument.
The structure for the toUnicode callback function parameter.
const UChar * targetLimit
Pointer to the limit (end + 1) of target buffer.
UBool flush
The internal state of converter will be reset and data flushed if set to true.
uint16_t size
The size of this struct.
UChar * target
Pointer to the target buffer.
UConverter * converter
Pointer to the converter that is opened and to which this struct is passed as an argument.
int32_t * offsets
Pointer to the buffer that receives the offsets.
const char * sourceLimit
Pointer to the limit (end + 1) of source buffer.
const char * source
Pointer to the source source buffer.
struct UConverter UConverter
U_CAPI void UCNV_FROM_U_CALLBACK_ESCAPE(const void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar *codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode *err)
DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback will Substitute the ILLEGAL SEQUENCE w...
UConverterCallbackReason
The process condition code to be used with the callbacks.
@ UCNV_IRREGULAR
The codepoint is not a regular sequence in the encoding.
@ UCNV_ILLEGAL
The code point is illegal.
@ UCNV_RESET
The callback is called with this reason when a 'reset' has occurred.
@ UCNV_CLOSE
Called when the converter is closed.
@ UCNV_UNASSIGNED
The code point is unassigned.
@ UCNV_CLONE
Called when ucnv_safeClone() is called on the converter.
U_CAPI void UCNV_TO_U_CALLBACK_SUBSTITUTE(const void *context, UConverterToUnicodeArgs *toUArgs, const char *codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode *err)
DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback will Substitute the ILLEGAL SEQUENCE,...
U_CAPI void UCNV_FROM_U_CALLBACK_SKIP(const void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar *codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode *err)
DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback skips any ILLEGAL_SEQUENCE,...
U_CAPI void UCNV_FROM_U_CALLBACK_STOP(const void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar *codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode *err)
DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback STOPS at the ILLEGAL_SEQUENCE,...
U_CAPI void UCNV_FROM_U_CALLBACK_SUBSTITUTE(const void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar *codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode *err)
DO NOT CALL THIS FUNCTION DIRECTLY! This From Unicode callback will Substitute the ILLEGAL SEQUENCE,...
U_CAPI void UCNV_TO_U_CALLBACK_STOP(const void *context, UConverterToUnicodeArgs *toUArgs, const char *codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode *err)
DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback STOPS at the ILLEGAL_SEQUENCE,...
U_CAPI void UCNV_TO_U_CALLBACK_SKIP(const void *context, UConverterToUnicodeArgs *toUArgs, const char *codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode *err)
DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback skips any ILLEGAL_SEQUENCE,...
U_CAPI void UCNV_TO_U_CALLBACK_ESCAPE(const void *context, UConverterToUnicodeArgs *toUArgs, const char *codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode *err)
DO NOT CALL THIS FUNCTION DIRECTLY! This To Unicode callback will Substitute the ILLEGAL SEQUENCE wit...
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
int8_t UBool
The ICU boolean type, a signed-byte integer.
#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.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.