2001-06-20 22:24:42 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
2010-01-06 23:50:03 +00:00
|
|
|
* Copyright (C) 1999-2010, International Business Machines
|
2001-06-20 22:24:42 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
2005-01-04 00:46:14 +00:00
|
|
|
* file name: gennorm.h
|
2001-06-20 22:24:42 +00:00
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
2005-01-04 00:46:14 +00:00
|
|
|
* created on: 2001may25
|
2001-06-20 22:24:42 +00:00
|
|
|
* created by: Markus W. Scherer
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GENPROPS_H__
|
|
|
|
#define __GENPROPS_H__
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* data structure that holds the normalization properties for one or more
|
|
|
|
* code point(s) at build time
|
|
|
|
*/
|
|
|
|
typedef struct Norm {
|
|
|
|
uint8_t udataCC, lenNFD, lenNFKD;
|
|
|
|
uint32_t *nfd, *nfkd;
|
|
|
|
} Norm;
|
|
|
|
|
|
|
|
/* global flags */
|
2010-06-04 18:01:08 +00:00
|
|
|
extern UBool beVerbose;
|
2001-06-20 22:24:42 +00:00
|
|
|
|
|
|
|
/* prototypes */
|
|
|
|
extern void
|
|
|
|
init(void);
|
|
|
|
|
|
|
|
extern void
|
|
|
|
storeNorm(uint32_t code, Norm *norm);
|
|
|
|
|
|
|
|
extern void
|
|
|
|
setCompositionExclusion(uint32_t code);
|
|
|
|
|
2010-01-06 23:50:03 +00:00
|
|
|
extern void
|
|
|
|
writeNorm2(const char *dataDir);
|
|
|
|
|
2001-07-03 16:45:54 +00:00
|
|
|
extern void
|
|
|
|
cleanUpData(void);
|
|
|
|
|
2001-06-20 22:24:42 +00:00
|
|
|
#endif
|