utf8.h 330 B

1234567891011121314
  1. // Copyright (c) 2008-2009 Bjoern Hoehrmann <[email protected]>
  2. // See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details.
  3. #ifndef __UTF8_H__
  4. #define __UTF8_H__
  5. #include <stdint.h>
  6. #define UTF8_ACCEPT 0
  7. #define UTF8_REJECT 1
  8. uint32_t utf8_decode(uint32_t* _state, uint32_t* _codep, uint8_t _ch);
  9. #endif // __UTF8_H_