mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-1970 skip lines with only whitespace
X-SVN-Rev: 9042
This commit is contained in:
parent
210a194047
commit
8c4e52bd51
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue