From 2bd279447ef6bf295371f4995fb3f5ff353acd4f Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Fri, 8 Dec 2000 01:08:43 +0000 Subject: [PATCH] ICU-747 change two new header entries from count values to more convenient and consistent start indexes X-SVN-Rev: 3166 --- icu4c/source/tools/genprops/store.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/icu4c/source/tools/genprops/store.c b/icu4c/source/tools/genprops/store.c index 9690cdc7188..c0de08733d2 100644 --- a/icu4c/source/tools/genprops/store.c +++ b/icu4c/source/tools/genprops/store.c @@ -71,19 +71,19 @@ Formally, the file contains the following structures: A1 const uint16_t STAGE_3_BITS(=4); (STAGE_1_BITS(=11) not stored, implicitly=21-(STAGE_2_BITS+STAGE_3_BITS)) A2 const uint16_t exceptionsIndex; -- 32-bit unit index - A3 const uint16_t stage2Top; -- number of elements in stage2, new in formatVersion 1.1 + A3 const uint16_t stage3Index; -- 16-bit unit index of stage3, new in formatVersion 1.1 A4 const uint16_t propsIndex; -- 32-bit unit index, new in formatVersion 1.1 - A5 const uint16_t exceptionsTop; -- number of exceptions units, new in formatVersion 1.1 + A5 const uint16_t exceptionsTopIndex; -- 32-bit unit index to the first unit after exceptions units, new in formatVersion 1.1 A6 const uint16_t reservedIndex; A7 const uint16_t reservedIndex; S1 const uint16_t stage1[0x440]; -- 0x440=0x110000>>10 - S2 const uint16_t stage2[variable size, stage2Top==A3]; + S2 const uint16_t stage2[variable size]; S3 const uint16_t stage3[variable size]; (possible 1*uint16_t for padding to 4-alignment) P const uint32_t props32[variable size]; - E const uint32_t exceptions[variable size, exceptionsTop==A5]; + E const uint32_t exceptions[variable size]; 3-stage lookup and properties: @@ -1048,8 +1048,8 @@ generateData(const char *dataDir) { stage1[i]+=offset; } - indexes[3]=stage2Top; /* number of elements in stage2 */ offset+=stage2Top; /* uint16_t offset to stage3[] */ + indexes[3]=offset; for(i=0; i