ICU-8601 try to fix build on platforms where UChar != uint16_t

X-SVN-Rev: 30151
This commit is contained in:
Markus Scherer 2011-05-26 21:42:55 +00:00
parent 2de18c1d21
commit d963e3242f

View File

@ -33,7 +33,7 @@ struct UCaseProps {
UDataMemory *mem;
const int32_t *indexes;
const uint16_t *exceptions;
const UChar *unfold;
const uint16_t *unfold;
UTrie2 trie;
uint8_t formatVersion[4];
@ -899,7 +899,7 @@ ucase_toFullLower(const UCaseProps *csp, UChar32 c,
full&=UCASE_FULL_LOWER;
if(full!=0) {
/* set the output pointer to the lowercase mapping */
*pString=pe+1;
*pString=reinterpret_cast<const UChar *>(pe+1);
/* return the string length */
return full;
@ -987,7 +987,7 @@ toUpperOrTitle(const UCaseProps *csp, UChar32 c,
if(full!=0) {
/* set the output pointer to the result string */
*pString=pe;
*pString=reinterpret_cast<const UChar *>(pe);
/* return the string length */
return full;
@ -1178,7 +1178,7 @@ ucase_toFullFolding(const UCaseProps *csp, UChar32 c,
if(full!=0) {
/* set the output pointer to the result string */
*pString=pe;
*pString=reinterpret_cast<const UChar *>(pe);
/* return the string length */
return full;