ICU-1970 skip lines with only whitespace

X-SVN-Rev: 9042
This commit is contained in:
Markus Scherer 2002-07-04 17:05:48 +00:00
parent 210a194047
commit 8c4e52bd51

View file

@ -86,6 +86,11 @@ u_parseDelimitedFile(const char *filename, char delimiter,
*limit=0;
}
/* skip lines with only whitespace */
if(u_skipWhitespace(line)[0]==0) {
continue;
}
/* for each field, call the corresponding field function */
start=line;
for(i=0; i<fieldCount; ++i) {