Unify http- and percent- encode/decode
There was a percent-prefixed version, which was exposed, and a http-prefixed version which was not (only to GDNative). This commit keeps the percent-prefixed versions, but with the http-prefixed implementations.
This commit is contained in:
@@ -1168,24 +1168,6 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user