aboutsummaryrefslogtreecommitdiff
path: root/core/path_remap.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--core/path_remap.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/core/path_remap.h b/core/path_remap.h
index fc687ee03..83d216e30 100644
--- a/core/path_remap.h
+++ b/core/path_remap.h
@@ -30,36 +30,35 @@
#define PATH_REMAP_H
#include "hash_map.h"
-#include "ustring.h"
#include "object.h"
-
+#include "ustring.h"
class PathRemap : public Object {
- OBJ_TYPE(PathRemap,Object);
+ OBJ_TYPE(PathRemap, Object);
- static PathRemap* singleton;
+ static PathRemap *singleton;
struct RemapData {
String always;
- Map<String,String> locale;
+ Map<String, String> locale;
};
- HashMap<String,RemapData> remap;
-protected:
+ HashMap<String, RemapData> remap;
+protected:
static void _bind_methods();
-public:
- void add_remap(const String& p_from, const String& p_to,const String& p_locale=String());
- bool has_remap(const String& p_from) const;
+public:
+ void add_remap(const String &p_from, const String &p_to, const String &p_locale = String());
+ bool has_remap(const String &p_from) const;
//_FORCE_INLINE_ String get_remap(const String& p_from) const { const String *ptr=remap.getptr(p_from); if (!ptr) return p_from; else return *ptr; }
- String get_remap(const String& p_from) const;
- void erase_remap(const String& p_from);
+ String get_remap(const String &p_from) const;
+ void erase_remap(const String &p_from);
void clear_remaps();
void load_remaps();
- static PathRemap* get_singleton();
+ static PathRemap *get_singleton();
PathRemap();
};