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