Compounds | |||
![]() | ![]() | struct | UConverterFromUnicodeArgs |
![]() | ![]() | struct | UConverterToUnicodeArgs |
Enumerations | |||
![]() | ![]() | enum | UConverterCallbackReason { UCNV_UNASSIGNED, UCNV_ILLEGAL, UCNV_IRREGULAR, UCNV_RESET, UCNV_CLOSE } |
![]() | ![]() | The process condition code to be used with the callbacks. More... | |
Functions | |||
![]() | ![]() | U_CAPI void U_EXPORT2 | UCNV_FROM_U_CALLBACK_STOP ( void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar* codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode * err) |
![]() | ![]() | Functor STOPS at the ILLEGAL_SEQUENCE. More... | |
![]() | ![]() | U_CAPI void U_EXPORT2 | UCNV_TO_U_CALLBACK_STOP ( void *context, UConverterToUnicodeArgs *fromUArgs, const char* codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode * err) |
![]() | ![]() | Functor STOPS at the ILLEGAL_SEQUENCE. More... | |
![]() | ![]() | U_CAPI void U_EXPORT2 | UCNV_FROM_U_CALLBACK_SKIP ( void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar* codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode * err) |
![]() | ![]() | Functor SKIPs the ILLEGAL_SEQUENCE. More... | |
![]() | ![]() | U_CAPI void U_EXPORT2 | UCNV_FROM_U_CALLBACK_SUBSTITUTE ( void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar* codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode * err) |
![]() | ![]() | Functor Substitute the ILLEGAL SEQUENCE with the current substitution string assiciated with _this, in the event target buffer is too small, it will store the extra info in the UConverter, and err will be set to U_BUFFER_OVERFLOW_ERROR. More... | |
![]() | ![]() | U_CAPI void U_EXPORT2 | UCNV_FROM_U_CALLBACK_ESCAPE ( void *context, UConverterFromUnicodeArgs *fromUArgs, const UChar* codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode * err) |
![]() | ![]() | Functor Substitute the ILLEGAL SEQUENCE with a sequence escaped codepoints corresponding to the ILLEGAL SEQUENCE (format UXXXX, e.g. More... | |
![]() | ![]() | U_CAPI void U_EXPORT2 | UCNV_TO_U_CALLBACK_SKIP ( void *context, UConverterToUnicodeArgs *fromUArgs, const char* codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode * err) |
![]() | ![]() | Functor SKIPs the ILLEGAL_SEQUENCE. More... | |
![]() | ![]() | U_CAPI void U_EXPORT2 | UCNV_TO_U_CALLBACK_SUBSTITUTE ( void *context, UConverterToUnicodeArgs *fromUArgs, const char* codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode * err) |
![]() | ![]() | Functor Substitute the ILLEGAL SEQUENCE with the current substitution string assiciated with _this, in the event target buffer is too small, it will store the extra info in the UConverter, and err will be set to U_BUFFER_OVERFLOW_ERROR. More... | |
![]() | ![]() | U_CAPI void U_EXPORT2 | UCNV_TO_U_CALLBACK_ESCAPE ( void *context, UConverterToUnicodeArgs *fromUArgs, const char* codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode * err) |
![]() | ![]() | Functor Substitute the ILLEGAL SEQUENCE with a sequence escaped codepoints corresponding to the ILLEGAL SEQUENCE (format XNN, e.g. More... |
enum UConverterCallbackReason |
The process condition code to be used with the callbacks.
UCNV_UNASSIGNED : the code point is unassigned. UCNV_ILLEGAL : The code point is illegal. For example,\x81\x2E is illegal because \x2E is not a valid trail byte for the \x81 lead byte in SJIS. UCNV_IRREGULAR : The code point is not a regular sequence in the encoding. For example,\xC0\E1 is irregular because the same character can be represented as \x61. UCNV_RESET : Whether the conversion operation has been reset. UCNV_CLOSE : Whether the conversion operation has ended.
UCNV_UNASSIGNED | |
UCNV_ILLEGAL | |
UCNV_IRREGULAR | |
UCNV_RESET | |
UCNV_CLOSE |
Definition at line 55 of file ucnv_err.h.
U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_STOP (void * context, UConverterFromUnicodeArgs * fromUArgs, const UChar * codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode * err) |
Functor STOPS at the ILLEGAL_SEQUENCE.
U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP (void * context, UConverterToUnicodeArgs * fromUArgs, const char * codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode * err) |
Functor STOPS at the ILLEGAL_SEQUENCE.
U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_SKIP (void * context, UConverterFromUnicodeArgs * fromUArgs, const UChar * codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode * err) |
Functor SKIPs the ILLEGAL_SEQUENCE.
U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_SUBSTITUTE (void * context, UConverterFromUnicodeArgs * fromUArgs, const UChar * codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode * err) |
Functor Substitute the ILLEGAL SEQUENCE with the current substitution string assiciated with _this, in the event target buffer is too small, it will store the extra info in the UConverter, and err will be set to U_BUFFER_OVERFLOW_ERROR.
The next time T_UConverter_fromUnicode is called, it will store the left over data in target, before transcoding the "source Stream"
U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_ESCAPE (void * context, UConverterFromUnicodeArgs * fromUArgs, const UChar * codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode * err) |
Functor Substitute the ILLEGAL SEQUENCE with a sequence escaped codepoints corresponding to the ILLEGAL SEQUENCE (format UXXXX, e.g.
"uFFFEu00ACuC8FE"). In the Event the Converter doesn't support the characters {u,%}[A-F][0-9], it will substitute the illegal sequence with the substitution characters (it will behave like the above functor). in the event target buffer is too small, it will store the extra info in the UConverter, and err will be set to U_BUFFER_OVERFLOW_ERROR. The next time T_UConverter_fromUnicode is called, it will store the left over data in target, before transcoding the "source Stream"
U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_SKIP (void * context, UConverterToUnicodeArgs * fromUArgs, const char * codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode * err) |
Functor SKIPs the ILLEGAL_SEQUENCE.
U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_SUBSTITUTE (void * context, UConverterToUnicodeArgs * fromUArgs, const char * codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode * err) |
Functor Substitute the ILLEGAL SEQUENCE with the current substitution string assiciated with _this, in the event target buffer is too small, it will store the extra info in the UConverter, and err will be set to U_BUFFER_OVERFLOW_ERROR.
The next time T_UConverter_fromUnicode is called, it will store the left over data in target, before transcoding the "source Stream"
U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_ESCAPE (void * context, UConverterToUnicodeArgs * fromUArgs, const char * codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode * err) |
Functor Substitute the ILLEGAL SEQUENCE with a sequence escaped codepoints corresponding to the ILLEGAL SEQUENCE (format XNN, e.g.
"XFFX0AXC8X03"). in the event target buffer is too small, it will store the extra info in the UConverter, and err will be set to U_BUFFER_OVERFLOW_ERROR. The next time T_UConverter_fromUnicode is called, it will store the left over data in target, before transcoding the "source Stream"