se

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

utf8.h (371B)


      1 #ifndef UTF8_H_
      2 #define UTF8_H_
      3 
      4 #include <stdint.h>
      5 #include <string.h>
      6 #include <stdlib.h>
      7 #include <wchar.h>
      8 
      9 #define UTF_INVALID   0xFFFD
     10 #define UTF_SIZ       4
     11 
     12 typedef uint_least32_t rune_t;
     13 
     14 size_t utf8_encode(rune_t, char *);
     15 int utf8_decode_buffer(const char* buffer, const int buflen, rune_t* u);
     16 void utf8_remove_string_end(char* string);
     17 
     18 
     19 #endif // UTF8_H_