aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/default/textures/default_junglegrass.png
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2017-08-19 19:43:02 +0100
committerSmallJoker <mk939@ymail.com>2018-06-03 17:31:59 +0200
commite9087d1be7e24557a268e77b3005052058d89adb (patch)
tree8b2f326d75bd370039790aaecf0bc0c9b0a86e50 /games/minimal/mods/default/textures/default_junglegrass.png
parentbb4ef529548d2d27fbea0617347d49eb7ba70b85 (diff)
downloadminetest-e9087d1be7e24557a268e77b3005052058d89adb.tar.gz
minetest-e9087d1be7e24557a268e77b3005052058d89adb.tar.bz2
minetest-e9087d1be7e24557a268e77b3005052058d89adb.zip
Fix empty legacy meta being persisted
Diffstat (limited to 'games/minimal/mods/default/textures/default_junglegrass.png')
0 files changed, 0 insertions, 0 deletions
an class="hl kwb">const String &s) { str = s; pos = 0; } size_t where() { return pos; } void to(size_t i) { pos = i; } bool at_end() { return pos >= str.size(); } String what() { return str; } String next(const String &sep) { if (pos >= str.size()) return String(); size_t n; if (sep.empty() || (n = str.find(sep, pos)) == String::npos) { n = str.size(); } String ret = str.substr(pos, n - pos); pos = n + sep.size(); return ret; } // Returns substr up to the next occurence of sep that isn't escaped with esc ('\\') String next_esc(const String &sep, T esc=static_cast<T>('\\')) { if (pos >= str.size()) return String(); size_t n, old_p = pos; do { if (sep.empty() || (n = str.find(sep, pos)) == String::npos) { pos = n = str.size(); break; } pos = n + sep.length(); } while (n > 0 && str[n - 1] == esc); return str.substr(old_p, n - old_p); } void skip_over(const String &chars) { size_t p = str.find_first_not_of(chars, pos); if (p != String::npos) pos = p; } }; typedef BasicStrfnd<char> Strfnd; typedef BasicStrfnd<wchar_t> WStrfnd;