Unicode.h 259 B

12345678910111213141516
  1. #ifndef CORE_UNICODE_H
  2. #define CORE_UNICODE_H
  3. #include "core/Types.h"
  4. typedef struct {
  5. u8 data[4];
  6. u32 length;
  7. } UTF8;
  8. UTF8 convertUnicodeToUTF8(u32 c);
  9. u32 convertUTF8toUnicode(UTF8 c);
  10. bool isUTF8Remainder(u8 c);
  11. u32 getUTF8Length(u8 c);
  12. #endif