1 /* Copyright 2011 Google Inc. All Rights Reserved.
5 #include "unicode/udata.h"
8 ** This function attempts to load the ICU data tables from a DLL.
9 ** Returns 0 on failure, nonzero on success.
10 ** This a hack job of icu_utils.cc:Initialize(). It's Chrome-specific code.
13 #define ICU_DATA_SYMBOL "icudt" U_ICU_VERSION_SHORT "_dat"
14 int sqlite_shell_init_icu() {
19 // Chrome dropped U_ICU_VERSION_SHORT from the icu data dll name.
20 module = LoadLibrary(L"icudt.dll");
24 addr = GetProcAddress(module, ICU_DATA_SYMBOL);
29 udata_setCommonData(addr, &err);