You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Add String.to_{camel,pascal,snake}_case methods
This commit is contained in:
@@ -1096,6 +1096,18 @@ void godotsharp_string_simplify_path(const String *p_self, String *r_simplified_
|
||||
memnew_placement(r_simplified_path, String(p_self->simplify_path()));
|
||||
}
|
||||
|
||||
void godotsharp_string_to_camel_case(const String *p_self, String *r_camel_case) {
|
||||
memnew_placement(r_camel_case, String(p_self->to_camel_case()));
|
||||
}
|
||||
|
||||
void godotsharp_string_to_pascal_case(const String *p_self, String *r_pascal_case) {
|
||||
memnew_placement(r_pascal_case, String(p_self->to_pascal_case()));
|
||||
}
|
||||
|
||||
void godotsharp_string_to_snake_case(const String *p_self, String *r_snake_case) {
|
||||
memnew_placement(r_snake_case, String(p_self->to_snake_case()));
|
||||
}
|
||||
|
||||
void godotsharp_node_path_get_as_property_path(const NodePath *p_ptr, NodePath *r_dest) {
|
||||
memnew_placement(r_dest, NodePath(p_ptr->get_as_property_path()));
|
||||
}
|
||||
@@ -1471,6 +1483,9 @@ static const void *unmanaged_callbacks[]{
|
||||
(void *)godotsharp_string_sha256_buffer,
|
||||
(void *)godotsharp_string_sha256_text,
|
||||
(void *)godotsharp_string_simplify_path,
|
||||
(void *)godotsharp_string_to_camel_case,
|
||||
(void *)godotsharp_string_to_pascal_case,
|
||||
(void *)godotsharp_string_to_snake_case,
|
||||
(void *)godotsharp_node_path_get_as_property_path,
|
||||
(void *)godotsharp_node_path_get_concatenated_names,
|
||||
(void *)godotsharp_node_path_get_concatenated_subnames,
|
||||
|
||||
Reference in New Issue
Block a user