man-pages/man3/FcUtf16Len.3.html
2021-03-31 01:06:50 +01:00

51 lines
1.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of FcUtf16Len</TITLE>
</HEAD><BODY>
<H1>FcUtf16Len</H1>
Section: (3)<BR>Updated: 06 April 2020<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<P>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
FcUtf16Len - count UTF-16 encoded chars
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<B>#include &lt;<A HREF="file:///usr/include/fontconfig/fontconfig.h">fontconfig/fontconfig.h</A>&gt;
<P>
FcBool FcUtf16Len (FcChar8 *</B><I>src</I><B>, FcEndian </B><I>endian</I><B>, int </B><I>len</I><B>, int *</B><I>nchar</I><B>, int *</B><I>wchar</I><B>);
</B>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
Counts the number of Unicode chars in <I>len</I> bytes of
<I>src</I>. Bytes of <I>src</I> are
combined into 16-bit units according to <I>endian</I>.
Places that count in <I>nchar</I>.
<I>wchar</I> contains 1, 2 or 4 depending on the number of
bytes needed to hold the largest Unicode char counted. The return value
indicates whether <I>string</I> is a well-formed UTF16
string.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:42 GMT, March 31, 2021
</BODY>
</HTML>