1FcUtf16Len(3)                                                    FcUtf16Len(3)
2
3
4

NAME

6       FcUtf16Len - count UTF-16 encoded chars
7

SYNOPSIS

9       #include <fontconfig/fontconfig.h>
10
11       FcBool FcUtf16Len (FcChar8 *src, FcEndian endian, int len, int *nchar, int *wchar);
12

DESCRIPTION

14       Counts  the  number  of Unicode chars in len bytes of src. Bytes of src
15       are combined into 16-bit units according to endian.  Places that  count
16       in  nchar.   wchar  contains 1, 2 or 4 depending on the number of bytes
17       needed to hold the largest Unicode char counted. The return value indi‐
18       cates whether string is a well-formed UTF16 string.
19
20
21
22Fontconfig 2.14.1                21 10月 2022                    FcUtf16Len(3)
Impressum