util.h - libgrapheme - unicode string library
 (HTM) git clone git://git.suckless.org/libgrapheme
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       util.h (688B)
       ---
            1 /* See LICENSE file for copyright and license details. */
            2 #ifndef UTIL_H
            3 #define UTIL_H
            4 
            5 #include <stddef.h>
            6 #include <stdint.h>
            7 
            8 #define LEN(x) (sizeof(x) / sizeof *(x))
            9 
           10 struct codepoint_property {
           11         char **fields;
           12         size_t field_count;
           13 };
           14 
           15 struct codepoint_property_set {
           16         struct codepoint_property *properties;
           17         size_t property_count;
           18 };
           19 
           20 struct codepoint_property_set *parse_property_file(const char *);
           21 void free_codepoint_property_set_array(struct codepoint_property_set *);
           22 const struct codepoint_property *match_in_codepoint_property_set(
           23         const struct codepoint_property_set *, const char *, size_t);
           24 void compress_and_output(uint_least64_t *, const char *);
           25 
           26 #endif /* UTIL_H */