• Home
  • Raw
  • Download

Lines Matching +full:define +full:- +full:property

5 * Copyright (c) 2002-2011, International Business Machines
15 #define PROPNAME_H
24 * This header defines the in-memory layout of the property names data
27 * propname.cpp - reads data
28 * genpname - creates data
31 /* low-level char * property name comparison -------------------------------- */
37 * Unicode property names and property value names are compared "loosely".
40 * For all property names, property value names, and for property values for
60 # define uprv_comparePropertyNames uprv_compareASCIIPropertyNames
62 # define uprv_comparePropertyNames uprv_compareEBCDICPropertyNames
69 /* UDataMemory structure and signatures ------------------------------------- */
71 #define PNAME_DATA_NAME "pnames"
72 #define PNAME_DATA_TYPE "icu"
77 #define PNAME_SIG_0 ((uint8_t)0x70) /* p */
78 #define PNAME_SIG_1 ((uint8_t)0x6E) /* n */
79 #define PNAME_SIG_2 ((uint8_t)0x61) /* a */
80 #define PNAME_SIG_3 ((uint8_t)0x6D) /* m */
101 static const char *getPropertyName(int32_t property, int32_t nameChoice);
102 static const char *getPropertyValueName(int32_t property, int32_t value, int32_t nameChoice);
105 static int32_t getPropertyValueEnum(int32_t property, const char *alias);
108 static int32_t findProperty(int32_t property);
128 * For documentation of pnames.icu formatVersion 1 see ICU4C 4.6 (2010-dec-01)
148 * maximum length of any Unicode property (or property value) alias.
154 * followed by the per-property value maps from property values to names,
160 * int32_t start, limit -- first and last+1 UProperty enum of a dense range
161 * Followed by (limit-start) pairs of
163 * Offset into nameGroups[] for the property's names/aliases.
165 * Offset of the property's value map in the valueMaps[] array.
166 * If the valueMapIndex is 0, then the property does not have named values.
168 * For each property's value map:
169 * int32_t bytesTrieOffset; -- Offset into bytesTries[] for name->value mapping.
173 * int32_t start, limit -- first and last+1 UProperty enum of a range
174 * Followed by (limit-start) entries of
176 * Offset into nameGroups[] for the property value's names/aliases.
177 * If the nameGroupOffset is 0, then this is not a named value for this property.
179 * If numRanges is >=0x10, then (numRanges-0x10) sorted values
180 * and then (numRanges-0x10) corresponding nameGroupOffsets follow.
184 * For both properties and property values, ranges are sorted by their start/limit values.
188 * This is a sequence of BytesTrie structures, byte-serialized tries for
190 * The first one maps from property names/aliases to UProperty enum constants.
191 * The following ones are indexed by property value map bytesTrieOffsets
192 * for mapping each property's names/aliases to their property values.
196 * This is a sequence of property name groups.
197 * Each group is a list of names/aliases (invariant-character strings) for
198 * one property or property value, in the order of UCharNameChoice.
200 * It is followed by that many NUL-terminated strings.
205 * The first name group is for a property rather than a property value,
207 * in a property's sparse value ranges.