summaryrefslogtreecommitdiff
path: root/core/ustring.h
diff options
context:
space:
mode:
authorBil Bas (Spooner) <bil.bagpuss@gmail.com>2015-01-10 20:44:20 +0000
committerBil Bas (Spooner) <bil.bagpuss@gmail.com>2015-01-10 20:44:20 +0000
commit7a41f8c604143eec16c232cffda122b095c5108f (patch)
treed75667bb5392db5dea502b0bfbb8e36f914a81e6 /core/ustring.h
parentd6d85a23c9061149c7996a3b434e6f9b25a81e49 (diff)
Added basic sprintf functionality (e.g. "fish %d %s" % [12, Vector2(1, 2)])
Diffstat (limited to 'core/ustring.h')
-rw-r--r--core/ustring.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/ustring.h b/core/ustring.h
index e1d6761742..ccbbf5e5d2 100644
--- a/core/ustring.h
+++ b/core/ustring.h
@@ -31,6 +31,7 @@
#include "typedefs.h"
#include "vector.h"
+#include "array.h"
/**
@author red <red@killy>
@@ -127,6 +128,7 @@ public:
String insert(int p_at_pos,String p_string) const;
String pad_decimals(int p_digits) const;
String pad_zeros(int p_digits) const;
+ String sprintf(const Array& values) const;
static String num(double p_num,int p_decimals=-1);
static String num_scientific(double p_num);
static String num_real(double p_num);
@@ -203,7 +205,7 @@ public:
String xml_unescape() const;
String c_escape() const;
String c_unescape() const;
-
+
String percent_encode() const;
String percent_decode() const;