55 #ifndef U_HIDE_SYSTEM_API 157 #ifndef U_HIDE_DEPRECATED_API void * UMemReallocFn(const void *context, void *mem, size_t size)
Pointer type for a user supplied memory re-allocation function.
void * UMemAllocFn(const void *context, size_t size)
Pointer type for a user supplied memory allocation function.
void u_setAtomicIncDecFunctions(const void *context, UMtxAtomicFn *inc, UMtxAtomicFn *dec, UErrorCode *status)
Set the functions that ICU will use for atomic increment and decrement of int32_t values...
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
#define U_DEPRECATED
This is used to declare a function as a deprecated public ICU C API.
void u_setMutexFunctions(const void *context, UMtxInitFn *init, UMtxFn *destroy, UMtxFn *lock, UMtxFn *unlock, UErrorCode *status)
Set the functions that ICU will use for mutex operations Use of this function is optional; by default...
void u_cleanup(void)
Clean up the system resources, such as allocated memory or open files, used in all ICU libraries...
void UMtxFn(const void *context, UMTX *mutex)
Function Pointer type for a user supplied mutex functions.
int32_t UMtxAtomicFn(const void *context, int32_t *p)
Pointer type for a user supplied atomic increment or decrement function.
#define U_CDECL_END
This is used to end a declaration of a library private ICU C API.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
void UMemFreeFn(const void *context, void *mem)
Pointer type for a user supplied memory free function.
Basic definitions for ICU, for both C and C++ APIs.
void u_setMemoryFunctions(const void *context, UMemAllocFn *a, UMemReallocFn *r, UMemFreeFn *f, UErrorCode *status)
Set the functions that ICU will use for memory allocation.
void u_init(UErrorCode *status)
Initialize ICU.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
void * UMTX
An opaque pointer type that represents an ICU mutex.
void UMtxInitFn(const void *context, UMTX *mutex, UErrorCode *status)
Function Pointer type for a user supplied mutex initialization function.