Merge pull request #74760 from lassade/unicode-err-uses-replacement-char

Don't append non unicode scalar values on the string, instead use the unicode replacement char
This commit is contained in:
Rémi Verschelde
2023-06-22 18:30:04 +02:00
3 changed files with 58 additions and 38 deletions

View File

@@ -183,6 +183,7 @@ struct StrRange {
class String {
CowData<char32_t> _cowdata;
static const char32_t _null;
static const char32_t _replacement_char;
void copy_from(const char *p_cstr);
void copy_from(const char *p_cstr, const int p_clip_to);