From 9d247dc831569a4db75ec9466d1a988a82dfba29 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 23 Oct 2026 21:09:14 +0200 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libutf8_is_valid.3 | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 libutf8_is_valid.3 (limited to 'libutf8_is_valid.3') diff --git a/libutf8_is_valid.3 b/libutf8_is_valid.3 new file mode 100644 index 0000000..8655c7c --- /dev/null +++ b/libutf8_is_valid.3 @@ -0,0 +1,47 @@ +.TH LIBUTF8_IS_VALID 3 LIBUTF8 +.SH NAME +libutf8_is_valid - Test whether a codepoint is valid Unicode + +.SH SYNOPSIS +.nf +#include + +int \fBlibutf8_is_valid\fP(uint_least32_t \fIcodepoint\fP); +.fi +.PP +Link with +.IR -lutf8 . + +.SH DESCRIPTION +The +.BR libutf8_is_valid () +function tests whether a codepoint is valid Unicode. + +.SH RETURN VALUE +The +.BR libutf8_is_valid () +function returns 1 if the predicate is true, and 0 otherwise. + +.SH ERRORS +The +.BR libutf8_is_valid () +function cannot fail. + +.SH ATTRIBUTES +For an explanation of the terms used in this section, see +.BR attributes (7). +.PP +.TS +allbox; +lb lb lb lb +l l l l. +Interface Thread safety Async-signal safety Async-cancel safety +T{ +.BR libutf8_is_valid () +T} MT-Safe AS-Safe AC-Safe +.TE +.sp + +.SH SEE ALSO +.BR libutf8 (7), +.BR libutf8_is_invalid (3) -- cgit v1.3.1