mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-2235 swap update
X-SVN-Rev: 12972
This commit is contained in:
parent
4ba9021923
commit
56cf6a3bb2
2 changed files with 7 additions and 7 deletions
|
@ -2218,7 +2218,7 @@ uprv_ebcdicFromAscii(const UDataSwapper *ds,
|
|||
while(count>0) {
|
||||
c=*s++;
|
||||
if(!CHAR_IS_INVARIANT(c)) {
|
||||
udata_printError(ds, "uprv_ebcdicFromAscii() string[%] contains a variant character in position %d\n",
|
||||
udata_printError(ds, "uprv_ebcdicFromAscii() string[%d] contains a variant character in position %d\n",
|
||||
length, length-count);
|
||||
*pErrorCode=U_INVALID_CHAR_FOUND;
|
||||
return 0;
|
||||
|
@ -2243,7 +2243,7 @@ uprv_copyAscii(const UDataSwapper *ds,
|
|||
if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
|
||||
return 0;
|
||||
}
|
||||
if(ds==NULL || inData==NULL || length<0 || (length&1)!=0 || outData==NULL) {
|
||||
if(ds==NULL || inData==NULL || length<0 || outData==NULL) {
|
||||
*pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
|
||||
return 0;
|
||||
}
|
||||
|
@ -2254,7 +2254,7 @@ uprv_copyAscii(const UDataSwapper *ds,
|
|||
while(count>0) {
|
||||
c=*s++;
|
||||
if(!CHAR_IS_INVARIANT(c)) {
|
||||
udata_printError(ds, "uprv_copyFromAscii() string[%] contains a variant character in position %d\n",
|
||||
udata_printError(ds, "uprv_copyFromAscii() string[%d] contains a variant character in position %d\n",
|
||||
length, length-count);
|
||||
*pErrorCode=U_INVALID_CHAR_FOUND;
|
||||
return 0;
|
||||
|
@ -2283,7 +2283,7 @@ uprv_asciiFromEbcdic(const UDataSwapper *ds,
|
|||
if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
|
||||
return 0;
|
||||
}
|
||||
if(ds==NULL || inData==NULL || length<0 || (length&1)!=0 || outData==NULL) {
|
||||
if(ds==NULL || inData==NULL || length<0 || outData==NULL) {
|
||||
*pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
|
||||
return 0;
|
||||
}
|
||||
|
@ -2295,7 +2295,7 @@ uprv_asciiFromEbcdic(const UDataSwapper *ds,
|
|||
while(count>0) {
|
||||
c=*s++;
|
||||
if(c!=0 && ((c=asciiFromEbcdic[c])==0 || !CHAR_IS_INVARIANT(c))) {
|
||||
udata_printError(ds, "uprv_asciiFromEbcdic() string[%] contains a variant character in position %d\n",
|
||||
udata_printError(ds, "uprv_asciiFromEbcdic() string[%d] contains a variant character in position %d\n",
|
||||
length, length-count);
|
||||
*pErrorCode=U_INVALID_CHAR_FOUND;
|
||||
return 0;
|
||||
|
|
|
@ -827,7 +827,7 @@ ures_swap(const UDataSwapper *ds,
|
|||
inBundle=(const Resource *)((const char *)inData+headerSize);
|
||||
bottom=0x7fffffff;
|
||||
top=maxTableLength=0;
|
||||
rootRes=*inBundle;
|
||||
rootRes=udata_readInt32(ds, *inBundle);
|
||||
ures_preflightResource(ds, inBundle, bundleLength, rootRes,
|
||||
&bottom, &top, &maxTableLength,
|
||||
pErrorCode);
|
||||
|
@ -855,7 +855,7 @@ ures_swap(const UDataSwapper *ds,
|
|||
|
||||
ds->swapInvChars(ds, inChars, stringsLength, outBundle+1, pErrorCode);
|
||||
if(U_FAILURE(*pErrorCode)) {
|
||||
udata_printError(ds, "ures_swapResource().swapInvChars(keys) failed - %s\n",
|
||||
udata_printError(ds, "ures_swapResource().swapInvChars(keys,%d) failed - %s\n", stringsLength,
|
||||
u_errorName(*pErrorCode));
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue