aboutsummaryrefslogtreecommitdiff
path: root/po/pl/minetest.po
diff options
context:
space:
mode:
authorPetr Hála <halapetr@selfnet.cz>2013-10-08 07:06:49 +0200
committerWeblate <42@minetest.ru>2013-11-23 17:33:14 +0100
commit80981f80f3206ea4124542243b321464ea1d7688 (patch)
tree892c8e054fe6516676ac3ba2a66cfbe70b04a068 /po/pl/minetest.po
parentab601e87109c3ac880dcbcd11fe5ab456954ec35 (diff)
downloadminetest-80981f80f3206ea4124542243b321464ea1d7688.tar.gz
minetest-80981f80f3206ea4124542243b321464ea1d7688.tar.bz2
minetest-80981f80f3206ea4124542243b321464ea1d7688.zip
Translated using Weblate (Czech)
Diffstat (limited to 'po/pl/minetest.po')
0 files changed, 0 insertions, 0 deletions
data_size) { std::string ret; char buf2[3]; buf2[2] = '\0'; for(unsigned int i = 0; i < data_size; i++) { unsigned char c = (unsigned char) data[i]; buf2[0] = hex_chars[(c & 0xf0) >> 4]; buf2[1] = hex_chars[c & 0x0f]; ret.append(buf2); } return ret; } static inline std::string hex_encode(const std::string &data) { return hex_encode(data.c_str(), data.size()); } static inline bool hex_digit_decode(char hexdigit, unsigned char &value) { if(hexdigit >= '0' && hexdigit <= '9') value = hexdigit - '0'; else if(hexdigit >= 'A' && hexdigit <= 'F') value = hexdigit - 'A' + 10; else if(hexdigit >= 'a' && hexdigit <= 'f') value = hexdigit - 'a' + 10; else return false; return true; } #endif