Hash :
113ac304
Author :
Date :
2025-01-25T03:18:01
meson: link tests and benches against shared library, not static library This makes the tests, and especially benches, more realistic, since xkbcommon is almost always used as a shared library. Also significantly reduces the build time with LTO enabled (for me, from 90s to 30s). Signed-off-by: Ran Benita <ran@unusedvar.com>
/*
* Copyright © 2012 Intel Corporation
* Copyright © 2014 Ran Benita <ran234@gmail.com>
* SPDX-License-Identifier: MIT
*
* Author: Rob Bradford <rob@linux.intel.com>
*/
#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "utils.h"
XKB_EXPORT_PRIVATE int
utf32_to_utf8(uint32_t unichar, char *buffer);
XKB_EXPORT_PRIVATE bool
is_valid_utf8(const char *ss, size_t len);