1
0
Fork 0
godot/core/variant
Joel Croteau 8be7ad32e7 Consolidate and simplify string joining code in `VariantUtilityFunctions`
`variant_utility.cpp` has 8 different copies of the exact same loop to join
vararg strings together. This is bad coding process and makes the codebase
needlessly cluttered. Also, the loop itself has an i == 0 check that is
unnecessary since String is auto-initialized to be empty and String::operator+=
already checks if it is empty before appending. This is a non-functional change
that only reorganizes the code to be a bit more readable.
2025-05-12 17:47:14 -05:00
..
SCsub SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
array.cpp Array performance improvements to reduce copying/copy_on_write calls 2025-05-06 13:19:50 -04:00
array.h Merge pull request #86015 from kitbdev/array-initializer-list 2025-03-19 17:46:06 -05:00
binder_common.h Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
callable.cpp Fix crash when calling get_argument_count() on invalid Callable 2025-03-04 13:32:34 +09:00
callable.h Core: Expand `is_zero_constructible` coverage 2025-03-17 11:45:26 -05:00
callable_bind.cpp Merge pull request #98713 from dalexeev/core-fix-callable-get-bound-arguments 2024-11-12 12:13:04 -06:00
callable_bind.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
container_type_validate.h Merge pull request #100057 from aaronp64/container_validate_obj_perf 2025-05-06 08:38:03 -05:00
dictionary.cpp Avoid extra copy/validation of keys in Dictionary::has_all 2025-04-29 15:27:12 -04:00
dictionary.h Dictionary::get_key_list use LocalVector instead of List. 2025-04-09 02:46:24 +08:00
method_ptrcall.h Core: Natively convert enum/BitField with Variant 2025-04-05 12:35:34 -05:00
native_ptr.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
type_info.h Core: Add dedicated `BitField` template 2025-04-11 11:53:26 -05:00
typed_array.h Core: Natively convert enum/BitField with Variant 2025-04-05 12:35:34 -05:00
typed_dictionary.h Core: Natively convert enum/BitField with Variant 2025-04-05 12:35:34 -05:00
variant.cpp Core: Natively convert enum/BitField with Variant 2025-04-05 12:35:34 -05:00
variant.h Core: Add dedicated `BitField` template 2025-04-11 11:53:26 -05:00
variant_call.cpp Merge pull request #103264 from mhilbrunner/docs-path-join 2025-05-07 12:48:29 -05:00
variant_callable.cpp Add methods to get argument count of methods 2024-03-10 11:02:43 +01:00
variant_callable.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
variant_construct.cpp [Core] Improve error messages with `vformat` 2024-10-30 15:55:51 +01:00
variant_construct.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
variant_destruct.cpp Apply iwyu suggestion in core. 2024-12-19 00:43:47 +08:00
variant_destruct.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
variant_internal.h Core: Natively convert enum/BitField with Variant 2025-04-05 12:35:34 -05:00
variant_op.cpp Merge pull request #90971 from billuo/string-format-rid 2025-04-14 19:39:50 -05:00
variant_op.h Use initializer list in Arrays 2025-03-26 18:38:15 +01:00
variant_parser.cpp Core: Replace C math headers with C++ equivalents 2025-04-16 15:49:02 -05:00
variant_parser.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
variant_setget.cpp Use initializer list in Arrays 2025-03-26 18:38:15 +01:00
variant_setget.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
variant_utility.cpp Consolidate and simplify string joining code in `VariantUtilityFunctions` 2025-05-12 17:47:14 -05:00
variant_utility.h Consolidate and simplify string joining code in `VariantUtilityFunctions` 2025-05-12 17:47:14 -05:00