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

Replace string_starts_with and string_ends_with with string::starts_with and string::ends_with

This commit is contained in:
docentYT
2026-05-01 13:33:32 +02:00
parent 614a7f51a5
commit bd21b8f49c
5 changed files with 8 additions and 27 deletions

View File

@@ -86,11 +86,11 @@ bool locale::parse_translation(std::istream &stream)
if (line.size() > 0 && line[0] == '#')
continue;
if (string_starts_with(line, "msgid"))
if (line.starts_with("msgid"))
last = 'i';
else if (string_starts_with(line, "msgstr"))
else if (line.starts_with("msgstr"))
last = 's';
else if (string_starts_with(line, "msgctxt"))
else if (line.starts_with("msgctxt"))
last = 'c';
if (line.size() > 1 && last != 'x') {