bp/utf8.h
Bruce Hill f8860c385e Style change: added cino=:0 (i.e. case statements on same indentation as
switch). Also fixed issue where $$ would fail to match with trailing
newline on file
2021-08-28 16:05:30 -07:00

22 lines
490 B
C

//
// utf8.h - UTF8 helper functions
//
#include "files.h"
#ifndef UTF8__H
#define UTF8__H
#define UTF8_MAXCHARLEN 4
__attribute__((nonnull, pure))
const char *next_char(file_t *f, const char *str);
__attribute__((nonnull, pure))
const char *prev_char(file_t *f, const char *str);
__attribute__((nonnull, pure))
bool isidstart(file_t *f, const char *str);
__attribute__((nonnull, pure))
bool isidcontinue(file_t *f, const char *str);
#endif
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0