xenocara/lib/fontconfig/doc/FcUtf16Len.3

28 lines
771 B
Groff
Raw Normal View History

.\\" auto-generated by docbook2man-spec $Revision: 1.3 $
.TH "FcUtf16Len" "3" "18 November 2009" "" ""
2006-11-25 11:41:30 -07:00
.SH NAME
FcUtf16Len \- count UTF-16 encoded chars
.SH SYNOPSIS
.nf
2006-11-25 11:41:30 -07:00
\fB#include <fontconfig.h>
.sp
FcBool FcUtf16Len(FcChar8 *\fIsrc\fB);
(FcEndian \fIendian\fB);
(int \fIlen\fB);
(int *\fInchar\fB);
(int *\fIwchar\fB);
\fR.fi
2006-11-25 11:41:30 -07:00
.SH "DESCRIPTION"
.PP
Counts the number of Unicode chars in \fIlen\fR bytes of
\fIsrc\fR\&. Bytes of \fIsrc\fR are
2006-11-25 11:41:30 -07:00
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
2006-11-25 11:41:30 -07:00
indicates whether \fIstring\fR is a well-formed UTF16
string.
.SH "VERSION"
.PP
Fontconfig version 2.8.0