virtualx-engine/core
Kirill Diduk 7b8b91f505 [GDScript][GDNative] Add 'sort' and 'has' methods to pooled arrays
This is a backport from 4.0 to 3.x that adds 'sort' and 'has' methods
to the following types:
- PoolByteArray
- PoolIntArray
- PoolRealArray
- PoolStringArray
- PoolVector2Array
- PoolVector3Array
- PoolColorArray

For all the types above, the methods 'sort' and 'has' have been
exposed to the GDNative API (v. 1.3)

Since the method 'has' was already implemented in GDScript before,
in this commit it has been only exposed to GDNative API.

The classes documentation is updated.

The method 'sort' uses the exisging class "Sorter".

Pooled arrays in 4.0 are rewritten, that's why this backport is not
completely indentical to the original PR made for 4.0 (see #32144).
2022-07-07 23:24:31 +02:00
..
bind Check thread func in base scripts for argument info 2022-06-27 11:24:04 +08:00
crypto Bump mbedTLS version to 2.28.0 (new LTS). 2022-01-19 14:03:03 +01:00
io [3.x] Improve embedded PCK loading and exporting. 2022-04-28 11:11:48 +03:00
math Ensure AudioFrame variables l and r are always initialised 2022-06-20 14:58:57 +02:00
os Corrected InputEventKey::as_text to return a non-empty string for physical keys. 2022-07-02 15:34:15 +02:00
array.cpp Add fill method to Array and PoolArrays 2022-04-23 19:29:17 +08:00
array.h Add fill method to Array and PoolArrays 2022-04-23 19:29:17 +08:00
bitfield_dynamic.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
bitfield_dynamic.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
class_db.cpp Enable type information on release 2022-04-01 18:20:33 -03:00
class_db.h Enable type information on release 2022-04-01 18:20:33 -03:00
color.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
color.h Add nodiscard to core math classes to catch c++ errors. 2022-01-20 17:28:31 +00:00
color_names.inc Update color constants to use HEX codes 2022-03-17 15:49:58 +01:00
command_queue_mt.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
command_queue_mt.h Fix typos with codespell 2022-02-11 09:50:59 +01:00
compressed_translation.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
compressed_translation.h Fix typos with codespell 2022-02-11 09:50:59 +01:00
core_builders.py SCons: Generate header with info on which modules are enabled 2021-07-14 23:09:47 +02:00
core_string_names.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
core_string_names.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
cowdata.h Remove get_data() from CowData 2022-04-13 11:32:44 +02:00
dictionary.cpp Add Dictionary.merge() 2022-06-09 11:58:48 +02:00
dictionary.h Add Dictionary.merge() 2022-06-09 11:58:48 +02:00
engine.cpp Core: Move generated VERSION_HASH to a .cpp file 2022-02-10 13:06:56 +01:00
engine.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
error_list.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
error_macros.cpp Errors: Fallback to fprintf if OS singleton doesn't exist 2022-06-30 19:23:02 +02:00
error_macros.h Protection for array operator for Vector2 / 3 in DEV builds 2022-03-07 10:34:40 +00:00
func_ref.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
func_ref.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
global_constants.cpp [3.5] Update NavigationServer backport 2022-06-14 05:55:14 +02:00
global_constants.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
hash_map.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
hashfuncs.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
image.cpp Improve error messages when creating Images from code 2022-05-16 21:12:21 +02:00
image.h Fix Image.blit_rect/blend_rect() for negative p_dest point 2022-04-27 12:38:27 +02:00
input_map.cpp [3.x] Fix action exact match 2022-01-13 22:29:18 -06:00
input_map.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
int_types.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
list.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
local_vector.h Optimized Mesh Merging 2022-06-07 20:16:51 +01:00
make_binders.py Fix argument type generation with typed method binds 2022-04-02 14:32:01 -03:00
map.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
message_queue.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
message_queue.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
method_bind.cpp Enable type information on release 2022-04-01 18:20:33 -03:00
method_bind.h Enable type information on release 2022-04-01 18:20:33 -03:00
method_ptrcall.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
node_path.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
node_path.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
oa_hash_map.h Backported the oa_hashmap lookup_ptr function 2022-04-22 10:00:55 +02:00
object.cpp fix get_meta() with defalt value 2022-05-24 20:23:08 +08:00
object.h [3.5] Update NavigationServer backport 2022-06-14 05:55:14 +02:00
object_id.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
object_rc.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
ordered_hash_map.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
packed_data_container.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
packed_data_container.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
paged_allocator.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
pair.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
path_remap.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
path_remap.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
pool_allocator.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
pool_allocator.h Fix typos with codespell 2022-02-11 09:50:59 +01:00
pool_vector.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
pool_vector.h [GDScript][GDNative] Add 'sort' and 'has' methods to pooled arrays 2022-07-07 23:24:31 +02:00
pooled_list.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
print_string.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
print_string.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
project_settings.cpp ProjectSettings: Ensure 'editor/' settings aren't nested 2022-06-19 11:47:19 +02:00
project_settings.h ProjectSettings add dirty flag and project_settings_changed signal 2022-02-09 11:20:25 +00:00
ref_ptr.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
ref_ptr.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
reference.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
reference.h Enable type information on release 2022-04-01 18:20:33 -03:00
register_core_types.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
register_core_types.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
resource.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
resource.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
rid.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
rid.h RID: Change comparison operators to use RID_Data id instead of address 2022-03-17 11:03:07 +01:00
rid_handle.cpp Improve locking safety for RID handles builds 2022-04-23 09:09:50 +01:00
rid_handle.h Improve locking safety for RID handles builds 2022-04-23 09:09:50 +01:00
ring_buffer.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
safe_refcount.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
safe_refcount.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
script_debugger_local.cpp Rename profiler "Idle Time" to "Process Time" 2022-05-06 19:31:31 +02:00
script_debugger_local.h Rename profiler "Idle Time" to "Process Time" 2022-05-06 19:31:31 +02:00
script_language.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
script_language.h Rename profiler "Idle Time" to "Process Time" 2022-05-06 19:31:31 +02:00
SCsub Core: Move generated VERSION_HASH to a .cpp file 2022-02-10 13:06:56 +01:00
self_list.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
set.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
simple_type.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
sort_array.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
string_buffer.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
string_builder.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
string_builder.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
string_name.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
string_name.h Implement Scene Unique Nodes 2022-04-26 13:55:48 +02:00
threaded_callable_queue.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
translation.cpp Add context support for editor translation 2022-03-16 15:44:30 +08:00
translation.h Add context support for editor translation 2022-03-16 15:44:30 +08:00
type_info.h Enable type information on release 2022-04-01 18:20:33 -03:00
typedefs.h Float literals - fix math classes to allow 32 bit calculations 2022-02-24 16:46:02 +00:00
ucaps.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
undo_redo.cpp Merge pull request #54188 from Rubonnek/increase_var_arg_max_3x 2022-03-08 13:10:48 +01:00
undo_redo.h Fix UndoRedo::create_action() invalid memory usage 2022-03-02 12:02:37 +01:00
ustring.cpp Merge pull request #54083 from Rubonnek/add_bin_messages_3x 2022-07-05 23:04:15 +02:00
ustring.h [Windows, 3.x] Add support for handling network share paths. 2022-06-13 09:24:35 +03:00
variant.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
variant.h Merge pull request #54188 from Rubonnek/increase_var_arg_max_3x 2022-03-08 13:10:48 +01:00
variant_call.cpp [GDScript][GDNative] Add 'sort' and 'has' methods to pooled arrays 2022-07-07 23:24:31 +02:00
variant_op.cpp Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
variant_parser.cpp Increase line counter when parsing comments 2022-05-16 15:56:47 +02:00
variant_parser.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
vector.h Merge pull request #60421 from AndreaCatania/bvo_3x 2022-04-26 11:35:03 +02:00
version.h Core: Move generated VERSION_HASH to a .cpp file 2022-02-10 13:06:56 +01:00
vmap.h Make VMap::find_nearest return -1 when empty 2022-02-17 09:59:28 +01:00
vset.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00