ICU 72.1 72.1
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
87U_CAPI void U_EXPORT2
89 const char* source,
90 int32_t length,
91 int32_t offsetIndex,
92 UErrorCode * err);
93
107U_CAPI 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 fromUnicode callback function parameter.
Definition: ucnv_err.h:194
The structure for the toUnicode callback function parameter.
Definition: ucnv_err.h:210
C API: Character conversion.
U_CAPI void ucnv_cbFromUWriteBytes(UConverterFromUnicodeArgs *args, const char *source, int32_t length, int32_t offsetIndex, UErrorCode *err)
ONLY used by FromU callback functions.
U_CAPI void ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args, const UChar **source, const UChar *sourceLimit, int32_t offsetIndex, UErrorCode *err)
ONLY used by fromU callback functions.
U_CAPI void ucnv_cbToUWriteUChars(UConverterToUnicodeArgs *args, const UChar *source, int32_t length, int32_t offsetIndex, UErrorCode *err)
ONLY used by ToU callback functions.
U_CAPI void ucnv_cbToUWriteSub(UConverterToUnicodeArgs *args, int32_t offsetIndex, UErrorCode *err)
ONLY used by ToU callback functions.
U_CAPI void ucnv_cbFromUWriteSub(UConverterFromUnicodeArgs *args, int32_t offsetIndex, UErrorCode *err)
ONLY used by FromU callback functions.
C API: UConverter predefined error callbacks.
#define U_CAPI
This is used to declare a function as a public ICU C API.
Definition: umachine.h:110
char16_t UChar
The base type for UTF-16 code units and pointers.
Definition: umachine.h:412
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Definition: utypes.h:415