mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
- Added 'package list' field type
- Some refactoring of the other field types git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@790 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -72,6 +72,8 @@ String trim(const String& s){
|
||||
size_t end = s.find_last_not_of( _(" \t"));
|
||||
if (start == String::npos) {
|
||||
return String();
|
||||
} else if (start == 0 && end == s.size() - 1) {
|
||||
return s;
|
||||
} else {
|
||||
return s.substr(start, end - start + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user