]>
git.saurik.com Git - apple/icu.git/blob - icuSources/tools/genprops/genprops.h
2 *******************************************************************************
4 * Copyright (C) 1999-2004, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
8 * file name: genprops.h
10 * tab size: 8 (not used)
13 * created on: 1999dec13
14 * created by: Markus W. Scherer
17 #ifndef __GENPROPS_H__
18 #define __GENPROPS_H__
20 #include "unicode/utypes.h"
23 /* file definitions */
24 #define DATA_NAME "uprops"
25 #define DATA_TYPE "icu"
27 /* special casing data */
31 UChar lowerCase
[32], upperCase
[32], titleCase
[32];
34 /* case folding data */
36 uint32_t code
, simple
;
41 /* character properties */
43 uint32_t code
, lowerCase
, upperCase
, titleCase
, mirrorMapping
;
44 int32_t numericValue
; /* see numericType */
45 uint32_t denominator
; /* 0: no value */
46 uint8_t generalCategory
, bidi
, isMirrored
, numericType
;
47 SpecialCasing
*specialCasing
;
48 CaseFolding
*caseFolding
;
52 extern UBool beVerbose
, haveCopyright
;
55 extern const char *const
58 extern const char *const
61 /* properties vectors in props2.c */
66 writeUCDFilename(char *basename
, const char *filename
, const char *suffix
);
69 isToken(const char *token
, const char *s
);
72 getTokenIndex(const char *const tokens
[], int32_t countTokens
, const char *s
);
75 setUnicodeVersion(const char *v
);
84 addProps(uint32_t c
, uint32_t props
);
90 repeatProps(uint32_t first
, uint32_t last
, uint32_t props
);
92 U_CFUNC
uint32_t U_EXPORT2
93 getFoldedPropsValue(UNewTrie
*trie
, UChar32 start
, int32_t offset
);
96 addCaseSensitive(UChar32 first
, UChar32 last
);
99 generateData(const char *dataDir
);
103 initAdditionalProperties(void);
106 generateAdditionalProperties(char *filename
, const char *suffix
, UErrorCode
*pErrorCode
);
109 writeAdditionalData(uint8_t *p
, int32_t capacity
, int32_t indexes
[16]);