summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/font/utf8.h
blob: 1103fe526acaaadb1f403ed928ee3f0eb1f2bb98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
// See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details.

#ifndef UTF8_H_HEADER_GUARD
#define UTF8_H_HEADER_GUARD

#include <stdint.h>

#define UTF8_ACCEPT 0
#define UTF8_REJECT 1

uint32_t utf8_decode(uint32_t* _state, uint32_t* _codep, uint8_t _ch);

#endif // UTF8_H_HEADER_GUARD