| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2 ******************************************************************************* | 2 ******************************************************************************* | 
| 3 * | 3 * | 
| 4 *   Copyright (C) 2005-2013, International Business Machines | 4 *   Copyright (C) 2005-2014, International Business Machines | 
| 5 *   Corporation and others.  All Rights Reserved. | 5 *   Corporation and others.  All Rights Reserved. | 
| 6 * | 6 * | 
| 7 ******************************************************************************* | 7 ******************************************************************************* | 
| 8 *   file name:  package.h | 8 *   file name:  package.h | 
| 9 *   encoding:   US-ASCII | 9 *   encoding:   US-ASCII | 
| 10 *   tab size:   8 (not used) | 10 *   tab size:   8 (not used) | 
| 11 *   indentation:4 | 11 *   indentation:4 | 
| 12 * | 12 * | 
| 13 *   created on: 2005aug25 | 13 *   created on: 2005aug25 | 
| 14 *   created by: Markus W. Scherer | 14 *   created by: Markus W. Scherer | 
| 15 * | 15 * | 
| 16 *   Read, modify, and write ICU .dat data package files. | 16 *   Read, modify, and write ICU .dat data package files. | 
| 17 */ | 17 */ | 
| 18 | 18 | 
| 19 #ifndef __PACKAGE_H__ | 19 #ifndef __PACKAGE_H__ | 
| 20 #define __PACKAGE_H__ | 20 #define __PACKAGE_H__ | 
| 21 | 21 | 
| 22 #include "unicode/utypes.h" | 22 #include "unicode/utypes.h" | 
| 23 | 23 | 
| 24 #include <stdio.h> | 24 #include <stdio.h> | 
| 25 | 25 | 
| 26 // .dat package file representation ---------------------------------------- *** | 26 // .dat package file representation ---------------------------------------- *** | 
| 27 | 27 | 
| 28 #define STRING_STORE_SIZE 100000 | 28 #define STRING_STORE_SIZE 100000 | 
| 29 #define MAX_PKG_NAME_LENGTH 32 | 29 #define MAX_PKG_NAME_LENGTH 64 | 
| 30 | 30 | 
| 31 typedef void CheckDependency(void *context, const char *itemName, const char *ta
     rgetName); | 31 typedef void CheckDependency(void *context, const char *itemName, const char *ta
     rgetName); | 
| 32 | 32 | 
| 33 U_NAMESPACE_BEGIN | 33 U_NAMESPACE_BEGIN | 
| 34 | 34 | 
| 35 struct Item { | 35 struct Item { | 
| 36     char *name; | 36     char *name; | 
| 37     uint8_t *data; | 37     uint8_t *data; | 
| 38     int32_t length; | 38     int32_t length; | 
| 39     UBool isDataOwned; | 39     UBool isDataOwned; | 
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 192      * Grow itemMax to at least itemCount+1 | 192      * Grow itemMax to at least itemCount+1 | 
| 193      */ | 193      */ | 
| 194     void ensureItemCapacity(); | 194     void ensureItemCapacity(); | 
| 195 }; | 195 }; | 
| 196 | 196 | 
| 197 U_NAMESPACE_END | 197 U_NAMESPACE_END | 
| 198 | 198 | 
| 199 #endif | 199 #endif | 
| 200 | 200 | 
| 201 | 201 | 
| OLD | NEW | 
|---|