2013-03-09 06:33:45 -07:00
|
|
|
.\" auto-generated by docbook2man-spec from docbook-utils package
|
2017-08-19 04:11:04 -06:00
|
|
|
.TH "FcUtf16Len" "3" "05 7月 2017" "Fontconfig 2.12.4" ""
|
2013-03-09 06:33:45 -07:00
|
|
|
.SH NAME
|
|
|
|
FcUtf16Len \- count UTF-16 encoded chars
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
|
|
|
\fB#include <fontconfig/fontconfig.h>
|
|
|
|
.sp
|
|
|
|
FcBool FcUtf16Len (FcChar8 *\fIsrc\fB, FcEndian \fIendian\fB, int \fIlen\fB, int *\fInchar\fB, int *\fIwchar\fB);
|
|
|
|
.fi\fR
|
|
|
|
.SH "DESCRIPTION"
|
|
|
|
.PP
|
|
|
|
Counts the number of Unicode chars in \fIlen\fR bytes of
|
|
|
|
\fIsrc\fR\&. Bytes of \fIsrc\fR are
|
|
|
|
combined into 16-bit units according to \fIendian\fR\&.
|
|
|
|
Places that count in \fInchar\fR\&.
|
|
|
|
\fIwchar\fR contains 1, 2 or 4 depending on the number of
|
|
|
|
bytes needed to hold the largest Unicode char counted. The return value
|
|
|
|
indicates whether \fIstring\fR is a well-formed UTF16
|
|
|
|
string.
|