mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Simplify readString
This commit is contained in:
@@ -1546,17 +1546,16 @@ static void readString(std::string &str, bool rawString) {
|
||||
if (rawMode) {
|
||||
str += '"';
|
||||
}
|
||||
if (peek() == '"') {
|
||||
// """ begins a multi-line string
|
||||
shiftChar();
|
||||
if (rawMode) {
|
||||
str += '"';
|
||||
}
|
||||
multiline = true;
|
||||
} else {
|
||||
if (peek() != '"') {
|
||||
// "" is an empty string, skip the loop
|
||||
return;
|
||||
}
|
||||
// """ begins a multi-line string
|
||||
shiftChar();
|
||||
if (rawMode) {
|
||||
str += '"';
|
||||
}
|
||||
multiline = true;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user