ICU-3053 Similar porting changes for MPRAS

X-SVN-Rev: 12743
This commit is contained in:
George Rhoten 2003-08-01 22:28:18 +00:00
parent 8fcab481c1
commit 3323e93931

View File

@ -98,8 +98,8 @@ unum_open( UNumberFormatStyle style,
}else{
/* we don't support RBNF patterns yet */
UParseError tErr;
int32_t len = (patternLength == -1 ? u_strlen(pattern) : patternLength);
const UnicodeString pat((UChar*)pattern, len, len);
/* UnicodeString can handle the case when patternLength = -1. */
const UnicodeString pat(pattern, patternLength);
DecimalFormatSymbols *syms = 0;
if(parseErr==NULL){