ICU 56.1: ucnv_cb.h Source File

ICU 56.1 56.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

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
86 ucnv_cbFromUWriteBytes (UConverterFromUnicodeArgs *args,
87 const char* source,
88 int32_t length,
89 int32_t offsetIndex,
90 UErrorCode * err);
91
105 U_STABLE void U_EXPORT2
106 ucnv_cbFromUWriteSub (UConverterFromUnicodeArgs *args,
107 int32_t offsetIndex,
108 UErrorCode * err);
109
122 U_STABLE void U_EXPORT2 ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args,
123 const UChar** source,
124 const UChar* sourceLimit,
125 int32_t offsetIndex,
126 UErrorCode * err);
127
141 U_STABLE void U_EXPORT2 ucnv_cbToUWriteUChars (UConverterToUnicodeArgs *args,
142 const UChar* source,
143 int32_t length,
144 int32_t offsetIndex,
145 UErrorCode * err);
146
157 U_STABLE void U_EXPORT2 ucnv_cbToUWriteSub (UConverterToUnicodeArgs *args,
158 int32_t offsetIndex,
159 UErrorCode * err);
160 #endif
161
162 #endif
UConverterToUnicodeArgs
The structure for the toUnicode callback function parameter.
Definition: ucnv_err.h:208
ucnv_cbToUWriteSub
void ucnv_cbToUWriteSub(UConverterToUnicodeArgs *args, int32_t offsetIndex, UErrorCode *err)
ONLY used by ToU callback functions.
UConverterFromUnicodeArgs
The structure for the fromUnicode callback function parameter.
Definition: ucnv_err.h:192
ucnv_cbFromUWriteUChars
void ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args, const UChar **source, const UChar *sourceLimit, int32_t offsetIndex, UErrorCode *err)
ONLY used by fromU callback functions.
ucnv_cbFromUWriteSub
void ucnv_cbFromUWriteSub(UConverterFromUnicodeArgs *args, int32_t offsetIndex, UErrorCode *err)
ONLY used by FromU callback functions.
ucnv_cbFromUWriteBytes
void ucnv_cbFromUWriteBytes(UConverterFromUnicodeArgs *args, const char *source, int32_t length, int32_t offsetIndex, UErrorCode *err)
ONLY used by FromU callback functions.
ucnv_cbToUWriteUChars
void ucnv_cbToUWriteUChars(UConverterToUnicodeArgs *args, const UChar *source, int32_t length, int32_t offsetIndex, UErrorCode *err)
ONLY used by ToU callback functions.
UChar
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:312
UErrorCode
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:476
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
ucnv_err.h
C UConverter predefined error callbacks.
ucnv.h
C API: Character conversion.
U_STABLE
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:109