config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

utf8.h (308B)


      1 #ifndef UTF8_H
      2 #define UTF8_H
      3 
      4 #include <stdbool.h>
      5 #include <stddef.h>
      6 #include <stdint.h>
      7 
      8 size_t codepoint_to_utf8(const uint32_t codepoint, unsigned char buffer[4]);
      9 bool utf8_to_codepoint(const unsigned char buffer[4], const size_t len,
     10                        uint32_t *codepoint);
     11 
     12 #endif /* UTF8_H */