scuffed-code/icu4c/source/common/uprops.h
Markus Scherer c3cb396f2f ICU-1721 need column count in uprops.dat
X-SVN-Rev: 7780
2002-02-25 22:41:40 +00:00

58 lines
1.4 KiB
C

/*
*******************************************************************************
*
* Copyright (C) 2002, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
* file name: uprops.h
* encoding: US-ASCII
* tab size: 8 (not used)
* indentation:4
*
* created on: 2002feb24
* created by: Markus W. Scherer
*
* Constants for mostly non-core Unicode character properties
* stored in uprops.dat.
*/
#ifndef __UPROPS_H__
#define __UPROPS_H__
/* indexes[] entries */
enum {
UPROPS_PROPS32_INDEX,
UPROPS_EXCEPTIONS_INDEX,
UPROPS_EXCEPTIONS_TOP_INDEX,
UPROPS_ADDITIONAL_TRIE_INDEX,
UPROPS_ADDITIONAL_VECTORS_INDEX,
UPROPS_ADDITIONAL_VECTORS_COLUMNS_INDEX,
UPROPS_RESERVED_INDEX,
UPROPS_INDEX_COUNT=16
};
/* number of properties vector words */
#define UPROPS_VECTOR_WORDS 2
/*
* Properties in vector word 0
* Bits
* 31..24 DerivedAge version major/minor one nibble each
*/
/* derived age: one nibble each for major and minor version numbers */
#define UPROPS_AGE_MASK 0xff000000
#define UPROPS_AGE_SHIFT 24
/**
* Get a properties vector word for a code point.
* Implemented in uchar.c for uprops.c.
* @return 0 if no data or illegal argument
*/
U_CFUNC uint32_t
u_getUnicodeProperties(UChar32 c, int32_t column);
#endif