Skip to content

Commit

Permalink
Replace pointer arithmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed May 31, 2024
1 parent 2df7110 commit 4775cbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/import/html_extract_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,22 +737,22 @@ namespace lily_of_the_valley
// step over spaces between attribute name and its assignment operator
while (foundTag && foundTag < elementEnd && *foundTag == L' ')
{
++foundTag;
std::advance(foundTag, 1);
}
// step over assignment operator
if (foundTag && foundTag < elementEnd && is_either(*foundTag, L':', L'='))
{
++foundTag;
std::advance(foundTag, 1);
}
// step over any more spaces after assignment operator
while (foundTag && foundTag < elementEnd && *foundTag == L' ')
{
++foundTag;
std::advance(foundTag, 1);
}
// step over any opening quotes
if (foundTag && foundTag < elementEnd && is_either(*foundTag, L'\'', L'"'))
{
++foundTag;
std::advance(foundTag, 1);
}
if (foundTag >= elementEnd)
{
Expand Down

0 comments on commit 4775cbd

Please sign in to comment.