mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-26 04:52:08 +00:00
Implement STRRPL
Fixes #660 STRRPL(str, "", new) does nothing (warn about it with -Wempty-strrpl)
This commit is contained in:
@@ -230,7 +230,7 @@ size_t charmap_Convert(char const *input, uint8_t *output)
|
||||
size_t codepointLen = readUTF8Char(output, input);
|
||||
|
||||
if (codepointLen == 0) {
|
||||
error("Input string is not valid UTF-8!");
|
||||
error("Input string is not valid UTF-8!\n");
|
||||
break;
|
||||
}
|
||||
input += codepointLen; /* OK because UTF-8 has no NUL in multi-byte chars */
|
||||
|
||||
Reference in New Issue
Block a user