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:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user