aboutsummaryrefslogtreecommitdiff
path: root/assets/blender/mbb/modern_wagong_uv.blend
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-01-24 13:43:22 +0100
committerorwell96 <orwell@bleipb.de>2019-01-24 13:43:22 +0100
commit2976bae4522a1682808db55473d9f824c7155cc6 (patch)
tree18cbfebbbf2d46a005499f8255b902b7e6c5e3da /assets/blender/mbb/modern_wagong_uv.blend
parent1c3ea960415fcbd63c5f1b2cd8a5b25f79d2879f (diff)
downloadadvtrains-2976bae4522a1682808db55473d9f824c7155cc6.tar.gz
advtrains-2976bae4522a1682808db55473d9f824c7155cc6.tar.bz2
advtrains-2976bae4522a1682808db55473d9f824c7155cc6.zip
Point speed restriction rails
Diffstat (limited to 'assets/blender/mbb/modern_wagong_uv.blend')
0 files changed, 0 insertions, 0 deletions
span class="hl kwb">void start(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;