Imported Upstream version 2.12.1
[platform/upstream/fontconfig.git] / doc / FcUtf8Len.3
1 .\" auto-generated by docbook2man-spec from docbook-utils package
2 .TH "FcUtf8Len" "3" "05 8月 2016" "Fontconfig 2.12.1" ""
3 .SH NAME
4 FcUtf8Len \- count UTF-8 encoded chars
5 .SH SYNOPSIS
6 .nf
7 \fB#include <fontconfig/fontconfig.h>
8 .sp
9 FcBool FcUtf8Len (FcChar8 *\fIsrc\fB, int \fIlen\fB, int *\fInchar\fB, int *\fIwchar\fB);
10 .fi\fR
11 .SH "DESCRIPTION"
12 .PP
13 Counts the number of Unicode chars in \fIlen\fR bytes of
14 \fIsrc\fR\&. Places that count in
15 \fInchar\fR\&. \fIwchar\fR contains 1, 2 or
16 4 depending on the number of bytes needed to hold the largest Unicode char
17 counted. The return value indicates whether \fIsrc\fR is a
18 well-formed UTF8 string.