godot/core/string
Gergely Kis bf5907b724
StringName: Use inline static field definitions
Before this change StringName used regular static field
definitions for its mutex, _table, configured and debug_stringname
fields.

Since in the general case the ordering of the static variable and field
initialization and destruction is undefined, it was possible that
the destruction of StringName's static fields happened prior to
the destruction of statically allocated StringName instances.

By changing the static field definitions to inline in string_name.h,
the C++17 standard guarantees the correct initialization and destruction
ordering.

(cherry picked from commit 723878bbab)
2024-09-16 17:05:50 +02:00
..
SCsub
char_range.inc Add is_valid_letter() to TextServer 2024-05-02 21:32:20 +02:00
char_utils.h Merge pull request #81639 from MJacred/is_letter 2024-05-03 01:21:34 +02:00
locales.h
node_path.cpp
node_path.h
optimized_translation.cpp
optimized_translation.h
print_string.cpp
print_string.h
string_buffer.h
string_builder.cpp
string_builder.h
string_name.cpp StringName: Use inline static field definitions 2024-09-16 17:05:50 +02:00
string_name.h StringName: Use inline static field definitions 2024-09-16 17:05:50 +02:00
translation.compat.inc
translation.cpp Remove editor pseudolocalization debug feature 2024-06-24 17:08:26 +02:00
translation.h Remove editor pseudolocalization debug feature 2024-06-24 17:08:26 +02:00
translation_po.cpp Improve PR plural translation rules handling. 2024-06-18 19:04:00 +03:00
translation_po.h Improve PR plural translation rules handling. 2024-06-18 19:04:00 +03:00
ucaps.h
ustring.cpp Fix split_floats behavior when spaces are used as separators 2024-09-16 16:40:48 +02:00
ustring.h [Core] Add case-insensitive `String::containsn` 2024-05-08 12:48:01 +02:00