mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Added StringView type (similar to std::string_view)
This commit is contained in:
@@ -225,7 +225,7 @@ void Reader::readLine(bool in_string) {
|
||||
}
|
||||
}
|
||||
key = canonical_name_form(trim(key));
|
||||
value = pos == String::npos ? _("") : trim_left(line.substr(pos+1));
|
||||
value = pos == String::npos ? String() : trim_left(substr(line, pos+1));
|
||||
if (key.empty() && pos!=String::npos) key = _(" "); // we don't want an empty key if there was a colon
|
||||
}
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ private:
|
||||
OUTSIDE, ///< We have not entered the block of the current key
|
||||
ENTERED, ///< We just entered the block of the current key
|
||||
HANDLED, ///< We have handled a value, and moved to the next line, previous_value is the value we just handled
|
||||
UNHANDLED, ///< Something has been 'unhandled()'
|
||||
UNHANDLED, ///< Something has been 'unhandle()-ed'
|
||||
} state;
|
||||
/// Should all invalid keys be ignored?
|
||||
bool ignore_invalid;
|
||||
|
||||
Reference in New Issue
Block a user