Merge pull request #29598 from GodotExplorer/uri-encode

Expose String.http_escape and String.http_unescape
This commit is contained in:
Rémi Verschelde 2019-06-19 10:47:34 +02:00 committed by GitHub
commit 22afebcad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -285,6 +285,8 @@ struct _VariantCall {
VCALL_LOCALMEM0R(String, get_file); VCALL_LOCALMEM0R(String, get_file);
VCALL_LOCALMEM0R(String, xml_escape); VCALL_LOCALMEM0R(String, xml_escape);
VCALL_LOCALMEM0R(String, xml_unescape); VCALL_LOCALMEM0R(String, xml_unescape);
VCALL_LOCALMEM0R(String, http_escape);
VCALL_LOCALMEM0R(String, http_unescape);
VCALL_LOCALMEM0R(String, c_escape); VCALL_LOCALMEM0R(String, c_escape);
VCALL_LOCALMEM0R(String, c_unescape); VCALL_LOCALMEM0R(String, c_unescape);
VCALL_LOCALMEM0R(String, json_escape); VCALL_LOCALMEM0R(String, json_escape);
@ -1550,6 +1552,8 @@ void register_variant_methods() {
ADDFUNC0R(STRING, STRING, String, get_file, varray()); ADDFUNC0R(STRING, STRING, String, get_file, varray());
ADDFUNC0R(STRING, STRING, String, xml_escape, varray()); ADDFUNC0R(STRING, STRING, String, xml_escape, varray());
ADDFUNC0R(STRING, STRING, String, xml_unescape, 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_escape, varray());
ADDFUNC0R(STRING, STRING, String, c_unescape, varray()); ADDFUNC0R(STRING, STRING, String, c_unescape, varray());
ADDFUNC0R(STRING, STRING, String, json_escape, varray()); ADDFUNC0R(STRING, STRING, String, json_escape, varray());