libgrapheme

grapheme cluster utility library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | LICENSE

codepoint.h (342B)


      1 /* See LICENSE file for copyright and license details. */
      2 #ifndef CODEPOINT_H
      3 #define CODEPOINT_H
      4 
      5 #include <stddef.h>
      6 #include <stdint.h>
      7 
      8 typedef uint32_t Codepoint;
      9 
     10 #define CP_INVALID 0xFFFD
     11 
     12 size_t grapheme_cp_decode(uint32_t *, const uint8_t *, size_t);
     13 size_t grapheme_cp_encode(uint32_t, uint8_t *, size_t);
     14 
     15 #endif /* CODEPOINT_H */