File: utf8decoder.hpp

package info (click to toggle)
rgbds 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,164 kB
  • sloc: cpp: 19,048; asm: 6,208; yacc: 2,405; sh: 1,784; makefile: 213; ansic: 14
file content (13 lines) | stat: -rw-r--r-- 280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-License-Identifier: MIT

#ifndef RGBDS_EXTERN_UTF8DECODER_HPP
#define RGBDS_EXTERN_UTF8DECODER_HPP

#include <stdint.h>

#define UTF8_ACCEPT 0
#define UTF8_REJECT 12

uint32_t decode(uint32_t *state, uint32_t *codep, uint8_t byte);

#endif // RGBDS_EXTERN_UTF8DECODER_HPP