Correct is_space fix for Windows compatibility

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-08-13 17:19:28 +03:00
committed by Konstantin Pastbin
parent 826b56cabc
commit 55dc1e17e6
7 changed files with 28 additions and 17 deletions

View File

@@ -173,7 +173,7 @@ bool ParseMaxspeedTag(std::string const & maxspeedValue, routing::SpeedInUnits &
speedStr += maxspeedValue[i];
}
while (i < maxspeedValue.size() && isspace(maxspeedValue[i]))
while (i < maxspeedValue.size() && strings::IsASCIISpace(maxspeedValue[i]))
++i;
if (maxspeedValue.size() == i || maxspeedValue.substr(i).starts_with("kmh"))