2
*******************************************************************************
4
* Copyright (C) 1999-2002, 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 "dat"
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
int16_t decimalDigitValue, digitValue; /* -1: no value */
45
int32_t numericValue; /* see numericType */
46
uint32_t denominator; /* 0: no value */
47
uint8_t generalCategory, canonicalCombining, bidi, isMirrored, numericType;
48
SpecialCasing *specialCasing;
49
CaseFolding *caseFolding;
53
extern UBool beVerbose, haveCopyright;
56
extern const char *const
59
extern const char *const
64
writeUCDFilename(char *basename, const char *filename, const char *suffix);
67
getTokenIndex(const char *const tokens[], int32_t countTokens, const char *s);
70
setUnicodeVersion(const char *v);
79
addProps(uint32_t c, uint32_t props);
82
repeatProps(uint32_t first, uint32_t last, uint32_t props);
84
U_CAPI uint32_t U_EXPORT2
85
getFoldedPropsValue(UNewTrie *trie, UChar32 start, int32_t offset);
88
generateData(const char *dataDir);
92
generateAdditionalProperties(char *filename, const char *suffix, UErrorCode *pErrorCode);
95
writeAdditionalData(uint8_t *p, int32_t capacity, int32_t indexes[16]);