mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 11:14:22 +00:00
ICU-900 Fixed some compiler warnings.
X-SVN-Rev: 4387
This commit is contained in:
parent
bfc878df03
commit
f2497166dd
2 changed files with 8 additions and 9 deletions
|
@ -26,7 +26,7 @@
|
|||
#include "unicode/cpdtrans.h"
|
||||
#include "unicode/jamohang.h"
|
||||
#include "unicode/hangjamo.h"
|
||||
#include <stdio.h>
|
||||
|
||||
const UChar Transliterator::ID_SEP = 0x002D; /*-*/
|
||||
const UChar Transliterator::ID_DELIM = 0x003B; /*;*/
|
||||
|
||||
|
@ -391,8 +391,8 @@ UnicodeString& Transliterator::getDisplayName(const UnicodeString& ID,
|
|||
// build the char* key
|
||||
char key[100];
|
||||
uprv_strcpy(key, RB_DISPLAY_NAME_PREFIX);
|
||||
int32_t length=uprv_strlen(RB_DISPLAY_NAME_PREFIX);
|
||||
key[length + ID.extract(0, sizeof(key)-length-1, key+length, "")]=0;
|
||||
int32_t length=(int32_t)uprv_strlen(RB_DISPLAY_NAME_PREFIX);
|
||||
key[length + ID.extract(0, (int32_t)(sizeof(key)-length-1), key+length, "")]=0;
|
||||
|
||||
// Try to retrieve a UnicodeString* from the bundle. The result,
|
||||
// if any, should NOT be deleted.
|
||||
|
@ -441,10 +441,10 @@ UnicodeString& Transliterator::getDisplayName(const UnicodeString& ID,
|
|||
|
||||
// Use display names for the scripts, if they exist
|
||||
UnicodeString s;
|
||||
length=(int32_t)uprv_strlen(RB_SCRIPT_DISPLAY_NAME_PREFIX);
|
||||
for (int j=1; j<=((i<0)?1:2); ++j) {
|
||||
status = U_ZERO_ERROR;
|
||||
uprv_strcpy(key, RB_SCRIPT_DISPLAY_NAME_PREFIX);
|
||||
length=uprv_strlen(RB_SCRIPT_DISPLAY_NAME_PREFIX);
|
||||
args[j].getString(s);
|
||||
key[length + s.extract(0, sizeof(key)-length-1, key+length, "")]=0;
|
||||
|
||||
|
|
|
@ -417,11 +417,11 @@ unum_setDoubleAttribute( UNumberFormat* fmt,
|
|||
}
|
||||
|
||||
U_CAPI int32_t
|
||||
unum_getTextAttribute( const UNumberFormat* fmt,
|
||||
unum_getTextAttribute(const UNumberFormat* fmt,
|
||||
UNumberFormatTextAttribute tag,
|
||||
UChar* result,
|
||||
int32_t resultLength,
|
||||
UErrorCode* status)
|
||||
UChar* result,
|
||||
int32_t resultLength,
|
||||
UErrorCode* status)
|
||||
{
|
||||
if(U_FAILURE(*status))
|
||||
return -1;
|
||||
|
@ -448,7 +448,6 @@ unum_getTextAttribute( const UNumberFormat* fmt,
|
|||
case UNUM_PADDING_CHARACTER:
|
||||
*result = ((DecimalFormat*)fmt)->getPadCharacter();
|
||||
return 1;
|
||||
break;
|
||||
|
||||
default:
|
||||
*status = U_UNSUPPORTED_ERROR;
|
||||
|
|
Loading…
Add table
Reference in a new issue