mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 14:57:32 +09:00
Issue #1971 - Part 2: Update ICU source to 63.2.
This commit is contained in:
parent
8df84683be
commit
1e69214382
3160 changed files with 275815 additions and 234203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
||||
// © 2016 and later: Unicode, Inc. and others.
|
||||
// License & terms of use: http://www.unicode.org/copyright.html
|
||||
/*
|
||||
*******************************************************************************
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*******************************************************************************
|
||||
* file name: umsg.cpp
|
||||
* encoding: US-ASCII
|
||||
* encoding: UTF-8
|
||||
* tab size: 8 (not used)
|
||||
* indentation:4
|
||||
*
|
||||
|
|
@ -321,7 +321,7 @@ umsg_applyPattern(UMessageFormat *fmt,
|
|||
if(status ==NULL||U_FAILURE(*status)){
|
||||
return ;
|
||||
}
|
||||
if(fmt==NULL||pattern==NULL||patternLength<-1){
|
||||
if(fmt==NULL || (pattern==NULL && patternLength!=0) || patternLength<-1) {
|
||||
*status=U_ILLEGAL_ARGUMENT_ERROR;
|
||||
return ;
|
||||
}
|
||||
|
|
@ -329,10 +329,8 @@ umsg_applyPattern(UMessageFormat *fmt,
|
|||
if(parseError==NULL){
|
||||
parseError = &tErr;
|
||||
}
|
||||
if(patternLength<-1){
|
||||
patternLength=u_strlen(pattern);
|
||||
}
|
||||
|
||||
// UnicodeString(pattern, -1) calls u_strlen().
|
||||
((MessageFormat*)fmt)->applyPattern(UnicodeString(pattern,patternLength),*parseError,*status);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue