1 /* 2 ******************************************************************************* 3 * 4 * Copyright (C) 2000-2004, International Business Machines 5 * Corporation and others. All Rights Reserved. 6 * 7 ******************************************************************************* 8 * file name: genuca.h 9 * encoding: US-ASCII 10 * tab size: 8 (not used) 11 * indentation:4 12 * 13 * created at the end of XX century 14 * created by: Vladimir Weinstein 15 * 16 * This program reads the Franctional UCA table and generates 17 * internal format for UCA table as well as inverse UCA table. 18 * It then writes binary files containing the data: ucadata.dat 19 * & invuca.dat 20 */ 21 22 #ifndef UCADATA_H 23 #define UCADATA_H 24 25 #include "unicode/utypes.h" 26 27 #if !UCONFIG_NO_COLLATION 28 29 #include "ucol_elm.h" 30 #include <stdio.h> 31 #include <string.h> 32 #include "unicode/utypes.h" 33 #include "unicode/uchar.h" 34 #include "ucol_imp.h" 35 #include "uhash.h" 36 #include "unewdata.h" 37 38 39 void deleteElement(void *element); 40 int32_t readElement(char **from, char *to, char separator, UErrorCode *status); 41 uint32_t getSingleCEValue(char *primary, char *secondary, char *tertiary, UBool caseBit, UErrorCode *status); 42 void printOutTable(UCATableHeader *myData, UErrorCode *status); 43 UCAElements *readAnElement(FILE *data, tempUCATable *t, UCAConstants *consts, UErrorCode *status); 44 45 #endif /* #if !UCONFIG_NO_COLLATION */ 46 47 #endif 48