]>
git.saurik.com Git - apple/icu.git/blob - icuSources/tools/genprops/genprops.h
2 *******************************************************************************
4 * Copyright (C) 1999-2005, 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 /* character properties */
30 int32_t numericValue
; /* see numericType */
31 uint32_t denominator
; /* 0: no value */
32 uint8_t generalCategory
, numericType
, exponent
;
36 extern UBool beVerbose
, haveCopyright
;
38 extern const char *const
41 /* properties vectors in props2.c */
46 writeUCDFilename(char *basename
, const char *filename
, const char *suffix
);
49 isToken(const char *token
, const char *s
);
52 getTokenIndex(const char *const tokens
[], int32_t countTokens
, const char *s
);
55 setUnicodeVersion(const char *v
);
67 addProps(uint32_t c
, uint32_t props
);
73 repeatProps(uint32_t first
, uint32_t last
, uint32_t props
);
76 generateData(const char *dataDir
, UBool csource
);
80 initAdditionalProperties(void);
83 exitAdditionalProperties(void);
86 generateAdditionalProperties(char *filename
, const char *suffix
, UErrorCode
*pErrorCode
);
89 writeAdditionalData(FILE *f
, uint8_t *p
, int32_t capacity
, int32_t indexes
[16]);