diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-06-19 10:47:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 10:47:34 +0200 |
commit | 22afebcad71db07063fa11fd4489b29741f28009 (patch) | |
tree | c2848dc5d944043f3b51de6c79d01c6c1d5cd999 | |
parent | 92277d3a2837e71556768e6479e0bff6b69e4031 (diff) | |
parent | ae839bd0d8f012d638b10397521df74714c50403 (diff) |
Merge pull request #29598 from GodotExplorer/uri-encode
Expose String.http_escape and String.http_unescape
-rw-r--r-- | core/variant_call.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp index b3a4a13b08..5d5f18926f 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -285,6 +285,8 @@ struct _VariantCall { VCALL_LOCALMEM0R(String, get_file); VCALL_LOCALMEM0R(String, xml_escape); VCALL_LOCALMEM0R(String, xml_unescape); + VCALL_LOCALMEM0R(String, http_escape); + VCALL_LOCALMEM0R(String, http_unescape); VCALL_LOCALMEM0R(String, c_escape); VCALL_LOCALMEM0R(String, c_unescape); VCALL_LOCALMEM0R(String, json_escape); @@ -1550,6 +1552,8 @@ void register_variant_methods() { ADDFUNC0R(STRING, STRING, String, get_file, varray()); ADDFUNC0R(STRING, STRING, String, xml_escape, varray()); ADDFUNC0R(STRING, STRING, String, xml_unescape, varray()); + ADDFUNC0R(STRING, STRING, String, http_escape, varray()); + ADDFUNC0R(STRING, STRING, String, http_unescape, varray()); ADDFUNC0R(STRING, STRING, String, c_escape, varray()); ADDFUNC0R(STRING, STRING, String, c_unescape, varray()); ADDFUNC0R(STRING, STRING, String, json_escape, varray()); |