ICU-7311 Replace tab character with spaces in changes from the patch.
X-SVN-Rev: 27652
This commit is contained in:
parent
d9e7c707fd
commit
39881d8f7b
@ -897,7 +897,7 @@ UErrorCode convsample_40()
|
||||
if(!out)
|
||||
{
|
||||
fprintf(stderr, "Couldn't create file 'data40.utf16'.\n");
|
||||
fclose(f);
|
||||
fclose(f);
|
||||
return U_FILE_ACCESS_ERROR;
|
||||
}
|
||||
|
||||
@ -1003,7 +1003,7 @@ UErrorCode convsample_46()
|
||||
if(!out)
|
||||
{
|
||||
fprintf(stderr, "Couldn't create file 'data46.out'.\n");
|
||||
fclose(f);
|
||||
fclose(f);
|
||||
return U_FILE_ACCESS_ERROR;
|
||||
}
|
||||
|
||||
|
@ -287,7 +287,7 @@ void readFile(const char *name) {
|
||||
int t = fread(charBuf, 1, rawFileLen, file);
|
||||
if (t != rawFileLen) {
|
||||
fprintf(stderr, "Error reading file \"%s\"\n", fileName);
|
||||
fclose(file);
|
||||
fclose(file);
|
||||
return;
|
||||
}
|
||||
charBuf[rawFileLen]=0;
|
||||
|
@ -906,7 +906,7 @@ roundtripBOCU1(UConverter *bocu1, int32_t number, const UChar *text, int32_t len
|
||||
/* BOCU-1 -> Unicode */
|
||||
roundtripRefLength=readString((uint8_t *)bocu1Ref, bocu1RefLength, roundtripRef);
|
||||
if(roundtripRefLength<0) {
|
||||
free(roundtripICU);
|
||||
free(roundtripICU);
|
||||
return; /* readString() found an error and reported it */
|
||||
}
|
||||
|
||||
|
@ -136,7 +136,7 @@ static void TestUDataOpen(){
|
||||
const char* testPath=loadTestData(&status);
|
||||
if(U_FAILURE(status)) {
|
||||
log_data_err("Could not load testdata.dat, status = %s\n", u_errorName(status));
|
||||
free(path);
|
||||
free(path);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -808,8 +808,8 @@ void doKeyHist() {
|
||||
(float)accumulatedLen[i] / (float)(numKeysOfSize[i] * i));
|
||||
}
|
||||
}
|
||||
delete []accumulatedLen;
|
||||
delete []numKeysOfSize ;
|
||||
delete []accumulatedLen;
|
||||
delete []numKeysOfSize ;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------
|
||||
|
@ -319,7 +319,7 @@ int main(int argc, char **argv) {
|
||||
long t = fread(result, 1, fileSize, file);
|
||||
if (t != fileSize) {
|
||||
delete [] result;
|
||||
fclose(file);
|
||||
close(file);
|
||||
return NULL;
|
||||
}
|
||||
result[fileSize]=0;
|
||||
|
Loading…
Reference in New Issue
Block a user