Commit Graph

20 Commits

Author SHA1 Message Date
57c3233187 Optimized path_clean_end_slash in String. 2023-12-22 19:26:41 +01:00
4d6b2f6f55 Fix logic in String::substr_index. 2023-12-22 15:35:35 +01:00
4f6d95d77e Fix warning. 2023-12-20 23:25:00 +01:00
2e41d4dfcd Now unicode error printing is disabled by default. Also can be enabled via a macro. 2023-12-20 23:21:32 +01:00
Rémi Verschelde
1c70f86950 Fix various GCC 13 warnings
Fixes occurrences of `-Wtype-limits`, `-Wmaybe-uninitialized`,
`-Wduplicated-branches`.
2023-12-20 22:57:54 +01:00
99621357a0 File copyright header updates pt4. 2023-12-17 22:50:00 +01:00
7df893ab6b Ported from godot: Add context support for editor translation
- timothyqiu
878cf8262a
2023-10-02 20:48:04 +02:00
50fa3addad Fix handling dots in String::is_numeric(). 2023-06-01 15:41:43 +02:00
5cb00f3622 Make the parameters of String's and PoolVector's join() const ref. 2023-05-25 22:27:34 +02:00
474e253aa1 Added 2 const qualifiers. 2023-05-25 21:54:57 +02:00
8ab1998fcb Ported from godot 4: Optimize Node::add_child validation
Adding 10k nodes is almost twice as fast.
- reduz
223ce4fcb9
2023-04-10 18:10:22 +02:00
4b23c9c5c9 Renamed utf8_length() to utf8_byte_length(), and utf16_length() to utf16_byte_length() in String, as this might help to better explain why these differ from normal length(). 2023-03-20 22:34:21 +01:00
a0d33b5fcd Added utf8_length(), and utf16_length() helper methods to String. 2023-03-20 22:12:17 +01:00
26f77bbe2b Use set_length, instead of resize in String's operator +=. 2023-03-20 21:26:59 +01:00
91c53c41c2 Ported: Fix String::word_wrap() for long words
- timothyqiu
51fd1c27aa
2022-11-30 14:57:35 +01:00
fbc6f9cf22 Added missing semicolons. 2022-10-09 10:17:16 +02:00
6f35d04ef3 Use FALLTHROUGH macro instead on [[fallthrough]]; 2022-10-09 10:14:12 +02:00
42ff9cf8bc Ported: Improve %f formatting for inf and nan.
- MarcusElg
e9cbe9517b
2022-10-08 17:53:43 +02:00
dbcca5d26d Ported: Optimize String.repeat()
This backports the optimization done in `master`.
- Calinou, MewPurPur
3b31ff9008
2022-09-16 22:08:51 +02:00
220b2db443 Moved String and related classes under a string folder in core. 2022-08-17 14:19:55 +02:00