1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 3 /****************************************************************************** 4 * 5 * Copyright (C) 2001, International Business Machines 6 * Corporation and others. All Rights Reserved. 7 * 8 ******************************************************************************* 9 * file name: stubdata.cpp 10 * 11 * Define initialized data that will build into a valid, but empty 12 * ICU data library. Used to bootstrap the ICU build, which has these 13 * dependencies: 14 * ICU Common library depends on ICU data 15 * ICU data requires data building tools. 16 * ICU data building tools require the ICU common library. 17 * 18 * The stub data library (for which this file is the source) is sufficient 19 * for running the data building tools. 20 */ 21 22 #include "stubdata.h" 23 24 extern "C" U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT alignas(16) = { 25 32, /* headerSize */ 26 0xda, /* magic1, (see struct MappedData in udata.c) */ 27 0x27, /* magic2 */ 28 { /*UDataInfo */ 29 sizeof(UDataInfo), /* size */ 30 0, /* reserved */ 31 32 #if U_IS_BIG_ENDIAN 33 1, 34 #else 35 0, 36 #endif 37 38 U_CHARSET_FAMILY, 39 sizeof(char16_t), 40 0, /* reserved */ 41 {0x54, 0x6f, 0x43, 0x50}, /* data format identifier: "ToCP" */ 42 {1, 0, 0, 0}, /* format version major, minor, milli, micro */ 43 {0, 0, 0, 0} /* dataVersion */ 44 }, 45 { 's', 't', 'u', 'b', 'd', 'a', 't', 'a' }, /* Padding[8] */ 46 0, /* count */ 47 0, /* Reserved */ 48 { /* TOC structure */ 49 0 , 0 /* name and data entries. Count says there are none, */ 50 /* but put one in just in case. */ 51 } 52 }; 53