We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a6a4b6 commit f94950dCopy full SHA for f94950d
libc/src/__support/wchar/character_converter.cpp
@@ -18,7 +18,9 @@ namespace internal {
18
19
CharacterConverter::CharacterConverter(mbstate *mbstate) { state = mbstate; }
20
21
-bool CharacterConverter::isComplete() {}
+bool CharacterConverter::isComplete() {
22
+ return state->bytes_processed == state->total_bytes;
23
+}
24
25
int CharacterConverter::push(char8_t utf8_byte) {}
26
libc/src/__support/wchar/mbstate.h
@@ -18,7 +18,7 @@ namespace internal {
struct mbstate {
char32_t partial;
- uint8_t bits_processed;
+ uint8_t bytes_processed;
uint8_t total_bytes;
};
0 commit comments