1999-12-13 22:25:50 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright (C) 1999, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
* file name: genprops.h
|
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created on: 1999dec13
|
|
|
|
* created by: Markus W. Scherer
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GENPROPS_H__
|
|
|
|
#define __GENPROPS_H__
|
|
|
|
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-12-13 22:25:50 +00:00
|
|
|
|
|
|
|
/* file definitions */
|
|
|
|
#define DATA_NAME "uprops"
|
|
|
|
#define DATA_TYPE "dat"
|
|
|
|
|
|
|
|
/* character properties */
|
|
|
|
typedef struct {
|
2000-04-18 16:56:02 +00:00
|
|
|
uint32_t code, lowerCase, upperCase, titleCase, mirrorMapping;
|
2000-05-18 19:10:27 +00:00
|
|
|
int16_t decimalDigitValue, digitValue; /* -1: no value */
|
|
|
|
int32_t numericValue; /* see hasNumericValue */
|
|
|
|
uint32_t denominator; /* 0: no value */
|
|
|
|
uint8_t generalCategory, canonicalCombining, bidi, isMirrored, hasNumericValue;
|
1999-12-13 22:25:50 +00:00
|
|
|
} Props;
|
|
|
|
|
|
|
|
/* global flags */
|
2000-05-18 22:08:39 +00:00
|
|
|
extern UBool beVerbose, haveCopyright;
|
1999-12-13 22:25:50 +00:00
|
|
|
|
|
|
|
/* name tables */
|
|
|
|
extern const char *const
|
|
|
|
bidiNames[];
|
|
|
|
|
|
|
|
extern const char *const
|
|
|
|
genCategoryNames[];
|
|
|
|
|
|
|
|
/* prototypes */
|
2000-04-18 16:56:02 +00:00
|
|
|
extern void
|
|
|
|
setUnicodeVersion(const char *v);
|
|
|
|
|
1999-12-13 22:25:50 +00:00
|
|
|
extern void
|
1999-12-22 22:57:04 +00:00
|
|
|
initStore(void);
|
1999-12-13 22:25:50 +00:00
|
|
|
|
|
|
|
extern void
|
|
|
|
addProps(Props *p);
|
|
|
|
|
1999-12-15 04:42:56 +00:00
|
|
|
extern void
|
1999-12-22 22:57:04 +00:00
|
|
|
repeatProps(void);
|
1999-12-15 04:42:56 +00:00
|
|
|
|
|
|
|
extern void
|
1999-12-22 22:57:04 +00:00
|
|
|
compactStage2(void);
|
1999-12-15 04:42:56 +00:00
|
|
|
|
1999-12-13 22:25:50 +00:00
|
|
|
extern void
|
1999-12-22 22:57:04 +00:00
|
|
|
compactStage3(void);
|
1999-12-13 22:25:50 +00:00
|
|
|
|
|
|
|
extern void
|
1999-12-22 22:57:04 +00:00
|
|
|
compactProps(void);
|
1999-12-13 22:25:50 +00:00
|
|
|
|
|
|
|
extern void
|
2000-02-29 18:42:28 +00:00
|
|
|
generateData(const char *dataDir);
|
1999-12-13 22:25:50 +00:00
|
|
|
|
|
|
|
#endif
|
2000-02-29 18:42:28 +00:00
|
|
|
|