2013-05-17 09:03:57 +04:00
|
|
|
// Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
|
|
|
|
// See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details.
|
|
|
|
|
2013-11-15 07:10:10 +04:00
|
|
|
#ifndef UTF8_H_HEADER_GUARD
|
|
|
|
#define UTF8_H_HEADER_GUARD
|
2013-05-17 09:03:57 +04:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define UTF8_ACCEPT 0
|
|
|
|
#define UTF8_REJECT 1
|
|
|
|
|
|
|
|
uint32_t utf8_decode(uint32_t* _state, uint32_t* _codep, uint8_t _ch);
|
|
|
|
|
2013-11-15 07:10:10 +04:00
|
|
|
#endif // UTF8_H_HEADER_GUARD
|