aboutsummaryrefslogtreecommitdiff
path: root/po/nl/minetest.po
diff options
context:
space:
mode:
authorBluebird <bluebird.greycoat@gmail.com>2016-12-02 04:20:55 -0600
committerZeno- <kde.psych@gmail.com>2016-12-02 20:20:55 +1000
commit144da5f522bf057ac612ef1fa09478d0215f6d0d (patch)
tree78105b716345a2fe4eff99d5870e36e86126991d /po/nl/minetest.po
parent105676b952484affdb97164eceaf4cb903955373 (diff)
downloadminetest-144da5f522bf057ac612ef1fa09478d0215f6d0d.tar.gz
minetest-144da5f522bf057ac612ef1fa09478d0215f6d0d.tar.bz2
minetest-144da5f522bf057ac612ef1fa09478d0215f6d0d.zip
Very small documentation fix. (#4830)
Diffstat (limited to 'po/nl/minetest.po')
0 files changed, 0 insertions, 0 deletions
class="hl com">*/ #pragma once #include <string> template <typename T> class BasicStrfnd { typedef std::basic_string<T> String; String str; size_t pos; public: BasicStrfnd(const String &s) : str(s), pos(0) {} 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>('\\'))