2001-03-17 00:46:46 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001, International Business Machines
|
|
|
|
* 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
|
|
|
|
|
|
|
#include "ucol_imp.h"
|
|
|
|
#include "ucol_tok.h"
|
|
|
|
#include "ucol_elm.h"
|
2001-03-09 00:50:37 +00:00
|
|
|
#include "ucol_wgt.h"
|
2001-03-08 17:40:42 +00:00
|
|
|
|
|
|
|
#include "uhash.h"
|
|
|
|
#include "umutex.h"
|
|
|
|
#include "cpputils.h"
|
|
|
|
|
|
|
|
#include "unicode/ustring.h"
|
|
|
|
#include "unicode/unistr.h"
|
|
|
|
#include "unicode/normlzr.h"
|
|
|
|
|
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;
|
|
|
|
|
2001-03-09 02:35:40 +00:00
|
|
|
#endif
|