]>
Commit | Line | Data |
---|---|---|
52ad194e | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
663996b3 | 2 | |
60f067b4 JS |
3 | #include "sd-utf8.h" |
4 | ||
db2df898 MP |
5 | #include "utf8.h" |
6 | #include "util.h" | |
7 | ||
60f067b4 JS |
8 | _public_ const char *sd_utf8_is_valid(const char *s) { |
9 | assert_return(s, NULL); | |
663996b3 | 10 | |
60f067b4 JS |
11 | return utf8_is_valid(s); |
12 | } | |
663996b3 | 13 | |
60f067b4 JS |
14 | _public_ const char *sd_ascii_is_valid(const char *s) { |
15 | assert_return(s, NULL); | |
663996b3 | 16 | |
60f067b4 JS |
17 | return ascii_is_valid(s); |
18 | } |