mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
More refactoring and renaming
This commit is contained in:
@@ -54,12 +54,11 @@ char const *printChar(int c) {
|
||||
}
|
||||
|
||||
size_t readUTF8Char(std::vector<uint8_t> *dest, char const *src) {
|
||||
uint32_t state = 0;
|
||||
uint32_t codep;
|
||||
uint32_t state = 0, codepoint;
|
||||
size_t i = 0;
|
||||
|
||||
for (;;) {
|
||||
if (decode(&state, &codep, src[i]) == 1)
|
||||
if (decode(&state, &codepoint, src[i]) == 1)
|
||||
return 0;
|
||||
|
||||
if (dest)
|
||||
|
||||
Reference in New Issue
Block a user