aboutsummaryrefslogtreecommitdiff
ModeNameSize
-rw-r--r--.clang-format733logplain
-rw-r--r--.clang-tidy507logplain
-rw-r--r--.gitattributes28logplain
d---------.github45logplain
-rw-r--r--.gitignore1670logplain
-rw-r--r--.gitlab-ci.yml9520logplain
-rw-r--r--.mailmap2087logplain
-rw-r--r--.travis.yml2754logplain
-rw-r--r--CMakeLists.txt11368logplain
-rw-r--r--CONTRIBUTING.md6745/* Minetest-c55 Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "serialize.h" #include <sstream> #include <iomanip> // Creates a string encoded in JSON format (almost equivalent to a C string literal) std::string serializeJsonString(const std::string &plain) { std::ostringstream os(std::ios::binary); os<<"\""; for(size_t i = 0; i < plain.size(); i++) { char c = plain[i]; switch(c) { case '"': os<<"\\\""; break; case '\\': os<<"\\\\"; break; case '/': os<<"\\/"; break;st.git/plain/cmake?h=release&id=76325d0ba925cfdd18e387ae96d27921136e98e5'>plain
d---------doc585logplain
d---------fonts1835logplain
d---------games / minimal34logplain
d---------lib94logplain
-rw-r--r--minetest.conf.example87684logplain
d---------misc669logplain
d---------mods41logplain
d---------po1128logplain
d---------src6891logplain
d---------textures81logplain
d---------util288logplain