virtualx-engine/core
Maganty Rushyendra b7d835d9ca Enable zero padding with float specifier for format strings
Godot currently supports zero padding for integers, octals and
hexadecimals when using format strings, but not for floats.

This commit adds support for zero padding for floats, thus ensuring
consistent behavior for all types, and making Godot's format specifiers'
behavior closer to c's `printf()`.

Before: `print("<%07.2f>" % -0.2345)` prints `<  -0.23>`.
Now: `print("<%07.2f>" % -0.2345)` prints `<-000.23>`.
     `print("<%7.2f>" % -0.2345)` prints `<  -0.23>`.
2020-06-03 21:21:27 +08:00
..
bind Split Geometry singleton into Geometry2D and Geometry3D 2020-05-27 14:28:34 +03:00
crypto Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
debugger Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
input Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
io Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
math Split Geometry singleton into Geometry2D and Geometry3D 2020-05-27 14:28:34 +03:00
os Print errors when calling MIDI input methods on unsupported platforms 2020-05-31 19:10:27 +02:00
array.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
array.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
callable.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
callable.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
callable_method_pointer.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
callable_method_pointer.h Fix Container sorting not working when overriding _sort_children in gdscript 2020-05-16 18:13:25 +02:00
class_db.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
class_db.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
color.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
color.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
color_names.inc Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
command_queue_mt.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
command_queue_mt.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
compressed_translation.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
compressed_translation.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
container_type_validate.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
core_builders.py SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
core_string_names.cpp Replace NULL with nullptr 2020-04-02 13:38:00 +02:00
core_string_names.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
cowdata.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
dictionary.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
dictionary.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
engine.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
engine.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
error_list.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
error_macros.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
error_macros.h Error macros: Improve style of error messages 2020-05-15 18:21:14 +02:00
func_ref.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
func_ref.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
global_constants.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
global_constants.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
hash_map.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
hashfuncs.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
image.cpp Expose Image.save_png_to_buffer method 2020-05-20 14:43:24 +03:00
image.h Remove HQ2X and the Image.expand_2x_hq2x() method 2020-05-16 16:10:50 +02:00
int_types.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
list.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
local_vector.h Fix unsigned integer bug in LocalVector::erase 2020-05-27 21:53:34 +08:00
make_binders.py Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
map.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
message_queue.cpp Fix Container sorting not working when overriding _sort_children in gdscript 2020-05-16 18:13:25 +02:00
message_queue.h Fix Container sorting not working when overriding _sort_children in gdscript 2020-05-16 18:13:25 +02:00
method_bind.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
method_bind.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
method_ptrcall.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
node_path.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
node_path.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
oa_hash_map.h - Make sure it's impossible to initialize an OAHashMap with 0 capacity (would cause division by 0) 2020-05-25 11:18:02 +02:00
object.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
object.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
object_id.h Reworked signal connection system, added support for Callable and Signal objects and made them default. 2020-02-20 08:24:50 +01:00
ordered_hash_map.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
packed_data_container.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
packed_data_container.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
pair.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
pool_allocator.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
pool_allocator.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
print_string.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
print_string.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
project_settings.cpp Improve documentation of ProjectSettings::setup 2020-05-25 17:50:36 +02:00
project_settings.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
reference.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
reference.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
register_core_types.cpp Split Geometry singleton into Geometry2D and Geometry3D 2020-05-27 14:28:34 +03:00
register_core_types.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
resource.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
resource.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
rid.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
rid_owner.cpp Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
rid_owner.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
ring_buffer.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
safe_refcount.cpp Style: Fix unnecessary semicolons that confused clang-format 2020-05-19 11:24:58 +02:00
safe_refcount.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
script_language.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
script_language.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
SCsub Remove HQ2X and the Image.expand_2x_hq2x() method 2020-05-16 16:10:50 +02:00
self_list.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
set.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
simple_type.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
sort_array.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
spin_lock.h Port member initialization from constructor to declaration (C++11) 2020-05-14 10:01:56 +02:00
string_buffer.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
string_builder.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
string_builder.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
string_name.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
string_name.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
thread_work_pool.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
thread_work_pool.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
translation.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
translation.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
type_info.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
typed_array.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
typedefs.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
ucaps.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
undo_redo.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
undo_redo.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
ustring.cpp Enable zero padding with float specifier for format strings 2020-06-03 21:21:27 +08:00
ustring.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
variant.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
variant.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
variant_call.cpp Docs: Fix order of variant constants. 2020-05-20 16:45:42 +03:00
variant_op.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
variant_parser.cpp Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
variant_parser.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
vector.h Style: Remove unnecessary semicolons from core 2020-05-19 15:57:56 +02:00
version.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
vmap.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
vset.h Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00