1 /* Copyright (C) 2016 and later: Unicode, Inc. and others.
2 License & terms of use: http://www.unicode.org/copyright.html#License
4 Copyright (c) 2000 IBM, Inc. and Others.
5 FLAGCB.H - interface to 'flagging' callback which
6 simply marks the fact that the callback was called.
12 #include "unicode/utypes.h"
13 #include "unicode/ucnv.h"
15 /* The structure of a FromU Flag context.
16 (conceivably there could be a ToU Flag Context) */
20 UConverterFromUCallback subCallback;
21 const void *subContext;
29 U_CAPI FromUFLAGContext* U_EXPORT2 flagCB_fromU_openContext();
34 U_CAPI void U_EXPORT2 flagCB_fromU(
36 UConverterFromUnicodeArgs *fromUArgs,
37 const UChar* codeUnits,
40 UConverterCallbackReason reason,
47 UConverterFromUCallback subCallback;
48 const void *subContext;
49 uint32_t magic; /* 0xC0FFEE to identify that the object is OK */
50 uint32_t serial; /* minted from nextSerial */
53 U_CAPI void debugCB_fromU(const void *context,
54 UConverterFromUnicodeArgs *fromUArgs,
55 const UChar* codeUnits,
58 UConverterCallbackReason reason,
61 U_CAPI debugCBContext *debugCB_openContext();