66 UTRACE_FUNCTION_START=0,
67 UTRACE_U_INIT=UTRACE_FUNCTION_START,
70#ifndef U_HIDE_DEPRECATED_API
78 UTRACE_CONVERSION_START=0x1000,
79 UTRACE_UCNV_OPEN=UTRACE_CONVERSION_START,
80 UTRACE_UCNV_OPEN_PACKAGE,
81 UTRACE_UCNV_OPEN_ALGORITHMIC,
84 UTRACE_UCNV_FLUSH_CACHE,
88#ifndef U_HIDE_DEPRECATED_API
96 UTRACE_COLLATION_START=0x2000,
97 UTRACE_UCOL_OPEN=UTRACE_COLLATION_START,
100 UTRACE_UCOL_GET_SORTKEY,
101 UTRACE_UCOL_GETLOCALE,
102 UTRACE_UCOL_NEXTSORTKEYPART,
103 UTRACE_UCOL_STRCOLLITER,
104 UTRACE_UCOL_OPEN_FROM_SHORT_STRING,
107#ifndef U_HIDE_DEPRECATED_API
168#ifndef U_HIDE_INTERNAL_API
230#ifndef U_HIDE_INTERNAL_API
282 const char *fmt, va_list args);
296UTraceData(
const void *context, int32_t fnNumber, int32_t level,
297 const char *fmt, va_list args);
465 int32_t indent,
const char *fmt, va_list args);
486 int32_t indent,
const char *fmt, ...);
501U_CAPI const char * U_EXPORT2
#define U_CDECL_END
This is used to end a declaration of a library private ICU C API.
#define U_CAPI
This is used to declare a function as a public ICU C API.
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
void UTraceData(const void *context, int32_t fnNumber, int32_t level, const char *fmt, va_list args)
Type signature for the trace function to be called from within an ICU function to display data or mes...
U_CAPI void utrace_setLevel(int32_t traceLevel)
Setter for the trace level.
U_CAPI int32_t utrace_format(char *outBuf, int32_t capacity, int32_t indent, const char *fmt,...)
Trace output Formatter.
void UTraceEntry(const void *context, int32_t fnNumber)
Type signature for the trace function to be called when entering a function.
UTraceFunctionNumber
These are the ICU functions that will be traced when tracing is enabled.
@ UTRACE_UBRK_CREATE_BREAK_ENGINE
Indicates that an internal dictionary break engine was created.
@ UTRACE_FUNCTION_LIMIT
One more than the highest normal collation trace location.
@ UTRACE_UCOL_STRCOLLUTF8
@ UTRACE_COLLATION_LIMIT
One more than the highest normal collation trace location.
@ UTRACE_UBRK_CREATE_WORD
Indicates that a word instance of break iterator was created.
@ UTRACE_UDATA_BUNDLE
Indicates that a resource bundle was opened.
@ UTRACE_UBRK_START
The lowest break iterator location.
@ UTRACE_UBRK_CREATE_LINE
Indicates that a line instance of break iterator was created.
@ UTRACE_UBRK_CREATE_SENTENCE
Indicates that a sentence instance of break iterator was created.
@ UTRACE_UBRK_LIMIT
One more than the highest normal break iterator trace location.
@ UTRACE_UDATA_DATA_FILE
Indicates that a data file was opened, but not *.res files.
@ UTRACE_UDATA_START
The lowest resource/data location.
@ UTRACE_UBRK_CREATE_TITLE
Indicates that a title instance of break iterator was created.
@ UTRACE_UDATA_RESOURCE
Indicates that a value was read from a resource bundle.
@ UTRACE_UDATA_RES_FILE
Indicates that a *.res file was opened.
@ UTRACE_RES_DATA_LIMIT
One more than the highest normal resource/data trace location.
@ UTRACE_CONVERSION_LIMIT
One more than the highest normal collation trace location.
@ UTRACE_UBRK_CREATE_CHARACTER
Indicates that a character instance of break iterator was created.
U_CAPI int32_t utrace_vformat(char *outBuf, int32_t capacity, int32_t indent, const char *fmt, va_list args)
Trace output Formatter.
UTraceLevel
Trace severity levels.
@ UTRACE_WARNING
Trace errors and warnings.
@ UTRACE_ERROR
Trace error conditions only.
@ UTRACE_OPEN_CLOSE
Trace opens and closes of ICU services.
@ UTRACE_OFF
Disable all tracing.
@ UTRACE_INFO
Trace an intermediate number of ICU operations.
@ UTRACE_VERBOSE
Trace the maximum number of ICU operations.
U_CAPI void utrace_getFunctions(const void **context, UTraceEntry **e, UTraceExit **x, UTraceData **d)
Get the currently installed ICU tracing functions.
U_CAPI void utrace_setFunctions(const void *context, UTraceEntry *e, UTraceExit *x, UTraceData *d)
Set ICU Tracing functions.
void UTraceExit(const void *context, int32_t fnNumber, const char *fmt, va_list args)
Type signature for the trace function to be called when exiting from a function.
U_CAPI int32_t utrace_getLevel(void)
Getter for the trace level.
U_CAPI const char * utrace_functionName(int32_t fnNumber)
Get the name of a function from its trace function number.
Basic definitions for ICU, for both C and C++ APIs.