ICU 78.3
78.3
Toggle main menu visibility
Loading...
Searching...
No Matches
common
unicode
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
62
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_CAPI
void
U_EXPORT2
88
ucnv_cbFromUWriteBytes
(
UConverterFromUnicodeArgs
*args,
89
const
char
* source,
90
int32_t length,
91
int32_t offsetIndex,
92
UErrorCode
* err);
93
107
U_CAPI
void
U_EXPORT2
108
ucnv_cbFromUWriteSub
(
UConverterFromUnicodeArgs
*args,
109
int32_t offsetIndex,
110
UErrorCode
* err);
111
124
U_CAPI
void
U_EXPORT2
ucnv_cbFromUWriteUChars
(
UConverterFromUnicodeArgs
*args,
125
const
UChar
** source,
126
const
UChar
* sourceLimit,
127
int32_t offsetIndex,
128
UErrorCode
* err);
129
143
U_CAPI
void
U_EXPORT2
ucnv_cbToUWriteUChars
(
UConverterToUnicodeArgs
*args,
144
const
UChar
* source,
145
int32_t length,
146
int32_t offsetIndex,
147
UErrorCode
* err);
148
159
U_CAPI
void
U_EXPORT2
ucnv_cbToUWriteSub
(
UConverterToUnicodeArgs
*args,
160
int32_t offsetIndex,
161
UErrorCode
* err);
162
#endif
163
164
#endif
UConverterFromUnicodeArgs
The structure for the fromUnicode callback function parameter.
Definition
ucnv_err.h:194
UConverterToUnicodeArgs
The structure for the toUnicode callback function parameter.
Definition
ucnv_err.h:210
ucnv.h
C API: Character conversion.
ucnv_cbFromUWriteBytes
U_CAPI void ucnv_cbFromUWriteBytes(UConverterFromUnicodeArgs *args, const char *source, int32_t length, int32_t offsetIndex, UErrorCode *err)
ONLY used by FromU callback functions.
ucnv_cbFromUWriteUChars
U_CAPI void ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args, const UChar **source, const UChar *sourceLimit, int32_t offsetIndex, UErrorCode *err)
ONLY used by fromU callback functions.
ucnv_cbToUWriteUChars
U_CAPI void ucnv_cbToUWriteUChars(UConverterToUnicodeArgs *args, const UChar *source, int32_t length, int32_t offsetIndex, UErrorCode *err)
ONLY used by ToU callback functions.
ucnv_cbToUWriteSub
U_CAPI void ucnv_cbToUWriteSub(UConverterToUnicodeArgs *args, int32_t offsetIndex, UErrorCode *err)
ONLY used by ToU callback functions.
ucnv_cbFromUWriteSub
U_CAPI void ucnv_cbFromUWriteSub(UConverterFromUnicodeArgs *args, int32_t offsetIndex, UErrorCode *err)
ONLY used by FromU callback functions.
ucnv_err.h
C API: UConverter predefined error callbacks.
UChar
char16_t UChar
The base type for UTF-16 code units and pointers.
Definition
umachine.h:400
U_CAPI
#define U_CAPI
This is used to declare a function as a public ICU C API.
Definition
umachine.h:110
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Definition
utypes.h:509
Generated by
1.17.0