Cleanup and move char functions to the char_utils.h header.

This commit is contained in:
bruvzg 2022-02-04 10:32:20 +02:00
parent 2a3c4f00c8
commit 244db37508
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
41 changed files with 250 additions and 327 deletions

View file

@ -1061,7 +1061,7 @@ void Node::_generate_serial_child_name(const Node *p_child, StringName &name) co
String nums;
for (int i = name_string.length() - 1; i >= 0; i--) {
char32_t n = name_string[i];
if (n >= '0' && n <= '9') {
if (is_digit(n)) {
nums = String::chr(name_string[i]) + nums;
} else {
break;