-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We should terminate lines and an end of line marker or any character less than a tab.
- Loading branch information
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
** Author: Samuel R. Blackburn | ||
** Internet: [email protected] | ||
** | ||
** Copyright, 1995-2019, Samuel R. Blackburn | ||
** Copyright, 1995-2022, Samuel R. Blackburn | ||
** | ||
** "You can get credit for something or get it done, but not both." | ||
** Dr. Richard Garwin | ||
|
@@ -1650,7 +1650,7 @@ class CDataParser | |
|
||
uint32_t line_character{ 0 }; | ||
|
||
while (line_count < number_of_lines ) | ||
while (line_count < number_of_lines) | ||
{ | ||
if (GetNextCharacter(parse_point, line_character) == false) | ||
{ | ||
|
@@ -1667,7 +1667,7 @@ class CDataParser | |
line_count++; | ||
} | ||
} | ||
else if (line_character == LINE_FEED) | ||
else if (line_character == LINE_FEED or line_character < TAB_CHARACTER) | ||
{ | ||
line_count++; | ||
} | ||
|
@@ -1704,6 +1704,10 @@ class CDataParser | |
{ | ||
return( true ); | ||
} | ||
else if ( line_character < TAB_CHARACTER ) | ||
{ | ||
return(true); | ||
} | ||
|
||
line.push_back( static_cast<wchar_t>(line_character) ); | ||
} | ||
|
@@ -1741,7 +1745,7 @@ class CDataParser | |
|
||
return(true); | ||
} | ||
else if (line_character == LINE_FEED or line_character == 0x00) | ||
else if (line_character == LINE_FEED or line_character < TAB_CHARACTER) | ||
{ | ||
return(true); | ||
} | ||
|
@@ -1783,10 +1787,14 @@ class CDataParser | |
|
||
return( true ); | ||
} | ||
else if ( line_character == LINE_FEED or line_character == 0x00 ) | ||
else if ( line_character == LINE_FEED ) | ||
{ | ||
return( true ); | ||
} | ||
else if ( line_character < TAB_CHARACTER ) | ||
{ | ||
return(true); | ||
} | ||
|
||
length++; | ||
} | ||
|