]> git.lizzy.rs Git - minetest.git/blobdiff - src/nameidmapping.h
Fix umlauts/special character issue in lua gettext
[minetest.git] / src / nameidmapping.h
index 071599e109db0d00557df4582bab011efa0edb5f..417c441d23a7e1f0d486b70f9f74a5ec755053c7 100644 (file)
@@ -1,18 +1,18 @@
 /*
-Minetest-c55
-Copyright (C) 2011 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2013 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 General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
+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 General Public License for more details.
+GNU Lesser General Public License for more details.
 
-You should have received a copy of the GNU General Public License along
+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.
 */
@@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <iostream>
 #include <set>
 #include <map>
-#include "irrlichttypes.h"
+#include "irrlichttypes_bloated.h"
 
 class NameIdMapping
 {
@@ -70,6 +70,9 @@ class NameIdMapping
                result = i->second;
                return true;
        }
+       u16 size() const{
+               return m_id_to_name.size();
+       }
 private:
        std::map<u16, std::string> m_id_to_name;
        std::map<std::string, u16> m_name_to_id;