summaryrefslogtreecommitdiff
path: root/src/utf8.h
blob: 20e33bd1cf0a2e37d0c8f448a9168790e50237b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef UTF8_H
#define UTF8_H

/* UTF-8 handling macros */
#define RP_IS_UTF8_CHAR(c) (utf8_locale && (c) & 0xC0)
#define RP_IS_UTF8_START(c) (utf8_locale && ((c) & 0xC0) == 0xC0)
#define RP_IS_UTF8_CONT(c) (utf8_locale && ((c) & 0xC0) == 0x80)

extern int utf8_locale;

int utf8_check_locale(void);

#endif