1 // Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de> 2 // See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details. 3 4 #ifndef UTF8_H_HEADER_GUARD 5 #define UTF8_H_HEADER_GUARD 6 7 #include <stdint.h> 8 9 #define UTF8_ACCEPT 0 10 #define UTF8_REJECT 1 11 12 uint32_t utf8_decode(uint32_t* _state, uint32_t* _codep, uint8_t _ch); 13 14 #endif // UTF8_H_HEADER_GUARD 15