diff options
| author | Mattias Andrée <m@maandree.se> | 2026-10-23 21:09:14 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-10-23 21:09:14 +0200 |
| commit | 9d247dc831569a4db75ec9466d1a988a82dfba29 (patch) | |
| tree | baf2b21897788f630cb2001beb4f9e5bed9940a7 /libutf8_is_surrogate.3 | |
| download | libutf8-9d247dc831569a4db75ec9466d1a988a82dfba29.tar.gz libutf8-9d247dc831569a4db75ec9466d1a988a82dfba29.tar.bz2 libutf8-9d247dc831569a4db75ec9466d1a988a82dfba29.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rw-r--r-- | libutf8_is_surrogate.3 | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/libutf8_is_surrogate.3 b/libutf8_is_surrogate.3 new file mode 100644 index 0000000..6d76996 --- /dev/null +++ b/libutf8_is_surrogate.3 @@ -0,0 +1,47 @@ +.TH LIBUTF8_IS_SURROGATE 3 LIBUTF8 +.SH NAME +libutf8_is_surrogate - Test whether a codepoint is a UTF-16 surrogate + +.SH SYNOPSIS +.nf +#include <libutf8.h> + +int \fBlibutf8_is_surrogate\fP(uint_least32_t \fIcodepoint\fP); +.fi +.PP +Link with +.IR -lutf8 . + +.SH DESCRIPTION +The +.BR libutf8_is_surrogate () +function tests whether a codepoint is a UTF-16 surrogate. + +.SH RETURN VALUE +The +.BR libutf8_is_surrogate () +function returns 1 if the predicate is true, and 0 otherwise. + +.SH ERRORS +The +.BR libutf8_is_surrogate () +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_surrogate () +T} MT-Safe AS-Safe AC-Safe +.TE +.sp + +.SH SEE ALSO +.BR libutf8 (7), +.BR libutf8_is_invalid (3) |
