| OLD | NEW |
| 1 /* | 1 /* |
| 2 ****************************************************************************** | 2 ****************************************************************************** |
| 3 * Copyright (C) 2001-2013, International Business Machines | 3 * Copyright (C) 2001-2015, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ****************************************************************************** | 5 ****************************************************************************** |
| 6 * file name: uinit.cpp | 6 * file name: uinit.cpp |
| 7 * encoding: US-ASCII | 7 * encoding: US-ASCII |
| 8 * tab size: 8 (not used) | 8 * tab size: 8 (not used) |
| 9 * indentation:4 | 9 * indentation:4 |
| 10 * | 10 * |
| 11 * created on: 2001July05 | 11 * created on: 2001July05 |
| 12 * created by: George Rhoten | 12 * created by: George Rhoten |
| 13 */ | 13 */ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 27 static UInitOnce gICUInitOnce = U_INITONCE_INITIALIZER; | 27 static UInitOnce gICUInitOnce = U_INITONCE_INITIALIZER; |
| 28 | 28 |
| 29 static UBool U_CALLCONV uinit_cleanup() { | 29 static UBool U_CALLCONV uinit_cleanup() { |
| 30 gICUInitOnce.reset(); | 30 gICUInitOnce.reset(); |
| 31 return TRUE; | 31 return TRUE; |
| 32 } | 32 } |
| 33 | 33 |
| 34 static void U_CALLCONV | 34 static void U_CALLCONV |
| 35 initData(UErrorCode &status) | 35 initData(UErrorCode &status) |
| 36 { | 36 { |
| 37 #if UCONFIG_ENABLE_PLUGINS |
| 37 /* initialize plugins */ | 38 /* initialize plugins */ |
| 38 uplug_init(&status); | 39 uplug_init(&status); |
| 40 #endif |
| 39 | 41 |
| 40 #if !UCONFIG_NO_CONVERSION | 42 #if !UCONFIG_NO_CONVERSION |
| 41 /* | 43 /* |
| 42 * 2005-may-02 | 44 * 2005-may-02 |
| 43 * | 45 * |
| 44 * ICU4C 3.4 (jitterbug 4497) hardcodes the data for Unicode character | 46 * ICU4C 3.4 (jitterbug 4497) hardcodes the data for Unicode character |
| 45 * properties for APIs that want to be fast. | 47 * properties for APIs that want to be fast. |
| 46 * Therefore, we need not load them here nor check for errors. | 48 * Therefore, we need not load them here nor check for errors. |
| 47 * Instead, we load the converter alias table to see if any ICU data | 49 * Instead, we load the converter alias table to see if any ICU data |
| 48 * is available. | 50 * is available. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 61 | 63 |
| 62 /* | 64 /* |
| 63 * ICU Initialization Function. Need not be called. | 65 * ICU Initialization Function. Need not be called. |
| 64 */ | 66 */ |
| 65 U_CAPI void U_EXPORT2 | 67 U_CAPI void U_EXPORT2 |
| 66 u_init(UErrorCode *status) { | 68 u_init(UErrorCode *status) { |
| 67 UTRACE_ENTRY_OC(UTRACE_U_INIT); | 69 UTRACE_ENTRY_OC(UTRACE_U_INIT); |
| 68 umtx_initOnce(gICUInitOnce, &initData, *status); | 70 umtx_initOnce(gICUInitOnce, &initData, *status); |
| 69 UTRACE_EXIT_STATUS(*status); | 71 UTRACE_EXIT_STATUS(*status); |
| 70 } | 72 } |
| OLD | NEW |