summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/string/utf8.h
blob: 3e6c8c28834308ced0bb99828e49f185570481da (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 */