LineDataRight.erase(CommentStrRight);\r
}\r
\r
- if (m_options.m_ignoreWhitespace == WHITESPACE_IGNORE_ALL)\r
+ if (m_options.m_ignoreWhitespace == WHITESPACE_IGNORE_ALL)\r
{\r
//Ignore character case\r
std::string::size_type pos = 0;
{
LineDataLeft.replace(pos, 1, "");
}
+ pos = 0;
+ while ((pos = LineDataLeft.find("\t", pos)) != String::npos)
+ {
+ LineDataLeft.replace(pos, 1, "");
+ }
pos = 0;
while ((pos = LineDataRight.find(" ", pos)) != String::npos)
{
LineDataRight.replace(pos, 1, "");
}\r
+ pos = 0;
+ while ((pos = LineDataRight.find("\t", pos)) != String::npos)
+ {
+ LineDataRight.replace(pos, 1, "");
+ }\r
}
else if (m_options.m_ignoreWhitespace == WHITESPACE_IGNORE_CHANGE)\r
{\r
//Ignore change in whitespace char count\r
std::string::size_type pos = 0;
+ while ((pos = LineDataLeft.find("\t", pos)) != String::npos)
+ {
+ LineDataLeft.replace(pos, 1, " ");
+ }
+ pos = 0;
while ((pos = LineDataLeft.find(" ", pos)) != String::npos)
{
LineDataLeft.replace(pos, 2, " ");
}
pos = 0;
+ while ((pos = LineDataRight.find("\t", pos)) != String::npos)
+ {
+ LineDataRight.replace(pos, 1, " ");
+ }\r
+ pos = 0;
while ((pos = LineDataRight.find(" ", pos)) != String::npos)
{
LineDataRight.replace(pos, 2, " ");