2021-05-20 17:21:06 -07:00
|
|
|
//
|
|
|
|
// utf8.h - UTF8 helper functions
|
|
|
|
//
|
2021-05-31 12:38:42 -07:00
|
|
|
#include "files.h"
|
|
|
|
|
2021-05-20 15:27:24 -07:00
|
|
|
#ifndef UTF8__H
|
|
|
|
#define UTF8__H
|
|
|
|
|
|
|
|
#define UTF8_MAXCHARLEN 4
|
|
|
|
|
|
|
|
__attribute__((nonnull, pure))
|
2021-05-31 12:38:42 -07:00
|
|
|
const char *next_char(file_t *f, const char *str);
|
|
|
|
__attribute__((nonnull, pure))
|
|
|
|
const char *prev_char(file_t *f, const char *str);
|
2021-07-19 19:40:43 -07:00
|
|
|
__attribute__((nonnull, pure))
|
|
|
|
bool isidstart(file_t *f, const char *str);
|
|
|
|
__attribute__((nonnull, pure))
|
|
|
|
bool isidcontinue(file_t *f, const char *str);
|
2021-05-31 12:38:42 -07:00
|
|
|
|
2021-05-20 15:27:24 -07:00
|
|
|
#endif
|
2021-08-28 16:05:30 -07:00
|
|
|
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0
|