2001-03-17 00:46:46 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
2008-01-05 01:27:56 +00:00
|
|
|
* Copyright (C) 2001-2008, International Business Machines
|
2001-03-17 00:46:46 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
* file name: ucol_tok.cpp
|
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created 02/22/2001
|
|
|
|
* created by: Vladimir Weinstein
|
|
|
|
*
|
|
|
|
* This module builds a collator based on the rule set.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2001-03-08 17:40:42 +00:00
|
|
|
#ifndef UCOL_BLD_H
|
|
|
|
#define UCOL_BLD_H
|
2001-04-19 17:08:07 +00:00
|
|
|
|
|
|
|
#ifdef UCOL_DEBUG
|
2001-03-08 17:40:42 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2001-04-19 17:08:07 +00:00
|
|
|
#endif
|
2001-03-08 17:40:42 +00:00
|
|
|
|
2002-09-20 01:54:48 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_COLLATION
|
2008-01-05 01:27:56 +00:00
|
|
|
/*#if !UCONFIG_NO_COLLATION_BUILDER*/
|
2002-09-20 01:54:48 +00:00
|
|
|
|
2001-03-08 17:40:42 +00:00
|
|
|
#include "ucol_imp.h"
|
|
|
|
#include "ucol_tok.h"
|
2001-03-09 00:50:37 +00:00
|
|
|
#include "ucol_wgt.h"
|
2001-03-08 17:40:42 +00:00
|
|
|
|
2001-10-20 01:09:31 +00:00
|
|
|
U_CFUNC
|
2001-03-08 17:40:42 +00:00
|
|
|
UCATableHeader *ucol_assembleTailoringTable(UColTokenParser *src, UErrorCode *status);
|
|
|
|
|
2001-03-09 00:50:37 +00:00
|
|
|
typedef struct {
|
|
|
|
WeightRange ranges[7];
|
|
|
|
int32_t noOfRanges;
|
|
|
|
uint32_t byteSize; uint32_t start; uint32_t limit;
|
|
|
|
int32_t maxCount;
|
|
|
|
int32_t count;
|
|
|
|
uint32_t current;
|
|
|
|
uint32_t fLow; /*forbidden Low */
|
|
|
|
uint32_t fHigh; /*forbidden High */
|
|
|
|
} ucolCEGenerator;
|
|
|
|
|
2008-01-05 01:27:56 +00:00
|
|
|
U_CFUNC uint32_t U_EXPORT2 ucol_getCEStrengthDifference(uint32_t CE, uint32_t contCE,
|
|
|
|
uint32_t prevCE, uint32_t prevContCE);
|
|
|
|
|
|
|
|
/*#endif*/ /* #if !UCONFIG_NO_COLLATION_BUILDER */
|
2002-09-20 01:54:48 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_COLLATION */
|
|
|
|
|
2001-03-09 02:35:40 +00:00
|
|
|
#endif
|