Revert "Unify http- and percent- encode/decode"
This reverts commit b76ee30917.
This commit is contained in:
parent
3a5b25d5b4
commit
00e98458ba
7 changed files with 110 additions and 10 deletions
|
|
@ -1168,6 +1168,24 @@ godot_string GDAPI godot_string_c_unescape(const godot_string *p_self) {
|
|||
return result;
|
||||
}
|
||||
|
||||
godot_string GDAPI godot_string_http_escape(const godot_string *p_self) {
|
||||
const String *self = (const String *)p_self;
|
||||
godot_string result;
|
||||
String return_value = self->http_escape();
|
||||
memnew_placement(&result, String(return_value));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
godot_string GDAPI godot_string_http_unescape(const godot_string *p_self) {
|
||||
const String *self = (const String *)p_self;
|
||||
godot_string result;
|
||||
String return_value = self->http_unescape();
|
||||
memnew_placement(&result, String(return_value));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
godot_string GDAPI godot_string_json_escape(const godot_string *p_self) {
|
||||
const String *self = (const String *)p_self;
|
||||
godot_string result;
|
||||
|
|
|
|||
|
|
@ -5467,6 +5467,20 @@
|
|||
["const godot_string *", "p_self"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "godot_string_http_escape",
|
||||
"return_type": "godot_string",
|
||||
"arguments": [
|
||||
["const godot_string *", "p_self"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "godot_string_http_unescape",
|
||||
"return_type": "godot_string",
|
||||
"arguments": [
|
||||
["const godot_string *", "p_self"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "godot_string_json_escape",
|
||||
"return_type": "godot_string",
|
||||
|
|
|
|||
|
|
@ -228,14 +228,17 @@ godot_string GDAPI godot_string_simplify_path(const godot_string *p_self);
|
|||
godot_string GDAPI godot_string_c_escape(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_c_escape_multiline(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_c_unescape(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_percent_decode(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_percent_encode(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_http_escape(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_http_unescape(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_json_escape(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_word_wrap(const godot_string *p_self, godot_int p_chars_per_line);
|
||||
godot_string GDAPI godot_string_xml_escape(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_xml_escape_with_quotes(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_xml_unescape(const godot_string *p_self);
|
||||
|
||||
godot_string GDAPI godot_string_percent_decode(const godot_string *p_self);
|
||||
godot_string GDAPI godot_string_percent_encode(const godot_string *p_self);
|
||||
|
||||
godot_bool GDAPI godot_string_is_valid_float(const godot_string *p_self);
|
||||
godot_bool GDAPI godot_string_is_valid_hex_number(const godot_string *p_self, godot_bool p_with_prefix);
|
||||
godot_bool GDAPI godot_string_is_valid_html_color(const godot_string *p_self);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue