ICU 50.1.2  50.1.2
ucnv_cb.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (C) 2000-2004, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6  * ucnv_cb.h:
7  * External APIs for the ICU's codeset conversion library
8  * Helena Shih
9  *
10  * Modification History:
11  *
12  * Date Name Description
13  */
14 
61 #ifndef UCNV_CB_H
62 #define UCNV_CB_H
63 
64 #include "unicode/utypes.h"
65 
66 #if !UCONFIG_NO_CONVERSION
67 
68 #include "unicode/ucnv.h"
69 #include "unicode/ucnv_err.h"
70 
85 U_STABLE void U_EXPORT2
87  const char* source,
88  int32_t length,
89  int32_t offsetIndex,
90  UErrorCode * err);
91 
105 U_STABLE void U_EXPORT2
107  int32_t offsetIndex,
108  UErrorCode * err);
109 
123  const UChar** source,
124  const UChar* sourceLimit,
125  int32_t offsetIndex,
126  UErrorCode * err);
127 
142  const UChar* source,
143  int32_t length,
144  int32_t offsetIndex,
145  UErrorCode * err);
146 
158  int32_t offsetIndex,
159  UErrorCode * err);
160 #endif
161 
162 #endif
The structure for the toUnicode callback function parameter.
Definition: ucnv_err.h:208
void ucnv_cbToUWriteSub(UConverterToUnicodeArgs *args, int32_t offsetIndex, UErrorCode *err)
ONLY used by ToU callback functions.
The structure for the fromUnicode callback function parameter.
Definition: ucnv_err.h:192
void ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args, const UChar **source, const UChar *sourceLimit, int32_t offsetIndex, UErrorCode *err)
ONLY used by fromU callback functions.
void ucnv_cbFromUWriteSub(UConverterFromUnicodeArgs *args, int32_t offsetIndex, UErrorCode *err)
ONLY used by FromU callback functions.
void ucnv_cbFromUWriteBytes(UConverterFromUnicodeArgs *args, const char *source, int32_t length, int32_t offsetIndex, UErrorCode *err)
ONLY used by FromU callback functions.
void ucnv_cbToUWriteUChars(UConverterToUnicodeArgs *args, const UChar *source, int32_t length, int32_t offsetIndex, UErrorCode *err)
ONLY used by ToU callback functions.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
Definition: umachine.h:278
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:476
Basic definitions for ICU, for both C and C++ APIs.
C UConverter predefined error callbacks.
C API: Character conversion.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:109