You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Remove implicit conversions from String, Char16String and CharString to data pointers. Make conversions to StrRange implicit to aid transition.
This commit is contained in:
@@ -197,7 +197,7 @@ Error RegEx::compile(const String &p_pattern, bool p_show_error) {
|
||||
PCRE2_UCHAR32 buf[256];
|
||||
pcre2_get_error_message_32(err, buf, 256);
|
||||
String message = String::num_int64(offset) + ": " + String((const char32_t *)buf);
|
||||
ERR_PRINT(message.utf8());
|
||||
ERR_PRINT(message);
|
||||
}
|
||||
return FAILED;
|
||||
}
|
||||
@@ -348,7 +348,7 @@ String RegEx::sub(const String &p_subject, const String &p_replacement, bool p_a
|
||||
PCRE2_UCHAR32 buf[256];
|
||||
pcre2_get_error_message_32(res, buf, 256);
|
||||
String message = "PCRE2 Error: " + String((const char32_t *)buf);
|
||||
ERR_PRINT(message.utf8());
|
||||
ERR_PRINT(message);
|
||||
|
||||
if (res == PCRE2_ERROR_NOSUBSTRING) {
|
||||
flags |= PCRE2_SUBSTITUTE_UNKNOWN_UNSET;
|
||||
|
||||
Reference in New Issue
Block a user