2004-10-06 23:10:53 +00:00
|
|
|
/*
|
|
|
|
******************************************************************************
|
|
|
|
* *
|
2012-08-11 04:57:13 +00:00
|
|
|
* Copyright (C) 2001-2012, International Business Machines *
|
2004-10-06 23:10:53 +00:00
|
|
|
* Corporation and others. All Rights Reserved. *
|
|
|
|
* *
|
|
|
|
******************************************************************************
|
|
|
|
* file name: uinit.c
|
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created on: 2001July05
|
|
|
|
* created by: George Rhoten
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
2010-06-01 06:10:26 +00:00
|
|
|
#include "unicode/icuplug.h"
|
2004-10-06 23:10:53 +00:00
|
|
|
#include "unicode/uclean.h"
|
2010-06-01 06:10:26 +00:00
|
|
|
#include "cmemory.h"
|
|
|
|
#include "icuplugimp.h"
|
|
|
|
#include "ucln.h"
|
2005-05-03 22:59:01 +00:00
|
|
|
#include "ucnv_io.h"
|
2010-06-01 06:10:26 +00:00
|
|
|
#include "utracimp.h"
|
2004-10-06 23:10:53 +00:00
|
|
|
|
2012-08-11 04:57:13 +00:00
|
|
|
static void U_CALLCONV
|
|
|
|
initData(UErrorCode *status)
|
|
|
|
{
|
2005-05-03 22:59:01 +00:00
|
|
|
/*
|
|
|
|
* 2005-may-02
|
|
|
|
*
|
|
|
|
* ICU4C 3.4 (jitterbug 4497) hardcodes the data for Unicode character
|
|
|
|
* properties for APIs that want to be fast.
|
|
|
|
* Therefore, we need not load them here nor check for errors.
|
|
|
|
* Instead, we load the converter alias table to see if any ICU data
|
|
|
|
* is available.
|
|
|
|
* Users should really open the service objects they need and check
|
|
|
|
* for errors there, to make sure that the actual items they need are
|
|
|
|
* available.
|
|
|
|
*/
|
|
|
|
#if !UCONFIG_NO_CONVERSION
|
2006-09-30 22:35:25 +00:00
|
|
|
ucnv_io_countKnownConverters(status);
|
2004-10-06 23:10:53 +00:00
|
|
|
#endif
|
2012-08-11 04:57:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ICU Initialization Function. Need not be called.
|
|
|
|
*/
|
|
|
|
U_CAPI void U_EXPORT2
|
|
|
|
u_init(UErrorCode *status) {
|
|
|
|
UTRACE_ENTRY_OC(UTRACE_U_INIT);
|
|
|
|
|
|
|
|
/* initialize plugins */
|
|
|
|
uplug_init(status);
|
|
|
|
ucln_mutexedInit(initData, status);
|
2010-01-09 02:15:20 +00:00
|
|
|
|
2004-10-06 23:10:53 +00:00
|
|
|
UTRACE_EXIT_STATUS(*status);
|
|
|
|
}
|