16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 00:49:19 +02:00

Replace starts_with and ends_with with string class methods

This commit is contained in:
docentYT
2026-05-01 17:31:11 +02:00
parent 9c27b54960
commit ec1dfae953
15 changed files with 29 additions and 50 deletions

View File

@@ -9546,8 +9546,7 @@ bool TMoverParameters::LoadFIZ(std::string chkpath)
inputline = fizparser.getToken<std::string>(false, "\n\r");
bool comment = ((contains(inputline, '#')) || (starts_with(inputline, "//")));
if (true == comment)
if (inputline.starts_with("//") || contains(inputline, '#'))
{
// skip commented lines
continue;