mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ion] Namespace Ion::UTF8Helper and Ion::UTF8Decoder
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
#include <ion/unicode/utf8_decoder.h>
|
||||
|
||||
void assert_decodes_to(const char * string, CodePoint c) {
|
||||
UTF8Decoder d(string);
|
||||
Ion::UTF8Decoder d(string);
|
||||
quiz_assert(d.nextCodePoint() == c);
|
||||
quiz_assert(d.nextCodePoint() == 0);
|
||||
}
|
||||
|
||||
void assert_previous_code_point_is_to(const char * string, const char * stringPosition, CodePoint c) {
|
||||
UTF8Decoder d(string, stringPosition);
|
||||
Ion::UTF8Decoder d(string, stringPosition);
|
||||
quiz_assert(d.previousCodePoint() == c);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user