0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-22 16:37:46 +00:00
netdata_netdata/libnetdata/string/utf8.h
Timo 19f1bd14de Utf8 Badge Fix And URL Parser International Support (initial) ()
#### Summary
Fixes 

Additionally it adds support for UTF-8 in URL parser (as it should).
Label sizes now are updated by browser with JavaScript (although guess is still calculated by verdana11_widths with minor improvements)

#### Component Name
API/Badges, LibNetData/URL

#### Additional Information
It was found that not only verdana11_widths need to be updated but the url parser replaces international characters with spaces (one space per each byte of multibyte character).
Therefore I update both to support international chars.
2019-07-24 14:32:08 +02:00

9 lines
239 B
C

// 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 */