ICU-3053 Similar porting changes for MPRAS
X-SVN-Rev: 12743
This commit is contained in:
parent
8fcab481c1
commit
3323e93931
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user