ICU-157 udata, fixes for hpux..
X-SVN-Rev: 421
This commit is contained in:
parent
ebd60f80d9
commit
b98cc6ff9e
@ -751,7 +751,7 @@ generateAlgorithmicData(UNewDataMemory *pData) {
|
||||
sizeof(AlgorithmicRange)+PREFIX_LENGTH_4
|
||||
};
|
||||
|
||||
static char jamo[]={
|
||||
static char jamo[]=
|
||||
"HANGUL SYLLABLE \0"
|
||||
|
||||
"G\0GG\0N\0D\0DD\0R\0M\0B\0BB\0"
|
||||
@ -764,7 +764,7 @@ generateAlgorithmicData(UNewDataMemory *pData) {
|
||||
"\0G\0GG\0GS\0N\0NJ\0NH\0D\0L\0LG\0LM\0"
|
||||
"LB\0LS\0LT\0LP\0LH\0M\0B\0BS\0"
|
||||
"S\0SS\0NG\0J\0C\0K\0T\0P\0H"
|
||||
};
|
||||
;
|
||||
|
||||
static AlgorithmicRange hangul={
|
||||
0xac00, 0xd7a3,
|
||||
|
@ -21,10 +21,15 @@
|
||||
#include "cmemory.h"
|
||||
#include "cstring.h"
|
||||
#include "filestrm.h"
|
||||
|
||||
U_CDECL_BEGIN
|
||||
|
||||
#include "error.h"
|
||||
#include "parse.h"
|
||||
#include "write.h"
|
||||
#include "util.h"
|
||||
|
||||
U_CDECL_END
|
||||
#include "toolutil.h"
|
||||
|
||||
#include "ucol.h"
|
||||
|
@ -46,7 +46,7 @@ static const UDataInfo dataInfo = {
|
||||
sizeof(UChar),
|
||||
0,
|
||||
|
||||
TZ_SIG[0], TZ_SIG[1], TZ_SIG[2], TZ_SIG[3], /* dataFormat */
|
||||
0x7a, 0x6f, 0x6e, 0x65, /* see TZ_SIG. Changed to literals, thanks to HP compiler */
|
||||
TZ_FORMAT_VERSION, 0, 0, 0, /* formatVersion */
|
||||
0, 0, 0, 0 /* dataVersion - will be filled in with year.suffix */
|
||||
};
|
||||
|
@ -431,7 +431,7 @@ void loadSBCSTableFromFile(FileStream* convFile, UConverter* myConverter, UError
|
||||
return;
|
||||
}
|
||||
|
||||
myUConverterTable->sbcs.toUnicode = malloc(sizeof(UChar)*256);
|
||||
myUConverterTable->sbcs.toUnicode = (UChar*)malloc(sizeof(UChar)*256);
|
||||
/*fills in the toUnicode array with the Unicode Replacement Char*/
|
||||
for (i=0;i<255;i++) myUConverterTable->sbcs.toUnicode[i] = unicodeValue;
|
||||
|
||||
@ -490,7 +490,7 @@ void loadMBCSTableFromFile(FileStream* convFile, UConverter* myConverter, UError
|
||||
return;
|
||||
}
|
||||
|
||||
myUConverterTable->mbcs.starters = icu_malloc(sizeof(bool_t)*256);
|
||||
myUConverterTable->mbcs.starters = (bool_t*)(icu_malloc(sizeof(bool_t)*256));
|
||||
if (myUConverterTable->mbcs.starters == NULL)
|
||||
{
|
||||
*err = U_MEMORY_ALLOCATION_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user