]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/libsystemd/sd-utf8/sd-utf8.c
a33c50975e755bbc9acb7425a8621bd5cec7652a
[thirdparty/systemd.git] / src / libsystemd / sd-utf8 / sd-utf8.c
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 /***
3 This file is part of systemd.
4
5 Copyright 2013 Lennart Poettering
6 ***/
7
8 #include "sd-utf8.h"
9
10 #include "utf8.h"
11 #include "util.h"
12
13 _public_ const char *sd_utf8_is_valid(const char *s) {
14 assert_return(s, NULL);
15
16 return utf8_is_valid(s);
17 }
18
19 _public_ const char *sd_ascii_is_valid(const char *s) {
20 assert_return(s, NULL);
21
22 return ascii_is_valid(s);
23 }