From 19f4f86bfed21c5326ed2acebe1163f3a83e832b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 04:25:50 +0200 Subject: Adding upstream version 241. Signed-off-by: Daniel Baumann --- src/libsystemd/sd-utf8/sd-utf8.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/libsystemd/sd-utf8/sd-utf8.c (limited to 'src/libsystemd/sd-utf8/sd-utf8.c') diff --git a/src/libsystemd/sd-utf8/sd-utf8.c b/src/libsystemd/sd-utf8/sd-utf8.c new file mode 100644 index 0000000..78323cf --- /dev/null +++ b/src/libsystemd/sd-utf8/sd-utf8.c @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ + +#include "sd-utf8.h" + +#include "utf8.h" +#include "util.h" + +_public_ const char *sd_utf8_is_valid(const char *s) { + assert_return(s, NULL); + + return utf8_is_valid(s); +} + +_public_ const char *sd_ascii_is_valid(const char *s) { + assert_return(s, NULL); + + return ascii_is_valid(s); +} -- cgit v1.2.3