wlroots-hyprland/include/util/utf8.h
Manuel Stoeckl a3d22dbe97 xdg-toplevel: check that title provided actually is UTF-8
While the xdg-shell protocol requires this, it does not yet have
a dedicated error code for invalid titles; this commit makes
wlroots send a generic error instead.
2023-11-22 22:03:00 +03:00

11 lines
181 B
C

#ifndef UTIL_UTF8_H
#define UTIL_UTF8_H
#include <stdbool.h>
/**
* Return true if and only if the string is a valid UTF-8 sequence.
*/
bool is_utf8(const char *string);
#endif