ICU 64.2  64.2
ucnv_cb.h
Go to the documentation of this file.
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 **********************************************************************
5 * Copyright (C) 2000-2004, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 **********************************************************************
8  * ucnv_cb.h:
9  * External APIs for the ICU's codeset conversion library
10  * Helena Shih
11  *
12  * Modification History:
13  *
14  * Date Name Description
15  */
16 
63 #ifndef UCNV_CB_H
64 #define UCNV_CB_H
65 
66 #include "unicode/utypes.h"
67 
68 #if !UCONFIG_NO_CONVERSION
69 
70 #include "unicode/ucnv.h"
71 #include "unicode/ucnv_err.h"
72 
87 U_STABLE void U_EXPORT2
89  const char* source,
90  int32_t length,
91  int32_t offsetIndex,
92  UErrorCode * err);
93 
107 U_STABLE void U_EXPORT2
109  int32_t offsetIndex,
110  UErrorCode * err);
111 
125  const UChar** source,
126  const UChar* sourceLimit,
127  int32_t offsetIndex,
128  UErrorCode * err);
129 
144  const UChar* source,
145  int32_t length,
146  int32_t offsetIndex,
147  UErrorCode * err);
148 
160  int32_t offsetIndex,
161  UErrorCode * err);
162 #endif
163 
164 #endif
The structure for the toUnicode callback function parameter.
Definition: ucnv_err.h:210
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:194
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
The base type for UTF-16 code units and pointers.
Definition: umachine.h:342
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:401
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:111