summaryrefslogtreecommitdiffstats
path: root/libnetdata/string/utf8.h
blob: 133ec710b6a528da82309a067cbbe90907a1a150 (plain)
1
2
3
4
5
6
7
8
9
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_STRING_UTF8_H
#define NETDATA_STRING_UTF8_H 1

#define IS_UTF8_BYTE(x) (x & 0x80)
#define IS_UTF8_STARTBYTE(x) (IS_UTF8_BYTE(x)&&(x & 0x40))

#endif /* NETDATA_STRING_UTF8_H */