mirror of
https://github.com/godotengine/godot.git
synced 2025-04-25 01:48:08 +08:00
Merge pull request #67031 from raulsntos/dotnet/string-extensions
C#: Cleanup and sync StringExtensions with core
This commit is contained in:
commit
8253c28200
modules/mono/glue
@ -414,21 +414,6 @@ namespace Godot.NativeInterop
|
||||
|
||||
// StringExtensions
|
||||
|
||||
public static partial void godotsharp_string_md5_buffer(in godot_string p_self,
|
||||
out godot_packed_byte_array r_md5_buffer);
|
||||
|
||||
public static partial void godotsharp_string_md5_text(in godot_string p_self, out godot_string r_md5_text);
|
||||
|
||||
public static partial int godotsharp_string_rfind(in godot_string p_self, in godot_string p_what, int p_from);
|
||||
|
||||
public static partial int godotsharp_string_rfindn(in godot_string p_self, in godot_string p_what, int p_from);
|
||||
|
||||
public static partial void godotsharp_string_sha256_buffer(in godot_string p_self,
|
||||
out godot_packed_byte_array r_sha256_buffer);
|
||||
|
||||
public static partial void godotsharp_string_sha256_text(in godot_string p_self,
|
||||
out godot_string r_sha256_text);
|
||||
|
||||
public static partial void godotsharp_string_simplify_path(in godot_string p_self,
|
||||
out godot_string r_simplified_path);
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1067,30 +1067,6 @@ void godotsharp_dictionary_to_string(const Dictionary *p_self, String *r_str) {
|
||||
*r_str = Variant(*p_self).operator String();
|
||||
}
|
||||
|
||||
void godotsharp_string_md5_buffer(const String *p_self, PackedByteArray *r_md5_buffer) {
|
||||
memnew_placement(r_md5_buffer, PackedByteArray(p_self->md5_buffer()));
|
||||
}
|
||||
|
||||
void godotsharp_string_md5_text(const String *p_self, String *r_md5_text) {
|
||||
memnew_placement(r_md5_text, String(p_self->md5_text()));
|
||||
}
|
||||
|
||||
int32_t godotsharp_string_rfind(const String *p_self, const String *p_what, int32_t p_from) {
|
||||
return p_self->rfind(*p_what, p_from);
|
||||
}
|
||||
|
||||
int32_t godotsharp_string_rfindn(const String *p_self, const String *p_what, int32_t p_from) {
|
||||
return p_self->rfindn(*p_what, p_from);
|
||||
}
|
||||
|
||||
void godotsharp_string_sha256_buffer(const String *p_self, PackedByteArray *r_sha256_buffer) {
|
||||
memnew_placement(r_sha256_buffer, PackedByteArray(p_self->sha256_buffer()));
|
||||
}
|
||||
|
||||
void godotsharp_string_sha256_text(const String *p_self, String *r_sha256_text) {
|
||||
memnew_placement(r_sha256_text, String(p_self->sha256_text()));
|
||||
}
|
||||
|
||||
void godotsharp_string_simplify_path(const String *p_self, String *r_simplified_path) {
|
||||
memnew_placement(r_simplified_path, String(p_self->simplify_path()));
|
||||
}
|
||||
@ -1473,12 +1449,6 @@ static const void *unmanaged_callbacks[]{
|
||||
(void *)godotsharp_dictionary_duplicate,
|
||||
(void *)godotsharp_dictionary_remove_key,
|
||||
(void *)godotsharp_dictionary_to_string,
|
||||
(void *)godotsharp_string_md5_buffer,
|
||||
(void *)godotsharp_string_md5_text,
|
||||
(void *)godotsharp_string_rfind,
|
||||
(void *)godotsharp_string_rfindn,
|
||||
(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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user