utf8.h 358 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_HEADER_GUARD
  4. #define UTF8_H_HEADER_GUARD
  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_HEADER_GUARD