From f7c3580478601e3a77dc864e5a1d91c1edad5187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 7 Mar 2018 05:31:03 +0100 Subject: New upstream version 0.9.9 --- ChangeLog | 32 + INSTALL.windows | 261 +++ Makefile.am | 4 +- Makefile.in | 3 +- NEWS | 3 + README | 2 +- README.windows | 261 --- build-aux/config.guess | 487 ++--- build-aux/config.rpath | 2 +- build-aux/config.sub | 203 +- config.h.in | 5 + configure | 231 +- doc/Makefile.am | 4 +- doc/Makefile.in | 3 +- doc/libunistring.info | 1195 ++++++----- doc/libunistring.texi | 141 +- doc/libunistring_1.html | 144 +- doc/libunistring_10.html | 92 +- doc/libunistring_11.html | 82 +- doc/libunistring_12.html | 48 +- doc/libunistring_13.html | 142 +- doc/libunistring_14.html | 219 +- doc/libunistring_15.html | 20 +- doc/libunistring_16.html | 54 +- doc/libunistring_17.html | 22 +- doc/libunistring_18.html | 1519 +------------ doc/libunistring_19.html | 2221 +++++++++++++------- doc/libunistring_2.html | 16 +- doc/libunistring_20.html | 769 ++++++- doc/libunistring_21.html | 190 ++ doc/libunistring_3.html | 32 +- doc/libunistring_4.html | 419 ++-- doc/libunistring_5.html | 70 +- doc/libunistring_6.html | 138 +- doc/libunistring_7.html | 28 +- doc/libunistring_8.html | 1254 ++++++----- doc/libunistring_9.html | 42 +- doc/libunistring_abt.html | 10 +- doc/libunistring_toc.html | 159 +- doc/stamp-vti | 8 +- doc/unicase.texi | 27 + doc/unictype.texi | 237 ++- doc/unigbrk.texi | 2 +- doc/uninorm.texi | 6 + doc/unistdio.texi | 2 +- doc/unistr.texi | 102 +- doc/unitypes.texi | 12 + doc/version.texi | 8 +- doc/wchar_t.texi | 51 + gnulib-local/Makefile.in | 1 + gnulib-m4/00gnulib.m4 | 2 +- gnulib-m4/absolute-header.m4 | 2 +- gnulib-m4/alloca.m4 | 2 +- gnulib-m4/asm-underscore.m4 | 7 +- gnulib-m4/btowc.m4 | 2 +- gnulib-m4/builtin-expect.m4 | 2 +- gnulib-m4/configmake.m4 | 2 +- gnulib-m4/ctype.m4 | 2 +- gnulib-m4/dirname.m4 | 2 +- gnulib-m4/double-slash-root.m4 | 2 +- gnulib-m4/eealloc.m4 | 2 +- gnulib-m4/environ.m4 | 2 +- gnulib-m4/errno_h.m4 | 2 +- gnulib-m4/error.m4 | 2 +- gnulib-m4/exponentd.m4 | 2 +- gnulib-m4/exponentf.m4 | 2 +- gnulib-m4/exponentl.m4 | 2 +- gnulib-m4/extensions.m4 | 10 +- gnulib-m4/extern-inline.m4 | 2 +- gnulib-m4/fcntl-o.m4 | 2 +- gnulib-m4/fdopen.m4 | 2 +- gnulib-m4/flexmember.m4 | 2 +- gnulib-m4/float_h.m4 | 2 +- gnulib-m4/fpieee.m4 | 2 +- gnulib-m4/frexp.m4 | 2 +- gnulib-m4/frexpl.m4 | 2 +- gnulib-m4/fseterr.m4 | 2 +- gnulib-m4/getpagesize.m4 | 2 +- gnulib-m4/getprogname.m4 | 2 +- gnulib-m4/glibc21.m4 | 2 +- gnulib-m4/gnulib-cache.m4 | 2 +- gnulib-m4/gnulib-common.m4 | 2 +- gnulib-m4/gnulib-comp.m4 | 5 +- gnulib-m4/hard-locale.m4 | 2 +- gnulib-m4/host-cpu-c-abi.m4 | 6 +- gnulib-m4/iconv.m4 | 3 +- gnulib-m4/iconv_h.m4 | 2 +- gnulib-m4/iconv_open.m4 | 2 +- gnulib-m4/include_next.m4 | 2 +- gnulib-m4/inline.m4 | 2 +- gnulib-m4/intmax_t.m4 | 2 +- gnulib-m4/inttypes-pri.m4 | 2 +- gnulib-m4/inttypes.m4 | 2 +- gnulib-m4/inttypes_h.m4 | 2 +- gnulib-m4/isblank.m4 | 2 +- gnulib-m4/isnand.m4 | 2 +- gnulib-m4/isnanf.m4 | 2 +- gnulib-m4/isnanl.m4 | 2 +- gnulib-m4/iswblank.m4 | 2 +- gnulib-m4/langinfo_h.m4 | 19 +- gnulib-m4/ldexpl.m4 | 2 +- gnulib-m4/lib-ld.m4 | 2 +- gnulib-m4/lib-link.m4 | 2 +- gnulib-m4/lib-prefix.m4 | 2 +- gnulib-m4/libunistring-base.m4 | 2 +- gnulib-m4/limits-h.m4 | 2 +- gnulib-m4/localcharset.m4 | 2 +- gnulib-m4/locale-ar.m4 | 2 +- gnulib-m4/locale-fr.m4 | 2 +- gnulib-m4/locale-ja.m4 | 2 +- gnulib-m4/locale-tr.m4 | 2 +- gnulib-m4/locale-zh.m4 | 2 +- gnulib-m4/locale_h.m4 | 2 +- gnulib-m4/localename.m4 | 5 +- gnulib-m4/lock.m4 | 2 +- gnulib-m4/longlong.m4 | 2 +- gnulib-m4/malloc.m4 | 6 +- gnulib-m4/malloca.m4 | 2 +- gnulib-m4/math_h.m4 | 2 +- gnulib-m4/mbchar.m4 | 2 +- gnulib-m4/mbiter.m4 | 2 +- gnulib-m4/mbrtowc.m4 | 15 +- gnulib-m4/mbsinit.m4 | 2 +- gnulib-m4/mbstate_t.m4 | 2 +- gnulib-m4/mbtowc.m4 | 2 +- gnulib-m4/memchr.m4 | 2 +- gnulib-m4/minmax.m4 | 2 +- gnulib-m4/mmap-anon.m4 | 2 +- gnulib-m4/msvc-inval.m4 | 2 +- gnulib-m4/msvc-nothrow.m4 | 2 +- gnulib-m4/multiarch.m4 | 2 +- gnulib-m4/nocrash.m4 | 2 +- gnulib-m4/off_t.m4 | 2 +- gnulib-m4/printf-frexp.m4 | 2 +- gnulib-m4/printf-frexpl.m4 | 2 +- gnulib-m4/printf.m4 | 82 +- gnulib-m4/pthread_rwlock_rdlock.m4 | 2 +- gnulib-m4/pthread_sigmask.m4 | 2 +- gnulib-m4/putenv.m4 | 16 +- gnulib-m4/raise.m4 | 2 +- gnulib-m4/relocatable-lib.m4 | 2 +- gnulib-m4/setenv.m4 | 12 +- gnulib-m4/setlocale.m4 | 2 +- gnulib-m4/signal_h.m4 | 2 +- gnulib-m4/signalblocking.m4 | 2 +- gnulib-m4/signbit.m4 | 38 +- gnulib-m4/size_max.m4 | 2 +- gnulib-m4/sleep.m4 | 16 +- gnulib-m4/ssize_t.m4 | 2 +- gnulib-m4/stdalign.m4 | 2 +- gnulib-m4/stdbool.m4 | 2 +- gnulib-m4/stddef_h.m4 | 2 +- gnulib-m4/stdint.m4 | 2 +- gnulib-m4/stdint_h.m4 | 2 +- gnulib-m4/stdio_h.m4 | 2 +- gnulib-m4/stdlib_h.m4 | 7 +- gnulib-m4/strerror.m4 | 24 +- gnulib-m4/string_h.m4 | 2 +- gnulib-m4/strncat.m4 | 2 +- gnulib-m4/strstr.m4 | 2 +- gnulib-m4/sys_socket_h.m4 | 2 +- gnulib-m4/sys_types_h.m4 | 2 +- gnulib-m4/thread.m4 | 2 +- gnulib-m4/threadlib.m4 | 2 +- gnulib-m4/time_h.m4 | 2 +- gnulib-m4/unistd_h.m4 | 2 +- gnulib-m4/usleep.m4 | 16 +- gnulib-m4/vasnprintf.m4 | 2 +- gnulib-m4/warn-on-use.m4 | 2 +- gnulib-m4/wchar_h.m4 | 2 +- gnulib-m4/wchar_t.m4 | 2 +- gnulib-m4/wcrtomb.m4 | 2 +- gnulib-m4/wctob.m4 | 2 +- gnulib-m4/wctomb.m4 | 2 +- gnulib-m4/wctype_h.m4 | 2 +- gnulib-m4/wcwidth.m4 | 10 +- gnulib-m4/wint_t.m4 | 2 +- gnulib-m4/xalloc.m4 | 2 +- gnulib-m4/xsize.m4 | 2 +- gnulib-m4/yield.m4 | 2 +- lib/Makefile.gnulib | 5 +- lib/Makefile.in | 30 +- lib/alloca.in.h | 2 +- lib/amemxfrm.c | 2 +- lib/amemxfrm.h | 2 +- lib/arg-nonnull.h | 2 +- lib/array-mergesort.h | 2 +- lib/c++defs.h | 2 +- lib/c-ctype.h | 2 +- lib/c-strcase.h | 2 +- lib/c-strcasecmp.c | 2 +- lib/c-strcaseeq.h | 2 +- lib/c-strncasecmp.c | 2 +- lib/config.charset | 2 +- lib/errno.in.h | 2 +- lib/flexmember.h | 2 +- lib/float+.h | 2 +- lib/float.c | 2 +- lib/float.in.h | 2 +- lib/fpucw.h | 2 +- lib/frexp.c | 2 +- lib/frexpl.c | 2 +- lib/fseterr.c | 2 +- lib/fseterr.h | 2 +- lib/glthread/lock.c | 2 +- lib/glthread/lock.h | 16 +- lib/glthread/threadlib.c | 2 +- lib/hard-locale.c | 2 +- lib/hard-locale.h | 2 +- lib/iconv.c | 2 +- lib/iconv.in.h | 2 +- lib/iconv_close.c | 2 +- lib/iconv_open-aix.h | 68 +- lib/iconv_open-hpux.h | 92 +- lib/iconv_open-irix.h | 42 +- lib/iconv_open-osf.h | 80 +- lib/iconv_open-solaris.h | 30 +- lib/iconv_open.c | 2 +- lib/iconveh.h | 2 +- lib/isnan.c | 2 +- lib/isnand-nolibm.h | 2 +- lib/isnand.c | 2 +- lib/isnanf-nolibm.h | 2 +- lib/isnanf.c | 2 +- lib/isnanl-nolibm.h | 2 +- lib/isnanl.c | 2 +- lib/iswblank.c | 2 +- lib/itold.c | 2 +- lib/langinfo.in.h | 30 +- lib/limits.in.h | 2 +- lib/localcharset.c | 2 +- lib/localcharset.h | 2 +- lib/localename.c | 29 +- lib/localename.h | 2 +- lib/malloc.c | 2 +- lib/malloca.c | 150 +- lib/malloca.h | 13 +- lib/malloca.valgrind | 7 - lib/math.in.h | 2 +- lib/mbchar.c | 2 +- lib/mbchar.h | 2 +- lib/mbiter.h | 2 +- lib/mbrtowc.c | 2 +- lib/mbsinit.c | 2 +- lib/mbsnlen.c | 2 +- lib/memchr.c | 2 +- lib/memcmp2.c | 2 +- lib/memcmp2.h | 2 +- lib/minmax.h | 2 +- lib/printf-args.c | 2 +- lib/printf-args.h | 2 +- lib/printf-frexp.c | 2 +- lib/printf-frexp.h | 2 +- lib/printf-frexpl.c | 2 +- lib/printf-frexpl.h | 2 +- lib/printf-parse.c | 2 +- lib/printf-parse.h | 2 +- lib/ref-add.sin | 2 +- lib/ref-del.sin | 2 +- lib/relocatable.c | 2 +- lib/relocatable.h | 2 +- lib/signbitd.c | 2 +- lib/signbitf.c | 2 +- lib/signbitl.c | 2 +- lib/size_max.h | 2 +- lib/stdbool.in.h | 2 +- lib/stddef.in.h | 2 +- lib/stdint.in.h | 2 +- lib/stdio-impl.h | 2 +- lib/stdlib.in.h | 5 +- lib/str-kmp.h | 2 +- lib/str-two-way.h | 2 +- lib/streq.h | 2 +- lib/striconveh.c | 2 +- lib/striconveh.h | 2 +- lib/striconveha.c | 2 +- lib/striconveha.h | 2 +- lib/string.in.h | 2 +- lib/strncat.c | 2 +- lib/strstr.c | 2 +- lib/sys_types.in.h | 2 +- lib/unicase.h | 2 +- lib/unicase.in.h | 2 +- lib/unicase/cased.c | 2 +- lib/unicase/casefold.h | 2 +- lib/unicase/caseprop.h | 2 +- lib/unicase/context.h | 2 +- lib/unicase/empty-prefix-context.c | 2 +- lib/unicase/empty-suffix-context.c | 2 +- lib/unicase/ignorable.c | 2 +- lib/unicase/invariant.h | 2 +- lib/unicase/locale-language.c | 2 +- lib/unicase/locale-languages.h | 4 +- lib/unicase/simple-mapping.h | 2 +- lib/unicase/special-casing-table.h | 246 +-- lib/unicase/special-casing.c | 2 +- lib/unicase/special-casing.in.h | 2 +- lib/unicase/tocasefold.c | 2 +- lib/unicase/tolower.c | 2 +- lib/unicase/totitle.c | 2 +- lib/unicase/toupper.c | 2 +- lib/unicase/u-casecmp.h | 2 +- lib/unicase/u-casecoll.h | 2 +- lib/unicase/u-casefold.h | 2 +- lib/unicase/u-casemap.h | 2 +- lib/unicase/u-casexfrm.h | 2 +- lib/unicase/u-ct-casefold.h | 2 +- lib/unicase/u-ct-totitle.h | 2 +- lib/unicase/u-is-cased.h | 2 +- lib/unicase/u-is-invariant.h | 2 +- lib/unicase/u-totitle.h | 2 +- lib/unicase/u16-casecmp.c | 2 +- lib/unicase/u16-casecoll.c | 2 +- lib/unicase/u16-casefold.c | 2 +- lib/unicase/u16-casemap.c | 2 +- lib/unicase/u16-casexfrm.c | 2 +- lib/unicase/u16-ct-casefold.c | 2 +- lib/unicase/u16-ct-tolower.c | 2 +- lib/unicase/u16-ct-totitle.c | 2 +- lib/unicase/u16-ct-toupper.c | 2 +- lib/unicase/u16-is-cased.c | 2 +- lib/unicase/u16-is-casefolded.c | 2 +- lib/unicase/u16-is-invariant.c | 2 +- lib/unicase/u16-is-lowercase.c | 2 +- lib/unicase/u16-is-titlecase.c | 2 +- lib/unicase/u16-is-uppercase.c | 2 +- lib/unicase/u16-tolower.c | 2 +- lib/unicase/u16-totitle.c | 2 +- lib/unicase/u16-toupper.c | 2 +- lib/unicase/u32-casecmp.c | 2 +- lib/unicase/u32-casecoll.c | 2 +- lib/unicase/u32-casefold.c | 2 +- lib/unicase/u32-casemap.c | 2 +- lib/unicase/u32-casexfrm.c | 2 +- lib/unicase/u32-ct-casefold.c | 2 +- lib/unicase/u32-ct-tolower.c | 2 +- lib/unicase/u32-ct-totitle.c | 2 +- lib/unicase/u32-ct-toupper.c | 2 +- lib/unicase/u32-is-cased.c | 2 +- lib/unicase/u32-is-casefolded.c | 2 +- lib/unicase/u32-is-invariant.c | 2 +- lib/unicase/u32-is-lowercase.c | 2 +- lib/unicase/u32-is-titlecase.c | 2 +- lib/unicase/u32-is-uppercase.c | 2 +- lib/unicase/u32-tolower.c | 2 +- lib/unicase/u32-totitle.c | 2 +- lib/unicase/u32-toupper.c | 2 +- lib/unicase/u8-casecmp.c | 2 +- lib/unicase/u8-casecoll.c | 2 +- lib/unicase/u8-casefold.c | 2 +- lib/unicase/u8-casemap.c | 2 +- lib/unicase/u8-casexfrm.c | 2 +- lib/unicase/u8-ct-casefold.c | 2 +- lib/unicase/u8-ct-tolower.c | 2 +- lib/unicase/u8-ct-totitle.c | 2 +- lib/unicase/u8-ct-toupper.c | 2 +- lib/unicase/u8-is-cased.c | 2 +- lib/unicase/u8-is-casefolded.c | 2 +- lib/unicase/u8-is-invariant.c | 2 +- lib/unicase/u8-is-lowercase.c | 2 +- lib/unicase/u8-is-titlecase.c | 2 +- lib/unicase/u8-is-uppercase.c | 2 +- lib/unicase/u8-tolower.c | 2 +- lib/unicase/u8-totitle.c | 2 +- lib/unicase/u8-toupper.c | 2 +- lib/unicase/ulc-casecmp.c | 2 +- lib/unicase/ulc-casecoll.c | 2 +- lib/unicase/ulc-casexfrm.c | 2 +- lib/unicase/unicasemap.h | 2 +- lib/uniconv.h | 2 +- lib/uniconv.in.h | 2 +- lib/uniconv/u-conv-from-enc.h | 2 +- lib/uniconv/u-conv-to-enc.h | 2 +- lib/uniconv/u-strconv-from-enc.h | 2 +- lib/uniconv/u-strconv-to-enc.h | 2 +- lib/uniconv/u16-conv-from-enc.c | 2 +- lib/uniconv/u16-conv-to-enc.c | 2 +- lib/uniconv/u16-strconv-from-enc.c | 2 +- lib/uniconv/u16-strconv-from-locale.c | 2 +- lib/uniconv/u16-strconv-to-enc.c | 2 +- lib/uniconv/u16-strconv-to-locale.c | 2 +- lib/uniconv/u32-conv-from-enc.c | 2 +- lib/uniconv/u32-conv-to-enc.c | 2 +- lib/uniconv/u32-strconv-from-enc.c | 2 +- lib/uniconv/u32-strconv-from-locale.c | 2 +- lib/uniconv/u32-strconv-to-enc.c | 2 +- lib/uniconv/u32-strconv-to-locale.c | 2 +- lib/uniconv/u8-conv-from-enc.c | 2 +- lib/uniconv/u8-conv-to-enc.c | 2 +- lib/uniconv/u8-strconv-from-enc.c | 2 +- lib/uniconv/u8-strconv-from-locale.c | 2 +- lib/uniconv/u8-strconv-to-enc.c | 2 +- lib/uniconv/u8-strconv-to-locale.c | 2 +- lib/unictype.h | 2 +- lib/unictype.in.h | 2 +- lib/unictype/bidi_byname.c | 2 +- lib/unictype/bidi_byname.h | 142 +- lib/unictype/bidi_longname.c | 2 +- lib/unictype/bidi_name.c | 2 +- lib/unictype/bidi_of.c | 2 +- lib/unictype/bidi_test.c | 2 +- lib/unictype/bitmap.h | 2 +- lib/unictype/block_test.c | 2 +- lib/unictype/blocks.c | 2 +- lib/unictype/categ_C.c | 2 +- lib/unictype/categ_Cc.c | 2 +- lib/unictype/categ_Cf.c | 2 +- lib/unictype/categ_Cn.c | 2 +- lib/unictype/categ_Co.c | 2 +- lib/unictype/categ_Cs.c | 2 +- lib/unictype/categ_L.c | 2 +- lib/unictype/categ_LC.c | 2 +- lib/unictype/categ_Ll.c | 2 +- lib/unictype/categ_Lm.c | 2 +- lib/unictype/categ_Lo.c | 2 +- lib/unictype/categ_Lt.c | 2 +- lib/unictype/categ_Lu.c | 2 +- lib/unictype/categ_M.c | 2 +- lib/unictype/categ_Mc.c | 2 +- lib/unictype/categ_Me.c | 2 +- lib/unictype/categ_Mn.c | 2 +- lib/unictype/categ_N.c | 2 +- lib/unictype/categ_Nd.c | 2 +- lib/unictype/categ_Nl.c | 2 +- lib/unictype/categ_No.c | 2 +- lib/unictype/categ_P.c | 2 +- lib/unictype/categ_Pc.c | 2 +- lib/unictype/categ_Pd.c | 2 +- lib/unictype/categ_Pe.c | 2 +- lib/unictype/categ_Pf.c | 2 +- lib/unictype/categ_Pi.c | 2 +- lib/unictype/categ_Po.c | 2 +- lib/unictype/categ_Ps.c | 2 +- lib/unictype/categ_S.c | 2 +- lib/unictype/categ_Sc.c | 2 +- lib/unictype/categ_Sk.c | 2 +- lib/unictype/categ_Sm.c | 2 +- lib/unictype/categ_So.c | 2 +- lib/unictype/categ_Z.c | 2 +- lib/unictype/categ_Zl.c | 2 +- lib/unictype/categ_Zp.c | 2 +- lib/unictype/categ_Zs.c | 2 +- lib/unictype/categ_and.c | 2 +- lib/unictype/categ_and_not.c | 2 +- lib/unictype/categ_byname.c | 2 +- lib/unictype/categ_byname.h | 210 +- lib/unictype/categ_longname.c | 2 +- lib/unictype/categ_name.c | 2 +- lib/unictype/categ_none.c | 2 +- lib/unictype/categ_of.c | 2 +- lib/unictype/categ_or.c | 2 +- lib/unictype/categ_test.c | 2 +- lib/unictype/combiningclass.c | 2 +- lib/unictype/combiningclass_byname.c | 2 +- lib/unictype/combiningclass_byname.h | 110 +- lib/unictype/combiningclass_longname.c | 2 +- lib/unictype/combiningclass_name.c | 2 +- lib/unictype/ctype_alnum.c | 2 +- lib/unictype/ctype_alpha.c | 2 +- lib/unictype/ctype_blank.c | 2 +- lib/unictype/ctype_cntrl.c | 2 +- lib/unictype/ctype_digit.c | 2 +- lib/unictype/ctype_graph.c | 2 +- lib/unictype/ctype_lower.c | 2 +- lib/unictype/ctype_print.c | 2 +- lib/unictype/ctype_punct.c | 2 +- lib/unictype/ctype_space.c | 2 +- lib/unictype/ctype_upper.c | 2 +- lib/unictype/ctype_xdigit.c | 2 +- lib/unictype/decdigit.c | 2 +- lib/unictype/digit.c | 2 +- lib/unictype/identsyntaxmap.h | 2 +- lib/unictype/joininggroup_byname.c | 2 +- lib/unictype/joininggroup_byname.h | 264 +-- lib/unictype/joininggroup_name.c | 2 +- lib/unictype/joininggroup_name.h | 2 +- lib/unictype/joininggroup_of.c | 2 +- lib/unictype/joiningtype_byname.c | 2 +- lib/unictype/joiningtype_byname.h | 38 +- lib/unictype/joiningtype_longname.c | 2 +- lib/unictype/joiningtype_name.c | 2 +- lib/unictype/joiningtype_of.c | 2 +- lib/unictype/mirror.c | 2 +- lib/unictype/numeric.c | 2 +- lib/unictype/pr_alphabetic.c | 2 +- lib/unictype/pr_ascii_hex_digit.c | 2 +- lib/unictype/pr_bidi_arabic_digit.c | 2 +- lib/unictype/pr_bidi_arabic_right_to_left.c | 2 +- lib/unictype/pr_bidi_block_separator.c | 2 +- lib/unictype/pr_bidi_boundary_neutral.c | 2 +- lib/unictype/pr_bidi_common_separator.c | 2 +- lib/unictype/pr_bidi_control.c | 2 +- lib/unictype/pr_bidi_embedding_or_override.c | 2 +- lib/unictype/pr_bidi_eur_num_separator.c | 2 +- lib/unictype/pr_bidi_eur_num_terminator.c | 2 +- lib/unictype/pr_bidi_european_digit.c | 2 +- lib/unictype/pr_bidi_hebrew_right_to_left.c | 2 +- lib/unictype/pr_bidi_left_to_right.c | 2 +- lib/unictype/pr_bidi_non_spacing_mark.c | 2 +- lib/unictype/pr_bidi_other_neutral.c | 2 +- lib/unictype/pr_bidi_pdf.c | 2 +- lib/unictype/pr_bidi_segment_separator.c | 2 +- lib/unictype/pr_bidi_whitespace.c | 2 +- lib/unictype/pr_byname.c | 2 +- lib/unictype/pr_byname.h | 416 ++-- lib/unictype/pr_case_ignorable.c | 2 +- lib/unictype/pr_cased.c | 2 +- lib/unictype/pr_changes_when_casefolded.c | 2 +- lib/unictype/pr_changes_when_casemapped.c | 2 +- lib/unictype/pr_changes_when_lowercased.c | 2 +- lib/unictype/pr_changes_when_titlecased.c | 2 +- lib/unictype/pr_changes_when_uppercased.c | 2 +- lib/unictype/pr_combining.c | 2 +- lib/unictype/pr_composite.c | 2 +- lib/unictype/pr_currency_symbol.c | 2 +- lib/unictype/pr_dash.c | 2 +- lib/unictype/pr_decimal_digit.c | 2 +- lib/unictype/pr_default_ignorable_code_point.c | 2 +- lib/unictype/pr_deprecated.c | 2 +- lib/unictype/pr_diacritic.c | 2 +- lib/unictype/pr_extender.c | 2 +- lib/unictype/pr_format_control.c | 2 +- lib/unictype/pr_grapheme_base.c | 2 +- lib/unictype/pr_grapheme_extend.c | 2 +- lib/unictype/pr_grapheme_link.c | 2 +- lib/unictype/pr_hex_digit.c | 2 +- lib/unictype/pr_hyphen.c | 2 +- lib/unictype/pr_id_continue.c | 2 +- lib/unictype/pr_id_start.c | 2 +- lib/unictype/pr_ideographic.c | 2 +- lib/unictype/pr_ids_binary_operator.c | 2 +- lib/unictype/pr_ids_trinary_operator.c | 2 +- lib/unictype/pr_ignorable_control.c | 2 +- lib/unictype/pr_iso_control.c | 2 +- lib/unictype/pr_join_control.c | 2 +- lib/unictype/pr_left_of_pair.c | 2 +- lib/unictype/pr_line_separator.c | 2 +- lib/unictype/pr_logical_order_exception.c | 2 +- lib/unictype/pr_lowercase.c | 2 +- lib/unictype/pr_math.c | 2 +- lib/unictype/pr_non_break.c | 2 +- lib/unictype/pr_not_a_character.c | 2 +- lib/unictype/pr_numeric.c | 2 +- lib/unictype/pr_other_alphabetic.c | 2 +- .../pr_other_default_ignorable_code_point.c | 2 +- lib/unictype/pr_other_grapheme_extend.c | 2 +- lib/unictype/pr_other_id_continue.c | 2 +- lib/unictype/pr_other_id_start.c | 2 +- lib/unictype/pr_other_lowercase.c | 2 +- lib/unictype/pr_other_math.c | 2 +- lib/unictype/pr_other_uppercase.c | 2 +- lib/unictype/pr_paired_punctuation.c | 2 +- lib/unictype/pr_paragraph_separator.c | 2 +- lib/unictype/pr_pattern_syntax.c | 2 +- lib/unictype/pr_pattern_white_space.c | 2 +- lib/unictype/pr_private_use.c | 2 +- lib/unictype/pr_punctuation.c | 2 +- lib/unictype/pr_quotation_mark.c | 2 +- lib/unictype/pr_radical.c | 2 +- lib/unictype/pr_sentence_terminal.c | 2 +- lib/unictype/pr_soft_dotted.c | 2 +- lib/unictype/pr_space.c | 2 +- lib/unictype/pr_terminal_punctuation.c | 2 +- lib/unictype/pr_test.c | 2 +- lib/unictype/pr_titlecase.c | 2 +- lib/unictype/pr_unassigned_code_value.c | 2 +- lib/unictype/pr_unified_ideograph.c | 2 +- lib/unictype/pr_uppercase.c | 2 +- lib/unictype/pr_variation_selector.c | 2 +- lib/unictype/pr_white_space.c | 2 +- lib/unictype/pr_xid_continue.c | 2 +- lib/unictype/pr_xid_start.c | 2 +- lib/unictype/pr_zero_width.c | 2 +- lib/unictype/scripts.c | 2 +- lib/unictype/scripts_byname.h | 278 +-- lib/unictype/sy_c_ident.c | 2 +- lib/unictype/sy_c_whitespace.c | 2 +- lib/unictype/sy_java_ident.c | 2 +- lib/unictype/sy_java_whitespace.c | 2 +- lib/unigbrk.h | 2 +- lib/unigbrk.in.h | 2 +- lib/unigbrk/u-grapheme-breaks.h | 4 +- lib/unigbrk/u16-grapheme-breaks.c | 2 +- lib/unigbrk/u16-grapheme-next.c | 2 +- lib/unigbrk/u16-grapheme-prev.c | 2 +- lib/unigbrk/u32-grapheme-breaks.c | 2 +- lib/unigbrk/u32-grapheme-next.c | 2 +- lib/unigbrk/u32-grapheme-prev.c | 2 +- lib/unigbrk/u8-grapheme-breaks.c | 2 +- lib/unigbrk/u8-grapheme-next.c | 2 +- lib/unigbrk/u8-grapheme-prev.c | 2 +- lib/unigbrk/uc-gbrk-prop.c | 2 +- lib/unigbrk/uc-grapheme-breaks.c | 4 +- lib/unigbrk/uc-is-grapheme-break.c | 2 +- lib/unigbrk/ulc-grapheme-breaks.c | 2 +- lib/unilbrk.h | 2 +- lib/unilbrk.in.h | 2 +- lib/unilbrk/lbrktables.c | 2 +- lib/unilbrk/lbrktables.h | 2 +- lib/unilbrk/u16-possible-linebreaks.c | 2 +- lib/unilbrk/u16-width-linebreaks.c | 2 +- lib/unilbrk/u32-possible-linebreaks.c | 2 +- lib/unilbrk/u32-width-linebreaks.c | 2 +- lib/unilbrk/u8-possible-linebreaks.c | 2 +- lib/unilbrk/u8-width-linebreaks.c | 2 +- lib/unilbrk/ulc-common.c | 2 +- lib/unilbrk/ulc-common.h | 2 +- lib/unilbrk/ulc-possible-linebreaks.c | 2 +- lib/unilbrk/ulc-width-linebreaks.c | 2 +- lib/uniname.h | 2 +- lib/uniname.in.h | 2 +- lib/uniname/uniname.c | 2 +- lib/uninorm.h | 2 +- lib/uninorm.in.h | 2 +- lib/uninorm/canonical-decomposition.c | 2 +- lib/uninorm/compat-decomposition.c | 2 +- lib/uninorm/composition-table.h | 1882 ++++++++--------- lib/uninorm/composition.c | 2 +- lib/uninorm/decompose-internal.c | 2 +- lib/uninorm/decompose-internal.h | 2 +- lib/uninorm/decomposing-form.c | 2 +- lib/uninorm/decomposition-table.c | 2 +- lib/uninorm/decomposition-table.h | 2 +- lib/uninorm/decomposition.c | 2 +- lib/uninorm/nfc.c | 2 +- lib/uninorm/nfd.c | 2 +- lib/uninorm/nfkc.c | 2 +- lib/uninorm/nfkd.c | 2 +- lib/uninorm/normalize-internal.h | 2 +- lib/uninorm/u-normalize-internal.h | 2 +- lib/uninorm/u-normcmp.h | 2 +- lib/uninorm/u-normcoll.h | 2 +- lib/uninorm/u-normxfrm.h | 2 +- lib/uninorm/u16-normalize.c | 2 +- lib/uninorm/u16-normcmp.c | 2 +- lib/uninorm/u16-normcoll.c | 2 +- lib/uninorm/u16-normxfrm.c | 2 +- lib/uninorm/u32-normalize.c | 2 +- lib/uninorm/u32-normcmp.c | 2 +- lib/uninorm/u32-normcoll.c | 2 +- lib/uninorm/u32-normxfrm.c | 2 +- lib/uninorm/u8-normalize.c | 2 +- lib/uninorm/u8-normcmp.c | 2 +- lib/uninorm/u8-normcoll.c | 2 +- lib/uninorm/u8-normxfrm.c | 2 +- lib/uninorm/uninorm-filter.c | 2 +- lib/unistd.in.h | 9 +- lib/unistdio.h | 2 +- lib/unistdio.in.h | 2 +- lib/unistdio/u-asnprintf.h | 2 +- lib/unistdio/u-asprintf.h | 2 +- lib/unistdio/u-printf-args.c | 2 +- lib/unistdio/u-printf-args.h | 2 +- lib/unistdio/u-printf-parse.h | 2 +- lib/unistdio/u-snprintf.h | 2 +- lib/unistdio/u-sprintf.h | 2 +- lib/unistdio/u-vasprintf.h | 2 +- lib/unistdio/u-vsnprintf.h | 2 +- lib/unistdio/u-vsprintf.h | 2 +- lib/unistdio/u16-asnprintf.c | 2 +- lib/unistdio/u16-asprintf.c | 2 +- lib/unistdio/u16-printf-parse.c | 2 +- lib/unistdio/u16-snprintf.c | 2 +- lib/unistdio/u16-sprintf.c | 2 +- lib/unistdio/u16-u16-asnprintf.c | 2 +- lib/unistdio/u16-u16-asprintf.c | 2 +- lib/unistdio/u16-u16-snprintf.c | 2 +- lib/unistdio/u16-u16-sprintf.c | 2 +- lib/unistdio/u16-u16-vasnprintf.c | 2 +- lib/unistdio/u16-u16-vasprintf.c | 2 +- lib/unistdio/u16-u16-vsnprintf.c | 2 +- lib/unistdio/u16-u16-vsprintf.c | 2 +- lib/unistdio/u16-vasnprintf.c | 2 +- lib/unistdio/u16-vasprintf.c | 2 +- lib/unistdio/u16-vsnprintf.c | 2 +- lib/unistdio/u16-vsprintf.c | 2 +- lib/unistdio/u32-asnprintf.c | 2 +- lib/unistdio/u32-asprintf.c | 2 +- lib/unistdio/u32-printf-parse.c | 2 +- lib/unistdio/u32-snprintf.c | 2 +- lib/unistdio/u32-sprintf.c | 2 +- lib/unistdio/u32-u32-asnprintf.c | 2 +- lib/unistdio/u32-u32-asprintf.c | 2 +- lib/unistdio/u32-u32-snprintf.c | 2 +- lib/unistdio/u32-u32-sprintf.c | 2 +- lib/unistdio/u32-u32-vasnprintf.c | 2 +- lib/unistdio/u32-u32-vasprintf.c | 2 +- lib/unistdio/u32-u32-vsnprintf.c | 2 +- lib/unistdio/u32-u32-vsprintf.c | 2 +- lib/unistdio/u32-vasnprintf.c | 2 +- lib/unistdio/u32-vasprintf.c | 2 +- lib/unistdio/u32-vsnprintf.c | 2 +- lib/unistdio/u32-vsprintf.c | 2 +- lib/unistdio/u8-asnprintf.c | 2 +- lib/unistdio/u8-asprintf.c | 2 +- lib/unistdio/u8-printf-parse.c | 2 +- lib/unistdio/u8-snprintf.c | 2 +- lib/unistdio/u8-sprintf.c | 2 +- lib/unistdio/u8-u8-asnprintf.c | 2 +- lib/unistdio/u8-u8-asprintf.c | 2 +- lib/unistdio/u8-u8-snprintf.c | 2 +- lib/unistdio/u8-u8-sprintf.c | 2 +- lib/unistdio/u8-u8-vasnprintf.c | 2 +- lib/unistdio/u8-u8-vasprintf.c | 2 +- lib/unistdio/u8-u8-vsnprintf.c | 2 +- lib/unistdio/u8-u8-vsprintf.c | 2 +- lib/unistdio/u8-vasnprintf.c | 2 +- lib/unistdio/u8-vasprintf.c | 2 +- lib/unistdio/u8-vsnprintf.c | 2 +- lib/unistdio/u8-vsprintf.c | 2 +- lib/unistdio/ulc-asnprintf.c | 2 +- lib/unistdio/ulc-asprintf.c | 2 +- lib/unistdio/ulc-fprintf.c | 2 +- lib/unistdio/ulc-printf-parse.c | 2 +- lib/unistdio/ulc-snprintf.c | 2 +- lib/unistdio/ulc-sprintf.c | 2 +- lib/unistdio/ulc-vasnprintf.c | 2 +- lib/unistdio/ulc-vasprintf.c | 2 +- lib/unistdio/ulc-vfprintf.c | 2 +- lib/unistdio/ulc-vsnprintf.c | 2 +- lib/unistdio/ulc-vsprintf.c | 2 +- lib/unistr.h | 6 +- lib/unistr.in.h | 6 +- lib/unistr/u-cmp2.h | 2 +- lib/unistr/u-cpy-alloc.h | 2 +- lib/unistr/u-cpy.h | 2 +- lib/unistr/u-endswith.h | 2 +- lib/unistr/u-move.h | 2 +- lib/unistr/u-set.h | 2 +- lib/unistr/u-startswith.h | 2 +- lib/unistr/u-stpcpy.h | 2 +- lib/unistr/u-stpncpy.h | 2 +- lib/unistr/u-strcat.h | 2 +- lib/unistr/u-strcoll.h | 2 +- lib/unistr/u-strcpy.h | 2 +- lib/unistr/u-strcspn.h | 2 +- lib/unistr/u-strdup.h | 2 +- lib/unistr/u-strlen.h | 2 +- lib/unistr/u-strncat.h | 2 +- lib/unistr/u-strncpy.h | 2 +- lib/unistr/u-strnlen.h | 2 +- lib/unistr/u-strpbrk.h | 2 +- lib/unistr/u-strspn.h | 2 +- lib/unistr/u-strstr.h | 2 +- lib/unistr/u-strtok.h | 2 +- lib/unistr/u16-check.c | 2 +- lib/unistr/u16-chr.c | 2 +- lib/unistr/u16-cmp.c | 2 +- lib/unistr/u16-cmp2.c | 2 +- lib/unistr/u16-cpy-alloc.c | 2 +- lib/unistr/u16-cpy.c | 2 +- lib/unistr/u16-endswith.c | 2 +- lib/unistr/u16-mblen.c | 2 +- lib/unistr/u16-mbsnlen.c | 2 +- lib/unistr/u16-mbtouc-aux.c | 2 +- lib/unistr/u16-mbtouc-unsafe-aux.c | 2 +- lib/unistr/u16-mbtouc-unsafe.c | 2 +- lib/unistr/u16-mbtouc.c | 2 +- lib/unistr/u16-mbtoucr.c | 2 +- lib/unistr/u16-move.c | 2 +- lib/unistr/u16-next.c | 2 +- lib/unistr/u16-prev.c | 2 +- lib/unistr/u16-set.c | 2 +- lib/unistr/u16-startswith.c | 2 +- lib/unistr/u16-stpcpy.c | 2 +- lib/unistr/u16-stpncpy.c | 2 +- lib/unistr/u16-strcat.c | 2 +- lib/unistr/u16-strchr.c | 2 +- lib/unistr/u16-strcmp.c | 2 +- lib/unistr/u16-strcoll.c | 2 +- lib/unistr/u16-strcpy.c | 2 +- lib/unistr/u16-strcspn.c | 2 +- lib/unistr/u16-strdup.c | 2 +- lib/unistr/u16-strlen.c | 2 +- lib/unistr/u16-strmblen.c | 2 +- lib/unistr/u16-strmbtouc.c | 2 +- lib/unistr/u16-strncat.c | 2 +- lib/unistr/u16-strncmp.c | 2 +- lib/unistr/u16-strncpy.c | 2 +- lib/unistr/u16-strnlen.c | 2 +- lib/unistr/u16-strpbrk.c | 2 +- lib/unistr/u16-strrchr.c | 2 +- lib/unistr/u16-strspn.c | 2 +- lib/unistr/u16-strstr.c | 2 +- lib/unistr/u16-strtok.c | 2 +- lib/unistr/u16-to-u32.c | 2 +- lib/unistr/u16-to-u8.c | 2 +- lib/unistr/u16-uctomb-aux.c | 2 +- lib/unistr/u16-uctomb.c | 2 +- lib/unistr/u32-check.c | 2 +- lib/unistr/u32-chr.c | 2 +- lib/unistr/u32-cmp.c | 2 +- lib/unistr/u32-cmp2.c | 2 +- lib/unistr/u32-cpy-alloc.c | 2 +- lib/unistr/u32-cpy.c | 2 +- lib/unistr/u32-endswith.c | 2 +- lib/unistr/u32-mblen.c | 2 +- lib/unistr/u32-mbsnlen.c | 2 +- lib/unistr/u32-mbtouc-unsafe.c | 2 +- lib/unistr/u32-mbtouc.c | 2 +- lib/unistr/u32-mbtoucr.c | 2 +- lib/unistr/u32-move.c | 2 +- lib/unistr/u32-next.c | 2 +- lib/unistr/u32-prev.c | 2 +- lib/unistr/u32-set.c | 2 +- lib/unistr/u32-startswith.c | 2 +- lib/unistr/u32-stpcpy.c | 2 +- lib/unistr/u32-stpncpy.c | 2 +- lib/unistr/u32-strcat.c | 2 +- lib/unistr/u32-strchr.c | 2 +- lib/unistr/u32-strcmp.c | 2 +- lib/unistr/u32-strcoll.c | 2 +- lib/unistr/u32-strcpy.c | 2 +- lib/unistr/u32-strcspn.c | 2 +- lib/unistr/u32-strdup.c | 2 +- lib/unistr/u32-strlen.c | 2 +- lib/unistr/u32-strmblen.c | 2 +- lib/unistr/u32-strmbtouc.c | 2 +- lib/unistr/u32-strncat.c | 2 +- lib/unistr/u32-strncmp.c | 2 +- lib/unistr/u32-strncpy.c | 2 +- lib/unistr/u32-strnlen.c | 2 +- lib/unistr/u32-strpbrk.c | 2 +- lib/unistr/u32-strrchr.c | 2 +- lib/unistr/u32-strspn.c | 2 +- lib/unistr/u32-strstr.c | 2 +- lib/unistr/u32-strtok.c | 2 +- lib/unistr/u32-to-u16.c | 2 +- lib/unistr/u32-to-u8.c | 2 +- lib/unistr/u32-uctomb.c | 2 +- lib/unistr/u8-check.c | 2 +- lib/unistr/u8-chr.c | 2 +- lib/unistr/u8-cmp.c | 2 +- lib/unistr/u8-cmp2.c | 2 +- lib/unistr/u8-cpy-alloc.c | 2 +- lib/unistr/u8-cpy.c | 2 +- lib/unistr/u8-endswith.c | 2 +- lib/unistr/u8-mblen.c | 2 +- lib/unistr/u8-mbsnlen.c | 2 +- lib/unistr/u8-mbtouc-aux.c | 2 +- lib/unistr/u8-mbtouc-unsafe-aux.c | 2 +- lib/unistr/u8-mbtouc-unsafe.c | 2 +- lib/unistr/u8-mbtouc.c | 2 +- lib/unistr/u8-mbtoucr.c | 2 +- lib/unistr/u8-move.c | 2 +- lib/unistr/u8-next.c | 2 +- lib/unistr/u8-prev.c | 2 +- lib/unistr/u8-set.c | 2 +- lib/unistr/u8-startswith.c | 2 +- lib/unistr/u8-stpcpy.c | 2 +- lib/unistr/u8-stpncpy.c | 2 +- lib/unistr/u8-strcat.c | 2 +- lib/unistr/u8-strchr.c | 2 +- lib/unistr/u8-strcmp.c | 2 +- lib/unistr/u8-strcoll.c | 2 +- lib/unistr/u8-strcpy.c | 2 +- lib/unistr/u8-strcspn.c | 2 +- lib/unistr/u8-strdup.c | 2 +- lib/unistr/u8-strlen.c | 2 +- lib/unistr/u8-strmblen.c | 2 +- lib/unistr/u8-strmbtouc.c | 2 +- lib/unistr/u8-strncat.c | 2 +- lib/unistr/u8-strncmp.c | 2 +- lib/unistr/u8-strncpy.c | 2 +- lib/unistr/u8-strnlen.c | 2 +- lib/unistr/u8-strpbrk.c | 2 +- lib/unistr/u8-strrchr.c | 2 +- lib/unistr/u8-strspn.c | 2 +- lib/unistr/u8-strstr.c | 2 +- lib/unistr/u8-strtok.c | 2 +- lib/unistr/u8-to-u16.c | 2 +- lib/unistr/u8-to-u32.c | 2 +- lib/unistr/u8-uctomb-aux.c | 2 +- lib/unistr/u8-uctomb.c | 2 +- lib/unitypes.h | 2 +- lib/unitypes.in.h | 2 +- lib/uniwbrk.h | 2 +- lib/uniwbrk.in.h | 2 +- lib/uniwbrk/u-wordbreaks.h | 2 +- lib/uniwbrk/u16-wordbreaks.c | 2 +- lib/uniwbrk/u32-wordbreaks.c | 2 +- lib/uniwbrk/u8-wordbreaks.c | 2 +- lib/uniwbrk/ulc-wordbreaks.c | 2 +- lib/uniwbrk/wbrktable.c | 2 +- lib/uniwbrk/wbrktable.h | 2 +- lib/uniwbrk/wordbreak-property.c | 2 +- lib/uniwidth.h | 2 +- lib/uniwidth.in.h | 2 +- lib/uniwidth/cjk.h | 2 +- lib/uniwidth/u16-strwidth.c | 2 +- lib/uniwidth/u16-width.c | 2 +- lib/uniwidth/u32-strwidth.c | 2 +- lib/uniwidth/u32-width.c | 2 +- lib/uniwidth/u8-strwidth.c | 2 +- lib/uniwidth/u8-width.c | 2 +- lib/uniwidth/width.c | 2 +- lib/unused-parameter.h | 2 +- lib/vasnprintf.c | 2 +- lib/verify.h | 2 +- lib/warn-on-use.h | 2 +- lib/wchar.in.h | 2 +- lib/wctype.in.h | 2 +- lib/wcwidth.c | 2 +- lib/xalloc-oversized.h | 2 +- lib/xsize.h | 2 +- tests/Makefile.gnulib | 43 +- tests/Makefile.in | 204 +- tests/arg-nonnull.h | 2 +- tests/basename-lgpl.c | 2 +- tests/btowc.c | 2 +- tests/c++defs.h | 2 +- tests/ctype.in.h | 2 +- tests/dirname-lgpl.c | 2 +- tests/dirname.h | 2 +- tests/dosname.h | 2 +- tests/error.c | 2 +- tests/error.h | 2 +- tests/exitfail.c | 2 +- tests/exitfail.h | 2 +- tests/fdopen.c | 2 +- tests/getpagesize.c | 2 +- tests/getprogname.c | 9 +- tests/getprogname.h | 2 +- tests/gettext.h | 2 +- tests/glthread/thread.c | 2 +- tests/glthread/thread.h | 19 +- tests/glthread/yield.h | 2 +- tests/iconvsupport.c | 39 + tests/infinity.h | 2 +- tests/init.sh | 4 +- tests/intprops.h | 2 +- tests/inttypes.in.h | 2 +- tests/isblank.c | 2 +- tests/locale.in.h | 2 +- tests/macros.h | 2 +- tests/mbtowc-impl.h | 2 +- tests/mbtowc.c | 2 +- tests/minus-zero.h | 2 +- tests/msvc-inval.c | 2 +- tests/msvc-inval.h | 2 +- tests/msvc-nothrow.c | 2 +- tests/msvc-nothrow.h | 2 +- tests/nan.h | 2 +- tests/pthread_sigmask.c | 2 +- tests/putenv.c | 2 +- tests/raise.c | 2 +- tests/randomd.c | 2 +- tests/randoml.c | 2 +- tests/setenv.c | 2 +- tests/setlocale.c | 2 +- tests/signal.in.h | 4 +- tests/signature.h | 2 +- tests/sigprocmask.c | 2 +- tests/sleep.c | 2 +- tests/stdalign.in.h | 2 +- tests/stdio.in.h | 2 +- tests/strerror-override.c | 2 +- tests/strerror-override.h | 2 +- tests/strerror.c | 2 +- tests/stripslash.c | 2 +- tests/test-alloca-opt.c | 2 +- tests/test-array-mergesort.c | 2 +- tests/test-btowc.c | 2 +- tests/test-c-ctype.c | 2 +- tests/test-c-strcasecmp.c | 2 +- tests/test-c-strncasecmp.c | 2 +- tests/test-ctype.c | 2 +- tests/test-environ.c | 2 +- tests/test-errno.c | 2 +- tests/test-fdopen.c | 2 +- tests/test-fgetc.c | 2 +- tests/test-float.c | 2 +- tests/test-fputc.c | 2 +- tests/test-fread.c | 2 +- tests/test-frexp.c | 2 +- tests/test-frexp.h | 2 +- tests/test-frexpl.c | 2 +- tests/test-fseterr.c | 2 +- tests/test-fwrite.c | 2 +- tests/test-getprogname.c | 2 +- tests/test-iconv-h.c | 2 +- tests/test-iconv.c | 2 +- tests/test-init.sh | 2 +- tests/test-intprops.c | 2 +- tests/test-inttypes.c | 2 +- tests/test-isblank.c | 2 +- tests/test-isnand-nolibm.c | 2 +- tests/test-isnand.h | 2 +- tests/test-isnanf-nolibm.c | 2 +- tests/test-isnanf.h | 2 +- tests/test-isnanl-nolibm.c | 2 +- tests/test-isnanl.h | 2 +- tests/test-iswblank.c | 2 +- tests/test-langinfo.c | 2 +- tests/test-limits-h.c | 2 +- tests/test-locale.c | 2 +- tests/test-localename.c | 2 +- tests/test-lock.c | 2 +- tests/test-malloca.c | 2 +- tests/test-math.c | 2 +- tests/test-mbrtowc-w32.c | 2 +- tests/test-mbrtowc.c | 12 +- tests/test-mbsinit.c | 2 +- tests/test-memchr.c | 2 +- tests/test-once.c | 43 + tests/test-printf-frexp.c | 2 +- tests/test-printf-frexpl.c | 2 +- tests/test-pthread_sigmask1.c | 2 +- tests/test-pthread_sigmask2.c | 2 +- tests/test-raise.c | 2 +- tests/test-rwlock1.c | 2 +- tests/test-setenv.c | 2 +- tests/test-setlocale1.c | 2 +- tests/test-setlocale2.c | 2 +- tests/test-signal-h.c | 2 +- tests/test-signbit.c | 2 +- tests/test-sigprocmask.c | 2 +- tests/test-sleep.c | 2 +- tests/test-stdalign.c | 2 +- tests/test-stdbool.c | 2 +- tests/test-stddef.c | 2 +- tests/test-stdint.c | 2 +- tests/test-stdio.c | 2 +- tests/test-stdlib.c | 2 +- tests/test-strerror.c | 2 +- tests/test-striconveh.c | 2 +- tests/test-striconveha.c | 221 +- tests/test-string.c | 2 +- tests/test-strncat.c | 2 +- tests/test-strstr.c | 2 +- tests/test-sys_types.c | 2 +- tests/test-sys_wait.h | 2 +- tests/test-thread_create.c | 2 +- tests/test-thread_self.c | 2 +- tests/test-time.c | 2 +- tests/test-unistd.c | 2 +- tests/test-unsetenv.c | 2 +- tests/test-usleep.c | 2 +- tests/test-verify-try.c | 2 +- tests/test-verify.c | 2 +- tests/test-wchar.c | 2 +- tests/test-wcrtomb-w32.c | 2 +- tests/test-wcrtomb.c | 2 +- tests/test-wctype-h.c | 2 +- tests/test-wcwidth.c | 2 +- tests/test-xalloc-die.c | 2 +- tests/test-xalloc-die.sh | 2 +- tests/time.in.h | 2 +- tests/unicase/test-casecmp.h | 2 +- tests/unicase/test-is-cased.h | 2 +- tests/unicase/test-is-casefolded.h | 2 +- tests/unicase/test-is-lowercase.h | 2 +- tests/unicase/test-is-titlecase.h | 2 +- tests/unicase/test-is-uppercase.h | 2 +- tests/unicase/test-locale-language.c | 2 +- tests/unicase/test-mapping-part1.h | 2 +- tests/unicase/test-mapping-part2.h | 2 +- tests/unicase/test-predicate-part1.h | 2 +- tests/unicase/test-predicate-part2.h | 2 +- tests/unicase/test-u16-casecmp.c | 2 +- tests/unicase/test-u16-casecoll.c | 2 +- tests/unicase/test-u16-casefold.c | 2 +- tests/unicase/test-u16-is-cased.c | 2 +- tests/unicase/test-u16-is-casefolded.c | 2 +- tests/unicase/test-u16-is-lowercase.c | 2 +- tests/unicase/test-u16-is-titlecase.c | 2 +- tests/unicase/test-u16-is-uppercase.c | 2 +- tests/unicase/test-u16-tolower.c | 2 +- tests/unicase/test-u16-totitle.c | 2 +- tests/unicase/test-u16-toupper.c | 2 +- tests/unicase/test-u32-casecmp.c | 2 +- tests/unicase/test-u32-casecoll.c | 2 +- tests/unicase/test-u32-casefold.c | 2 +- tests/unicase/test-u32-is-cased.c | 2 +- tests/unicase/test-u32-is-casefolded.c | 2 +- tests/unicase/test-u32-is-lowercase.c | 2 +- tests/unicase/test-u32-is-titlecase.c | 2 +- tests/unicase/test-u32-is-uppercase.c | 2 +- tests/unicase/test-u32-tolower.c | 2 +- tests/unicase/test-u32-totitle.c | 2 +- tests/unicase/test-u32-toupper.c | 2 +- tests/unicase/test-u8-casecmp.c | 2 +- tests/unicase/test-u8-casecoll.c | 2 +- tests/unicase/test-u8-casefold.c | 2 +- tests/unicase/test-u8-is-cased.c | 2 +- tests/unicase/test-u8-is-casefolded.c | 2 +- tests/unicase/test-u8-is-lowercase.c | 2 +- tests/unicase/test-u8-is-titlecase.c | 2 +- tests/unicase/test-u8-is-uppercase.c | 2 +- tests/unicase/test-u8-tolower.c | 2 +- tests/unicase/test-u8-totitle.c | 2 +- tests/unicase/test-u8-toupper.c | 2 +- tests/unicase/test-ulc-casecmp.c | 2 +- tests/unicase/test-ulc-casecoll.c | 2 +- tests/uniconv/test-u16-conv-from-enc.c | 166 +- tests/uniconv/test-u16-conv-to-enc.c | 2 +- tests/uniconv/test-u16-strconv-from-enc.c | 76 +- tests/uniconv/test-u16-strconv-to-enc.c | 2 +- tests/uniconv/test-u32-conv-from-enc.c | 166 +- tests/uniconv/test-u32-conv-to-enc.c | 2 +- tests/uniconv/test-u32-strconv-from-enc.c | 76 +- tests/uniconv/test-u32-strconv-to-enc.c | 2 +- tests/uniconv/test-u8-conv-from-enc.c | 148 +- tests/uniconv/test-u8-conv-to-enc.c | 2 +- tests/uniconv/test-u8-strconv-from-enc.c | 64 +- tests/uniconv/test-u8-strconv-to-enc.c | 2 +- tests/unigbrk/test-u16-grapheme-breaks.c | 2 +- tests/unigbrk/test-u16-grapheme-next.c | 2 +- tests/unigbrk/test-u16-grapheme-prev.c | 2 +- tests/unigbrk/test-u32-grapheme-breaks.c | 2 +- tests/unigbrk/test-u32-grapheme-next.c | 2 +- tests/unigbrk/test-u32-grapheme-prev.c | 2 +- tests/unigbrk/test-u8-grapheme-breaks.c | 2 +- tests/unigbrk/test-u8-grapheme-next.c | 2 +- tests/unigbrk/test-u8-grapheme-prev.c | 2 +- tests/unigbrk/test-uc-gbrk-prop.c | 2 +- tests/unigbrk/test-uc-grapheme-breaks.c | 4 +- tests/unigbrk/test-uc-is-grapheme-break.c | 2 +- tests/unigbrk/test-ulc-grapheme-breaks.c | 2 +- tests/unilbrk/test-u16-possible-linebreaks.c | 2 +- tests/unilbrk/test-u16-width-linebreaks.c | 2 +- tests/unilbrk/test-u32-possible-linebreaks.c | 2 +- tests/unilbrk/test-u32-width-linebreaks.c | 2 +- tests/unilbrk/test-u8-possible-linebreaks.c | 2 +- tests/unilbrk/test-u8-width-linebreaks.c | 2 +- tests/unilbrk/test-ulc-possible-linebreaks.c | 2 +- tests/unilbrk/test-ulc-width-linebreaks.c | 2 +- tests/uniname/test-uninames.c | 2 +- tests/uninorm/test-canonical-decomposition.c | 2 +- tests/uninorm/test-compat-decomposition.c | 2 +- tests/uninorm/test-composition.c | 2 +- tests/uninorm/test-decomposing-form.c | 2 +- tests/uninorm/test-decomposition.c | 2 +- tests/uninorm/test-nfc.c | 2 +- tests/uninorm/test-nfd.c | 2 +- tests/uninorm/test-nfkc.c | 2 +- tests/uninorm/test-nfkd.c | 2 +- tests/uninorm/test-u16-nfc.c | 2 +- tests/uninorm/test-u16-nfd.c | 2 +- tests/uninorm/test-u16-nfkc.c | 2 +- tests/uninorm/test-u16-nfkd.c | 2 +- tests/uninorm/test-u16-normcmp.c | 2 +- tests/uninorm/test-u16-normcmp.h | 2 +- tests/uninorm/test-u16-normcoll.c | 2 +- tests/uninorm/test-u32-nfc-big.c | 2 +- tests/uninorm/test-u32-nfc.c | 2 +- tests/uninorm/test-u32-nfd-big.c | 2 +- tests/uninorm/test-u32-nfd.c | 2 +- tests/uninorm/test-u32-nfkc-big.c | 2 +- tests/uninorm/test-u32-nfkc.c | 2 +- tests/uninorm/test-u32-nfkd-big.c | 2 +- tests/uninorm/test-u32-nfkd.c | 2 +- tests/uninorm/test-u32-normalize-big.c | 2 +- tests/uninorm/test-u32-normalize-big.h | 2 +- tests/uninorm/test-u32-normcmp.c | 2 +- tests/uninorm/test-u32-normcmp.h | 2 +- tests/uninorm/test-u32-normcoll.c | 2 +- tests/uninorm/test-u8-nfc.c | 2 +- tests/uninorm/test-u8-nfd.c | 2 +- tests/uninorm/test-u8-nfkc.c | 2 +- tests/uninorm/test-u8-nfkd.c | 2 +- tests/uninorm/test-u8-normcmp.c | 2 +- tests/uninorm/test-u8-normcmp.h | 2 +- tests/uninorm/test-u8-normcoll.c | 2 +- tests/uninorm/test-uninorm-filter-nfc.c | 2 +- tests/unistdio/test-u16-asnprintf1.c | 2 +- tests/unistdio/test-u16-asnprintf1.h | 2 +- tests/unistdio/test-u16-printf1.h | 2 +- tests/unistdio/test-u16-vasnprintf1.c | 2 +- tests/unistdio/test-u16-vasnprintf2.c | 2 +- tests/unistdio/test-u16-vasnprintf3.c | 2 +- tests/unistdio/test-u16-vasprintf1.c | 2 +- tests/unistdio/test-u16-vsnprintf1.c | 2 +- tests/unistdio/test-u16-vsprintf1.c | 2 +- tests/unistdio/test-u32-asnprintf1.c | 2 +- tests/unistdio/test-u32-asnprintf1.h | 2 +- tests/unistdio/test-u32-printf1.h | 2 +- tests/unistdio/test-u32-vasnprintf1.c | 2 +- tests/unistdio/test-u32-vasnprintf2.c | 2 +- tests/unistdio/test-u32-vasnprintf3.c | 2 +- tests/unistdio/test-u32-vasprintf1.c | 2 +- tests/unistdio/test-u32-vsnprintf1.c | 2 +- tests/unistdio/test-u32-vsprintf1.c | 2 +- tests/unistdio/test-u8-asnprintf1.c | 2 +- tests/unistdio/test-u8-asnprintf1.h | 2 +- tests/unistdio/test-u8-printf1.h | 2 +- tests/unistdio/test-u8-vasnprintf1.c | 2 +- tests/unistdio/test-u8-vasnprintf2.c | 2 +- tests/unistdio/test-u8-vasnprintf3.c | 2 +- tests/unistdio/test-u8-vasprintf1.c | 2 +- tests/unistdio/test-u8-vsnprintf1.c | 2 +- tests/unistdio/test-u8-vsprintf1.c | 2 +- tests/unistdio/test-ulc-asnprintf1.c | 2 +- tests/unistdio/test-ulc-asnprintf1.h | 2 +- tests/unistdio/test-ulc-printf1.h | 2 +- tests/unistdio/test-ulc-vasnprintf1.c | 2 +- tests/unistdio/test-ulc-vasnprintf2.c | 2 +- tests/unistdio/test-ulc-vasnprintf3.c | 2 +- tests/unistdio/test-ulc-vasprintf1.c | 2 +- tests/unistdio/test-ulc-vsnprintf1.c | 2 +- tests/unistdio/test-ulc-vsprintf1.c | 2 +- tests/unistr/test-chr.h | 2 +- tests/unistr/test-cmp.h | 2 +- tests/unistr/test-cmp2.h | 2 +- tests/unistr/test-cpy-alloc.h | 2 +- tests/unistr/test-cpy.h | 2 +- tests/unistr/test-move.h | 2 +- tests/unistr/test-set.h | 2 +- tests/unistr/test-stpcpy.h | 2 +- tests/unistr/test-stpncpy.h | 2 +- tests/unistr/test-strcat.h | 2 +- tests/unistr/test-strchr.h | 2 +- tests/unistr/test-strcmp.h | 2 +- tests/unistr/test-strcpy.h | 2 +- tests/unistr/test-strdup.h | 2 +- tests/unistr/test-strncat.h | 2 +- tests/unistr/test-strncmp.h | 2 +- tests/unistr/test-strncpy.h | 2 +- tests/unistr/test-strnlen.h | 2 +- tests/unistr/test-u-strstr.h | 2 +- tests/unistr/test-u-strtok.h | 2 +- tests/unistr/test-u16-check.c | 2 +- tests/unistr/test-u16-chr.c | 2 +- tests/unistr/test-u16-cmp.c | 2 +- tests/unistr/test-u16-cmp2.c | 2 +- tests/unistr/test-u16-cpy-alloc.c | 2 +- tests/unistr/test-u16-cpy.c | 2 +- tests/unistr/test-u16-mblen.c | 2 +- tests/unistr/test-u16-mbsnlen.c | 2 +- tests/unistr/test-u16-mbtouc-unsafe.c | 2 +- tests/unistr/test-u16-mbtouc.c | 2 +- tests/unistr/test-u16-mbtouc.h | 2 +- tests/unistr/test-u16-mbtoucr.c | 2 +- tests/unistr/test-u16-move.c | 2 +- tests/unistr/test-u16-next.c | 2 +- tests/unistr/test-u16-prev.c | 2 +- tests/unistr/test-u16-set.c | 2 +- tests/unistr/test-u16-stpcpy.c | 2 +- tests/unistr/test-u16-stpncpy.c | 2 +- tests/unistr/test-u16-strcat.c | 2 +- tests/unistr/test-u16-strchr.c | 2 +- tests/unistr/test-u16-strcmp.c | 2 +- tests/unistr/test-u16-strcmp.h | 2 +- tests/unistr/test-u16-strcoll.c | 2 +- tests/unistr/test-u16-strcpy.c | 2 +- tests/unistr/test-u16-strdup.c | 2 +- tests/unistr/test-u16-strlen.c | 2 +- tests/unistr/test-u16-strmblen.c | 2 +- tests/unistr/test-u16-strmbtouc.c | 2 +- tests/unistr/test-u16-strncat.c | 2 +- tests/unistr/test-u16-strncmp.c | 2 +- tests/unistr/test-u16-strncpy.c | 2 +- tests/unistr/test-u16-strnlen.c | 2 +- tests/unistr/test-u16-strstr.c | 2 +- tests/unistr/test-u16-strtok.c | 2 +- tests/unistr/test-u16-to-u32.c | 2 +- tests/unistr/test-u16-to-u8.c | 2 +- tests/unistr/test-u16-uctomb.c | 2 +- tests/unistr/test-u32-check.c | 2 +- tests/unistr/test-u32-chr.c | 2 +- tests/unistr/test-u32-cmp.c | 2 +- tests/unistr/test-u32-cmp2.c | 2 +- tests/unistr/test-u32-cpy-alloc.c | 2 +- tests/unistr/test-u32-cpy.c | 2 +- tests/unistr/test-u32-mblen.c | 2 +- tests/unistr/test-u32-mbsnlen.c | 2 +- tests/unistr/test-u32-mbtouc-unsafe.c | 2 +- tests/unistr/test-u32-mbtouc.c | 2 +- tests/unistr/test-u32-mbtouc.h | 2 +- tests/unistr/test-u32-mbtoucr.c | 2 +- tests/unistr/test-u32-move.c | 2 +- tests/unistr/test-u32-next.c | 2 +- tests/unistr/test-u32-prev.c | 2 +- tests/unistr/test-u32-set.c | 2 +- tests/unistr/test-u32-stpcpy.c | 2 +- tests/unistr/test-u32-stpncpy.c | 2 +- tests/unistr/test-u32-strcat.c | 2 +- tests/unistr/test-u32-strchr.c | 2 +- tests/unistr/test-u32-strcmp.c | 2 +- tests/unistr/test-u32-strcmp.h | 2 +- tests/unistr/test-u32-strcoll.c | 2 +- tests/unistr/test-u32-strcpy.c | 2 +- tests/unistr/test-u32-strdup.c | 2 +- tests/unistr/test-u32-strlen.c | 2 +- tests/unistr/test-u32-strmblen.c | 2 +- tests/unistr/test-u32-strmbtouc.c | 2 +- tests/unistr/test-u32-strncat.c | 2 +- tests/unistr/test-u32-strncmp.c | 2 +- tests/unistr/test-u32-strncpy.c | 2 +- tests/unistr/test-u32-strnlen.c | 2 +- tests/unistr/test-u32-strstr.c | 2 +- tests/unistr/test-u32-strtok.c | 2 +- tests/unistr/test-u32-to-u16.c | 2 +- tests/unistr/test-u32-to-u8.c | 2 +- tests/unistr/test-u32-uctomb.c | 2 +- tests/unistr/test-u8-check.c | 2 +- tests/unistr/test-u8-chr.c | 2 +- tests/unistr/test-u8-cmp.c | 2 +- tests/unistr/test-u8-cmp2.c | 2 +- tests/unistr/test-u8-cpy-alloc.c | 2 +- tests/unistr/test-u8-cpy.c | 2 +- tests/unistr/test-u8-mblen.c | 2 +- tests/unistr/test-u8-mbsnlen.c | 2 +- tests/unistr/test-u8-mbtouc-unsafe.c | 2 +- tests/unistr/test-u8-mbtouc.c | 2 +- tests/unistr/test-u8-mbtouc.h | 2 +- tests/unistr/test-u8-mbtoucr.c | 2 +- tests/unistr/test-u8-move.c | 2 +- tests/unistr/test-u8-next.c | 2 +- tests/unistr/test-u8-prev.c | 2 +- tests/unistr/test-u8-set.c | 2 +- tests/unistr/test-u8-stpcpy.c | 2 +- tests/unistr/test-u8-stpncpy.c | 2 +- tests/unistr/test-u8-strcat.c | 2 +- tests/unistr/test-u8-strchr.c | 2 +- tests/unistr/test-u8-strcmp.c | 2 +- tests/unistr/test-u8-strcmp.h | 2 +- tests/unistr/test-u8-strcoll.c | 2 +- tests/unistr/test-u8-strcpy.c | 2 +- tests/unistr/test-u8-strdup.c | 2 +- tests/unistr/test-u8-strlen.c | 2 +- tests/unistr/test-u8-strmblen.c | 2 +- tests/unistr/test-u8-strmbtouc.c | 2 +- tests/unistr/test-u8-strncat.c | 2 +- tests/unistr/test-u8-strncmp.c | 2 +- tests/unistr/test-u8-strncpy.c | 2 +- tests/unistr/test-u8-strnlen.c | 2 +- tests/unistr/test-u8-strstr.c | 2 +- tests/unistr/test-u8-strtok.c | 2 +- tests/unistr/test-u8-to-u16.c | 2 +- tests/unistr/test-u8-to-u32.c | 2 +- tests/unistr/test-u8-uctomb.c | 2 +- tests/uniwbrk/test-u16-wordbreaks.c | 2 +- tests/uniwbrk/test-u32-wordbreaks.c | 2 +- tests/uniwbrk/test-u8-wordbreaks.c | 2 +- tests/uniwbrk/test-uc-wordbreaks.c | 2 +- tests/uniwbrk/test-ulc-wordbreaks.c | 2 +- tests/uniwidth/test-u16-strwidth.c | 2 +- tests/uniwidth/test-u16-width.c | 2 +- tests/uniwidth/test-u32-strwidth.c | 2 +- tests/uniwidth/test-u32-width.c | 2 +- tests/uniwidth/test-u8-strwidth.c | 2 +- tests/uniwidth/test-u8-width.c | 2 +- tests/uniwidth/test-uc_width.c | 2 +- tests/uniwidth/test-uc_width2.c | 2 +- tests/unsetenv.c | 2 +- tests/unused-parameter.h | 2 +- tests/usleep.c | 2 +- tests/warn-on-use.h | 2 +- tests/wcrtomb.c | 2 +- tests/wctob.c | 2 +- tests/wctomb-impl.h | 2 +- tests/wctomb.c | 2 +- tests/xalloc-die.c | 2 +- tests/xalloc.h | 2 +- tests/xmalloc.c | 2 +- tests/zerosize-ptr.h | 2 +- version.sh | 6 +- 1358 files changed, 10092 insertions(+), 9194 deletions(-) create mode 100644 INSTALL.windows delete mode 100644 README.windows create mode 100644 doc/libunistring_21.html create mode 100644 doc/wchar_t.texi delete mode 100644 lib/malloca.valgrind create mode 100644 tests/iconvsupport.c create mode 100644 tests/test-once.c diff --git a/ChangeLog b/ChangeLog index a09ef60..747198c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,35 @@ +2018-02-28 Daiki Ueno + + * version.sh: Bump version number and date. + * README: Update version. + +2018-02-02 Bruno Haible + + Update after gnulib changed. + * NEWS: Mention the multithread-safety fix from gnulib module 'malloca'. + +2018-01-27 Bruno Haible + + Rename some file. + * INSTALL.windows: Renamed from README.windows. + * Makefile.am (EXTRA_DIST): Update. + * doc/libunistring.texi (Installation): Likewise. + +2017-12-10 Bruno Haible + + Documentation updates. + Mostly based on feedback by Richard Stallman . + * doc/wchar_t.texi: New file, extracted from doc/libunistring.texi. + * doc/Makefile.am (libunistring_TEXINFOS): Add it. + * doc/libunistring.texi: Move "The wchar_t mess" section to an appendix. + * doc/unitypes.texi: Explain difference between uint32_t and ucs4_t. + * doc/unistr.texi (Elementary string functions, + Elementary string functions on NUL terminated strings): Add subsection + structure. + * doc/unictype.texi (Object oriented API): Explain each general category + once only. + * doc/unistdio.texi, doc/uninorm.texi, doc/unicase.texi: Small changes. + 2017-11-30 Daiki Ueno * version.sh: Bump version number and date. diff --git a/INSTALL.windows b/INSTALL.windows new file mode 100644 index 0000000..0d3fb08 --- /dev/null +++ b/INSTALL.windows @@ -0,0 +1,261 @@ +Installation on Microsoft Windows: + +There are three ways to create binaries of this package for Microsoft Windows: +1) Native binaries, built using the mingw tool chain. +2) Native binaries, built using the MS Visual C/C++ tool chain. +3) Binaries for the Cygwin environment. + +=============================================================================== +1) Native binaries, built using the mingw tool chain. + + I recommend to use the Cygwin environment as the development environment + and mingw only as the target (runtime, deployment) environment. + For this, you need to install + * Cygwin (from https://cygwin.com/), + * some packages available from the Cygwin package installer: + make + * the mingw cross-compilation tools and runtime package, available from + the Cygwin package installer (setup-x86_64.exe): + - for creating 32-bit binaries: packages + mingw64-i686-gcc-core, + mingw64-i686-headers, + mingw64-i686-runtime + - for creating 64-bit binaries: packages + mingw64-x86_64-gcc-core, + mingw64-x86_64-headers, + mingw64-x86_64-runtime + + Building 32-bit binaries for mingw is achieved through the following + preparation, configure, and build commands: + + PATH=/usr/local/mingw32/bin:$PATH + export PATH + ./configure --host=i686-w64-mingw32 --prefix=/usr/local/mingw32 \ + CC=i686-w64-mingw32-gcc \ + CPPFLAGS="-I/usr/local/mingw32/include -Wall" \ + LDFLAGS="-L/usr/local/mingw32/lib" + make + make check + + Building 64-bit binaries for mingw is achieved through the following + preparation, configure, and build commands: + + PATH=/usr/local/mingw64/bin:$PATH + export PATH + ./configure --host=x86_64-w64-mingw32 --prefix=/usr/local/mingw64 \ + CC=x86_64-w64-mingw32-gcc \ + CPPFLAGS="-I/usr/local/mingw64/include -Wall" \ + LDFLAGS="-L/usr/local/mingw64/lib" + make + make check + + Installation: + + make install + +=============================================================================== +2) Native binaries, built using the MS Visual C/C++ tool chain. + + Note that binaries created with MSVC have a distribution constraint: They + depend on a closed-source library ('msvcr90.dll' for MSVC 9.0, + 'vcruntime140.dll' for MSVC 14.0, and so on) which is not normally part of + a Windows installation. + You cannot distribute 'vcruntime*.dll' with the binaries - this would be a + violation of the GPL and of the Microsoft EULA. + You can distribute the binaries without including 'vcruntime*.dll'. Users + who don't have this library on their system will require to pull some files + (api-ms-win*.dll) through the Windows Update mechanism, see + https://support.microsoft.com/en-us/kb/2999226 . + + This recipe requires MS Visual C/C++ 9.0 or newer. + You don't need the Visual Studio IDE, just the C/C++ tool chain. + As of 2016, you can install the MS Visual C/C++ 14.0 tool chain from + http://landinghub.visualstudio.com/visual-cpp-build-tools (it's the file + visualcppbuildtools_full.exe). + + This recipe requires also a Cygwin environment (with 'bash', the common POSIX + commands, and 'make') as a build environment. Building with 'nmake' is not + supported. + For this, you need to install + * Cygwin (from https://cygwin.com/), + * some packages available from the Cygwin package installer: + make + + You also need the scripts 'ar-lib' and 'compile' from + http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;f=lib/ar-lib;hb=HEAD + http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;f=lib/compile;hb=HEAD + respectively. + They may also be included in this package, in directory 'build-aux/'. + Save them; the instructions below assume that you stored them in $HOME/msvc/. + Make them executable: + chmod a+x ar-lib compile + + Start a bash (from Cygwin). + + Make sure that the MSVC tools ("cl" etc.) are found in PATH and the + environment variables INCLUDE and LIB are set appropriately. + In a typical MSVC 9.0 installation, it can be achieved by running + C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat + In a typical MSVC 14.0 installation on Windows 10, it can be achieved + - for creating 32-bit binaries: through the following bash commands: + + # Set environment variables for using MSVC 14, + # for creating native 32-bit Windows executables. + + # Windows C library headers and libraries. + WindowsCrtIncludeDir='C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt' + WindowsCrtLibDir='C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\' + INCLUDE="${WindowsCrtIncludeDir};$INCLUDE" + LIB="${WindowsCrtLibDir}x86;$LIB" + + # Windows API headers and libraries. + WindowsSdkIncludeDir='C:\Program Files (x86)\Windows Kits\8.1\Include\' + WindowsSdkLibDir='C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\' + INCLUDE="${WindowsSdkIncludeDir}um;${WindowsSdkIncludeDir}shared;$INCLUDE" + LIB="${WindowsSdkLibDir}x86;$LIB" + + # Visual C++ tools, headers and libraries. + VSINSTALLDIR='C:\Program Files (x86)\Microsoft Visual Studio 14.0' + VCINSTALLDIR="${VSINSTALLDIR}"'\VC' + PATH=`cygpath -u "${VCINSTALLDIR}"`/bin:"$PATH" + INCLUDE="${VCINSTALLDIR}"'\include;'"${INCLUDE}" + LIB="${VCINSTALLDIR}"'\lib;'"${LIB}" + + export INCLUDE LIB + + - for creating 64-bit binaries: through the following bash commands: + + # Set environment variables for using MSVC 14, + # for creating native 64-bit Windows executables. + + # Windows C library headers and libraries. + WindowsCrtIncludeDir='C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt' + WindowsCrtLibDir='C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\' + INCLUDE="${WindowsCrtIncludeDir};$INCLUDE" + LIB="${WindowsCrtLibDir}x64;$LIB" + + # Windows API headers and libraries. + WindowsSdkIncludeDir='C:\Program Files (x86)\Windows Kits\8.1\Include\' + WindowsSdkLibDir='C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\' + INCLUDE="${WindowsSdkIncludeDir}um;${WindowsSdkIncludeDir}shared;$INCLUDE" + LIB="${WindowsSdkLibDir}x64;$LIB" + + # Visual C++ tools, headers and libraries. + VSINSTALLDIR='C:\Program Files (x86)\Microsoft Visual Studio 14.0' + VCINSTALLDIR="${VSINSTALLDIR}"'\VC' + PATH=`cygpath -u "${VCINSTALLDIR}"`/bin/amd64:"$PATH" + INCLUDE="${VCINSTALLDIR}"'\include;'"${INCLUDE}" + LIB="${VCINSTALLDIR}"'\lib\amd64;'"${LIB}" + + export INCLUDE LIB + + Building 32-bit binaries with MSVC is achieved through the following + preparation, configure, and build commands: + + PATH=/usr/local/msvc32/bin:$PATH + export PATH + + win32_target=_WIN32_WINNT_WINXP # for MSVC 9.0 + win32_target=_WIN32_WINNT_VISTA # possibly for MSVC >= 10.0 + win32_target=_WIN32_WINNT_WIN7 # possibly for MSVC >= 10.0 + win32_target=_WIN32_WINNT_WIN8 # possibly for MSVC >= 10.0 + + ./configure --host=i686-w64-mingw32 --prefix=/usr/local/msvc32 \ + CC="$HOME/msvc/compile cl -nologo" \ + CFLAGS="-MD" \ + CXX="$HOME/msvc/compile cl -nologo" \ + CXXFLAGS="-MD" \ + CPPFLAGS="-D_WIN32_WINNT=$win32_target -I/usr/local/msvc32/include" \ + LDFLAGS="-L/usr/local/msvc32/lib" \ + LD="link" \ + NM="dumpbin -symbols" \ + STRIP=":" \ + AR="$HOME/msvc/ar-lib lib" \ + RANLIB=":" + make + make check + + Building 64-bit binaries with MSVC is achieved through the following + preparation, configure, and build commands: + + PATH=/usr/local/msvc64/bin:$PATH + export PATH + + win32_target=_WIN32_WINNT_WINXP # for MSVC 9.0 + win32_target=_WIN32_WINNT_VISTA # possibly for MSVC >= 10.0 + win32_target=_WIN32_WINNT_WIN7 # possibly for MSVC >= 10.0 + win32_target=_WIN32_WINNT_WIN8 # possibly for MSVC >= 10.0 + + ./configure --host=x86_64-w64-mingw32 --prefix=/usr/local/msvc64 \ + CC="$HOME/msvc/compile cl -nologo" \ + CFLAGS="-MD" \ + CXX="$HOME/msvc/compile cl -nologo" \ + CXXFLAGS="-MD" \ + CPPFLAGS="-D_WIN32_WINNT=$win32_target -I/usr/local/msvc64/include" \ + LDFLAGS="-L/usr/local/msvc64/lib" \ + LD="link" \ + NM="dumpbin -symbols" \ + STRIP=":" \ + AR="$HOME/msvc/ar-lib lib" \ + RANLIB=":" + make + make check + + Installation: + + make install + +=============================================================================== +3) Binaries for the Cygwin environment. + + The generic instructions in the INSTALL file apply. But here are more + specific ones. + + You need to install + * Cygwin (from https://cygwin.com/), + * some packages available from the Cygwin package installer: + make + * the Cygwin [cross-]compilation tools package, available from + the Cygwin package installer (setup-x86_64.exe): + - for creating 32-bit binaries: packages + cygwin32-gcc-core, + cygwin32 + - for creating 64-bit binaries: packages + gcc-core + + Building 32-bit binaries for Cygwin must be done in a directory *outside* + the Cygwin /home and /usr hierarchies. It is achieved through the following + preparation, configure, and build commands: + + PATH=/usr/local/cygwin32/bin:/usr/i686-pc-cygwin/sys-root/usr/bin:$PATH + export PATH + ./configure --host=i686-pc-cygwin --prefix=/usr/local/cygwin32 \ + CC=i686-pc-cygwin-gcc \ + CPPFLAGS="-I/usr/local/cygwin32/include -Wall" \ + LDFLAGS="-L/usr/local/cygwin32/lib" + make + make check + + Building 64-bit binaries for Cygwin is achieved through the following + preparation, configure, and build commands: + + PATH=/usr/local/cygwin64/bin:$PATH + export PATH + ./configure --host=x86_64-pc-cygwin --prefix=/usr/local/cygwin64 \ + CC=x86_64-pc-cygwin-gcc \ + CPPFLAGS="-I/usr/local/cygwin64/include -Wall" \ + LDFLAGS="-L/usr/local/cygwin64/lib" + make + make check + + Installation: + + make install + +=============================================================================== +Dependencies: + +This package depends on GNU libiconv. (See the file DEPENDENCIES.) Before +building this package, you need to build GNU libiconv, in the same development +environment, with the same configure options, and install it ("make install"). +=============================================================================== diff --git a/Makefile.am b/Makefile.am index 86a7547..fd39e47 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ ## Makefile for the toplevel directory of GNU libunistring. -## Copyright (C) 2009, 2016 Free Software Foundation, Inc. +## Copyright (C) 2009, 2016, 2018 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -38,4 +38,4 @@ EXTRA_DIST += woe32dll/export.h # Windows support. -EXTRA_DIST += README.windows build-aux/windres-options +EXTRA_DIST += INSTALL.windows build-aux/windres-options diff --git a/Makefile.in b/Makefile.in index ec5f3d8..a354bbe 100644 --- a/Makefile.in +++ b/Makefile.in @@ -886,6 +886,7 @@ HAVE_ISNANF = @HAVE_ISNANF@ HAVE_ISNANL = @HAVE_ISNANL@ HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ +HAVE_LANGINFO_ALTMON = @HAVE_LANGINFO_ALTMON@ HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ @@ -1479,7 +1480,7 @@ SUBDIRS = doc gnulib-local lib tests # Windows support. EXTRA_DIST = version.sh BUGS DEPENDENCIES HACKING autogen.sh \ build-aux/fixaclocal build-aux/texi2html build-aux/run-test \ - gnulib-m4/gnulib-cache.m4 woe32dll/export.h README.windows \ + gnulib-m4/gnulib-cache.m4 woe32dll/export.h INSTALL.windows \ build-aux/windres-options all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive diff --git a/NEWS b/NEWS index b422ca8..40793e7 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +New in 0.9.9: +* Fixed a multithread-safety bug. + New in 0.9.8: * The data tables and line breaking algorithm have been updated to Unicode version 9.0.0. diff --git a/README b/README index 9c65463..889c75b 100644 --- a/README +++ b/README @@ -68,7 +68,7 @@ The documentation is under another license; see in the documentation. Download -------- - https://ftp.gnu.org/gnu/libunistring/libunistring-0.9.7.tar.gz + https://ftp.gnu.org/gnu/libunistring/libunistring-0.9.9.tar.gz Homepage -------- diff --git a/README.windows b/README.windows deleted file mode 100644 index 0d3fb08..0000000 --- a/README.windows +++ /dev/null @@ -1,261 +0,0 @@ -Installation on Microsoft Windows: - -There are three ways to create binaries of this package for Microsoft Windows: -1) Native binaries, built using the mingw tool chain. -2) Native binaries, built using the MS Visual C/C++ tool chain. -3) Binaries for the Cygwin environment. - -=============================================================================== -1) Native binaries, built using the mingw tool chain. - - I recommend to use the Cygwin environment as the development environment - and mingw only as the target (runtime, deployment) environment. - For this, you need to install - * Cygwin (from https://cygwin.com/), - * some packages available from the Cygwin package installer: - make - * the mingw cross-compilation tools and runtime package, available from - the Cygwin package installer (setup-x86_64.exe): - - for creating 32-bit binaries: packages - mingw64-i686-gcc-core, - mingw64-i686-headers, - mingw64-i686-runtime - - for creating 64-bit binaries: packages - mingw64-x86_64-gcc-core, - mingw64-x86_64-headers, - mingw64-x86_64-runtime - - Building 32-bit binaries for mingw is achieved through the following - preparation, configure, and build commands: - - PATH=/usr/local/mingw32/bin:$PATH - export PATH - ./configure --host=i686-w64-mingw32 --prefix=/usr/local/mingw32 \ - CC=i686-w64-mingw32-gcc \ - CPPFLAGS="-I/usr/local/mingw32/include -Wall" \ - LDFLAGS="-L/usr/local/mingw32/lib" - make - make check - - Building 64-bit binaries for mingw is achieved through the following - preparation, configure, and build commands: - - PATH=/usr/local/mingw64/bin:$PATH - export PATH - ./configure --host=x86_64-w64-mingw32 --prefix=/usr/local/mingw64 \ - CC=x86_64-w64-mingw32-gcc \ - CPPFLAGS="-I/usr/local/mingw64/include -Wall" \ - LDFLAGS="-L/usr/local/mingw64/lib" - make - make check - - Installation: - - make install - -=============================================================================== -2) Native binaries, built using the MS Visual C/C++ tool chain. - - Note that binaries created with MSVC have a distribution constraint: They - depend on a closed-source library ('msvcr90.dll' for MSVC 9.0, - 'vcruntime140.dll' for MSVC 14.0, and so on) which is not normally part of - a Windows installation. - You cannot distribute 'vcruntime*.dll' with the binaries - this would be a - violation of the GPL and of the Microsoft EULA. - You can distribute the binaries without including 'vcruntime*.dll'. Users - who don't have this library on their system will require to pull some files - (api-ms-win*.dll) through the Windows Update mechanism, see - https://support.microsoft.com/en-us/kb/2999226 . - - This recipe requires MS Visual C/C++ 9.0 or newer. - You don't need the Visual Studio IDE, just the C/C++ tool chain. - As of 2016, you can install the MS Visual C/C++ 14.0 tool chain from - http://landinghub.visualstudio.com/visual-cpp-build-tools (it's the file - visualcppbuildtools_full.exe). - - This recipe requires also a Cygwin environment (with 'bash', the common POSIX - commands, and 'make') as a build environment. Building with 'nmake' is not - supported. - For this, you need to install - * Cygwin (from https://cygwin.com/), - * some packages available from the Cygwin package installer: - make - - You also need the scripts 'ar-lib' and 'compile' from - http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;f=lib/ar-lib;hb=HEAD - http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;f=lib/compile;hb=HEAD - respectively. - They may also be included in this package, in directory 'build-aux/'. - Save them; the instructions below assume that you stored them in $HOME/msvc/. - Make them executable: - chmod a+x ar-lib compile - - Start a bash (from Cygwin). - - Make sure that the MSVC tools ("cl" etc.) are found in PATH and the - environment variables INCLUDE and LIB are set appropriately. - In a typical MSVC 9.0 installation, it can be achieved by running - C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat - In a typical MSVC 14.0 installation on Windows 10, it can be achieved - - for creating 32-bit binaries: through the following bash commands: - - # Set environment variables for using MSVC 14, - # for creating native 32-bit Windows executables. - - # Windows C library headers and libraries. - WindowsCrtIncludeDir='C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt' - WindowsCrtLibDir='C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\' - INCLUDE="${WindowsCrtIncludeDir};$INCLUDE" - LIB="${WindowsCrtLibDir}x86;$LIB" - - # Windows API headers and libraries. - WindowsSdkIncludeDir='C:\Program Files (x86)\Windows Kits\8.1\Include\' - WindowsSdkLibDir='C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\' - INCLUDE="${WindowsSdkIncludeDir}um;${WindowsSdkIncludeDir}shared;$INCLUDE" - LIB="${WindowsSdkLibDir}x86;$LIB" - - # Visual C++ tools, headers and libraries. - VSINSTALLDIR='C:\Program Files (x86)\Microsoft Visual Studio 14.0' - VCINSTALLDIR="${VSINSTALLDIR}"'\VC' - PATH=`cygpath -u "${VCINSTALLDIR}"`/bin:"$PATH" - INCLUDE="${VCINSTALLDIR}"'\include;'"${INCLUDE}" - LIB="${VCINSTALLDIR}"'\lib;'"${LIB}" - - export INCLUDE LIB - - - for creating 64-bit binaries: through the following bash commands: - - # Set environment variables for using MSVC 14, - # for creating native 64-bit Windows executables. - - # Windows C library headers and libraries. - WindowsCrtIncludeDir='C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt' - WindowsCrtLibDir='C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\' - INCLUDE="${WindowsCrtIncludeDir};$INCLUDE" - LIB="${WindowsCrtLibDir}x64;$LIB" - - # Windows API headers and libraries. - WindowsSdkIncludeDir='C:\Program Files (x86)\Windows Kits\8.1\Include\' - WindowsSdkLibDir='C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\' - INCLUDE="${WindowsSdkIncludeDir}um;${WindowsSdkIncludeDir}shared;$INCLUDE" - LIB="${WindowsSdkLibDir}x64;$LIB" - - # Visual C++ tools, headers and libraries. - VSINSTALLDIR='C:\Program Files (x86)\Microsoft Visual Studio 14.0' - VCINSTALLDIR="${VSINSTALLDIR}"'\VC' - PATH=`cygpath -u "${VCINSTALLDIR}"`/bin/amd64:"$PATH" - INCLUDE="${VCINSTALLDIR}"'\include;'"${INCLUDE}" - LIB="${VCINSTALLDIR}"'\lib\amd64;'"${LIB}" - - export INCLUDE LIB - - Building 32-bit binaries with MSVC is achieved through the following - preparation, configure, and build commands: - - PATH=/usr/local/msvc32/bin:$PATH - export PATH - - win32_target=_WIN32_WINNT_WINXP # for MSVC 9.0 - win32_target=_WIN32_WINNT_VISTA # possibly for MSVC >= 10.0 - win32_target=_WIN32_WINNT_WIN7 # possibly for MSVC >= 10.0 - win32_target=_WIN32_WINNT_WIN8 # possibly for MSVC >= 10.0 - - ./configure --host=i686-w64-mingw32 --prefix=/usr/local/msvc32 \ - CC="$HOME/msvc/compile cl -nologo" \ - CFLAGS="-MD" \ - CXX="$HOME/msvc/compile cl -nologo" \ - CXXFLAGS="-MD" \ - CPPFLAGS="-D_WIN32_WINNT=$win32_target -I/usr/local/msvc32/include" \ - LDFLAGS="-L/usr/local/msvc32/lib" \ - LD="link" \ - NM="dumpbin -symbols" \ - STRIP=":" \ - AR="$HOME/msvc/ar-lib lib" \ - RANLIB=":" - make - make check - - Building 64-bit binaries with MSVC is achieved through the following - preparation, configure, and build commands: - - PATH=/usr/local/msvc64/bin:$PATH - export PATH - - win32_target=_WIN32_WINNT_WINXP # for MSVC 9.0 - win32_target=_WIN32_WINNT_VISTA # possibly for MSVC >= 10.0 - win32_target=_WIN32_WINNT_WIN7 # possibly for MSVC >= 10.0 - win32_target=_WIN32_WINNT_WIN8 # possibly for MSVC >= 10.0 - - ./configure --host=x86_64-w64-mingw32 --prefix=/usr/local/msvc64 \ - CC="$HOME/msvc/compile cl -nologo" \ - CFLAGS="-MD" \ - CXX="$HOME/msvc/compile cl -nologo" \ - CXXFLAGS="-MD" \ - CPPFLAGS="-D_WIN32_WINNT=$win32_target -I/usr/local/msvc64/include" \ - LDFLAGS="-L/usr/local/msvc64/lib" \ - LD="link" \ - NM="dumpbin -symbols" \ - STRIP=":" \ - AR="$HOME/msvc/ar-lib lib" \ - RANLIB=":" - make - make check - - Installation: - - make install - -=============================================================================== -3) Binaries for the Cygwin environment. - - The generic instructions in the INSTALL file apply. But here are more - specific ones. - - You need to install - * Cygwin (from https://cygwin.com/), - * some packages available from the Cygwin package installer: - make - * the Cygwin [cross-]compilation tools package, available from - the Cygwin package installer (setup-x86_64.exe): - - for creating 32-bit binaries: packages - cygwin32-gcc-core, - cygwin32 - - for creating 64-bit binaries: packages - gcc-core - - Building 32-bit binaries for Cygwin must be done in a directory *outside* - the Cygwin /home and /usr hierarchies. It is achieved through the following - preparation, configure, and build commands: - - PATH=/usr/local/cygwin32/bin:/usr/i686-pc-cygwin/sys-root/usr/bin:$PATH - export PATH - ./configure --host=i686-pc-cygwin --prefix=/usr/local/cygwin32 \ - CC=i686-pc-cygwin-gcc \ - CPPFLAGS="-I/usr/local/cygwin32/include -Wall" \ - LDFLAGS="-L/usr/local/cygwin32/lib" - make - make check - - Building 64-bit binaries for Cygwin is achieved through the following - preparation, configure, and build commands: - - PATH=/usr/local/cygwin64/bin:$PATH - export PATH - ./configure --host=x86_64-pc-cygwin --prefix=/usr/local/cygwin64 \ - CC=x86_64-pc-cygwin-gcc \ - CPPFLAGS="-I/usr/local/cygwin64/include -Wall" \ - LDFLAGS="-L/usr/local/cygwin64/lib" - make - make check - - Installation: - - make install - -=============================================================================== -Dependencies: - -This package depends on GNU libiconv. (See the file DEPENDENCIES.) Before -building this package, you need to build GNU libiconv, in the same development -environment, with the same configure options, and install it ("make install"). -=============================================================================== diff --git a/build-aux/config.guess b/build-aux/config.guess index 31e01ef..f50dcdb 100755 --- a/build-aux/config.guess +++ b/build-aux/config.guess @@ -1,8 +1,8 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2017 Free Software Foundation, Inc. +# Copyright 1992-2018 Free Software Foundation, Inc. -timestamp='2017-11-07' +timestamp='2018-02-24' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -50,7 +50,7 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2017 Free Software Foundation, Inc. +Copyright 1992-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -107,9 +107,9 @@ trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; + ,,) echo "int x;" > "$dummy.c" ; for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; @@ -132,14 +132,14 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown -case "${UNAME_SYSTEM}" in +case "$UNAME_SYSTEM" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu - eval $set_cc_for_build - cat <<-EOF > $dummy.c + eval "$set_cc_for_build" + cat <<-EOF > "$dummy.c" #include #if defined(__UCLIBC__) LIBC=uclibc @@ -149,13 +149,20 @@ Linux|GNU|GNU/*) LIBC=gnu #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" + + # If ldd exists, use it to detect musl libc. + if command -v ldd >/dev/null && \ + ldd --version 2>&1 | grep -q ^musl + then + LIBC=musl + fi ;; esac # Note: order is significant - the case branches are not exclusive. -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in +case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, @@ -169,30 +176,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ - /sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || \ + "/sbin/$sysctl" 2>/dev/null || \ + "/usr/sbin/$sysctl" 2>/dev/null || \ echo unknown)` - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) - arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` - endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` - machine=${arch}${endian}-unknown + arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` + endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` + machine="${arch}${endian}"-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + *) machine="$UNAME_MACHINE_ARCH"-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build + eval "$set_cc_for_build" if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then @@ -208,10 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in ;; esac # Determine ABI tags. - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' - abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` + abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release @@ -219,52 +226,55 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in + case "$UNAME_VERSION" in Debian*) release='-gnu' ;; *) - release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` + release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}${abi}" + echo "$machine-${os}${release}${abi}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" exit ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) - echo ${UNAME_MACHINE}-unknown-midnightbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" exit ;; *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" exit ;; *:SolidBSD:*:*) - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" exit ;; macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd${UNAME_RELEASE} + echo powerpc-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:Sortix:*:*) - echo ${UNAME_MACHINE}-unknown-sortix + echo "$UNAME_MACHINE"-unknown-sortix exit ;; *:Redox:*:*) - echo ${UNAME_MACHINE}-unknown-redox + echo "$UNAME_MACHINE"-unknown-redox exit ;; + mips:OSF1:*.*) + echo mips-dec-osf1 + exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) @@ -316,7 +326,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 @@ -325,10 +335,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos + echo "$UNAME_MACHINE"-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos + echo "$UNAME_MACHINE"-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition @@ -340,7 +350,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} + echo arm-acorn-riscix"$UNAME_RELEASE" exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos @@ -367,19 +377,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - echo i386-pc-auroraux${UNAME_RELEASE} + echo i386-pc-auroraux"$UNAME_RELEASE" exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval $set_cc_for_build + eval "$set_cc_for_build" SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. @@ -392,13 +402,13 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in SUN_ARCH=x86_64 fi fi - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in @@ -407,25 +417,25 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" exit ;; sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} + echo m68k-sun-sunos"$UNAME_RELEASE" exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 + test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) - echo m68k-sun-sunos${UNAME_RELEASE} + echo m68k-sun-sunos"$UNAME_RELEASE" ;; sun4) - echo sparc-sun-sunos${UNAME_RELEASE} + echo sparc-sun-sunos"$UNAME_RELEASE" ;; esac exit ;; aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} + echo sparc-auspex-sunos"$UNAME_RELEASE" exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not @@ -436,44 +446,44 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} + echo m68k-milan-mint"$UNAME_RELEASE" exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} + echo m68k-hades-mint"$UNAME_RELEASE" exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} + echo m68k-unknown-mint"$UNAME_RELEASE" exit ;; m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} + echo m68k-apple-machten"$UNAME_RELEASE" exit ;; powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} + echo powerpc-apple-machten"$UNAME_RELEASE" exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} + echo mips-dec-ultrix"$UNAME_RELEASE" exit ;; VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} + echo vax-dec-ultrix"$UNAME_RELEASE" exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} + echo clipper-intergraph-clix"$UNAME_RELEASE" exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { @@ -494,11 +504,11 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in exit (-1); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && + dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos${UNAME_RELEASE} + echo mips-mips-riscos"$UNAME_RELEASE" exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax @@ -524,17 +534,17 @@ EOF AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] + if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ + [ "$TARGET_BINARY_INTERFACE"x = x ] then - echo m88k-dg-dgux${UNAME_RELEASE} + echo m88k-dg-dgux"$UNAME_RELEASE" else - echo m88k-dg-dguxbcs${UNAME_RELEASE} + echo m88k-dg-dguxbcs"$UNAME_RELEASE" fi else - echo i586-dg-dgux${UNAME_RELEASE} + echo i586-dg-dgux"$UNAME_RELEASE" fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) @@ -551,7 +561,7 @@ EOF echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id @@ -563,14 +573,14 @@ EOF if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #include main() @@ -581,7 +591,7 @@ EOF exit(0); } EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then echo "$SYSTEM_NAME" else @@ -595,7 +605,7 @@ EOF exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc @@ -604,9 +614,9 @@ EOF IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} + echo "$IBM_ARCH"-ibm-aix"$IBM_REV" exit ;; *:AIX:*:*) echo rs6000-ibm-aix @@ -615,7 +625,7 @@ EOF echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx @@ -630,28 +640,28 @@ EOF echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in + HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + case "$UNAME_MACHINE" in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in + case "$sc_cpu_version" in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in + case "$sc_kernel_bits" in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + if [ "$HP_ARCH" = "" ]; then + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include @@ -684,13 +694,13 @@ EOF exit (0); } EOF - (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac - if [ ${HP_ARCH} = hppa2.0w ] + if [ "$HP_ARCH" = hppa2.0w ] then - eval $set_cc_for_build + eval "$set_cc_for_build" # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler @@ -709,15 +719,15 @@ EOF HP_ARCH=hppa64 fi fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} + echo "$HP_ARCH"-hp-hpux"$HPUX_REV" exit ;; ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} + HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux"$HPUX_REV" exit ;; 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #include int main () @@ -742,7 +752,7 @@ EOF exit (0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; @@ -763,9 +773,9 @@ EOF exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk + echo "$UNAME_MACHINE"-unknown-osf1mk else - echo ${UNAME_MACHINE}-unknown-osf1 + echo "$UNAME_MACHINE"-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) @@ -790,109 +800,109 @@ EOF echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" exit ;; sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} + echo sparc-unknown-bsdi"$UNAME_RELEASE" exit ;; *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` - case ${UNAME_PROCESSOR} in + case "$UNAME_PROCESSOR" in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin + echo "$UNAME_MACHINE"-pc-cygwin exit ;; *:MINGW64*:*) - echo ${UNAME_MACHINE}-pc-mingw64 + echo "$UNAME_MACHINE"-pc-mingw64 exit ;; *:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 + echo "$UNAME_MACHINE"-pc-mingw32 exit ;; *:MSYS*:*) - echo ${UNAME_MACHINE}-pc-msys + echo "$UNAME_MACHINE"-pc-msys exit ;; i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 + echo "$UNAME_MACHINE"-pc-pw32 exit ;; *:Interix*:*) - case ${UNAME_MACHINE} in + case "$UNAME_MACHINE" in x86) - echo i586-pc-interix${UNAME_RELEASE} + echo i586-pc-interix"$UNAME_RELEASE" exit ;; authenticamd | genuineintel | EM64T) - echo x86_64-unknown-interix${UNAME_RELEASE} + echo x86_64-unknown-interix"$UNAME_RELEASE" exit ;; IA64) - echo ia64-unknown-interix${UNAME_RELEASE} + echo ia64-unknown-interix"$UNAME_RELEASE" exit ;; esac ;; i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin + echo "$UNAME_MACHINE"-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; *:GNU:*:*) # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" exit ;; i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix + echo "$UNAME_MACHINE"-pc-minix exit ;; aarch64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in @@ -906,63 +916,63 @@ EOF esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arc:Linux:*:* | arceb:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arm*:Linux:*:*) - eval $set_cc_for_build + eval "$set_cc_for_build" if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi else - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf fi fi exit ;; avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; cris:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} + echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; crisv32:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} + echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; e2k:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; frv:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; hexagon:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:Linux:*:*) - echo ${UNAME_MACHINE}-pc-linux-${LIBC} + echo "$UNAME_MACHINE"-pc-linux-"$LIBC" exit ;; ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; k1om:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; mips:Linux:*:* | mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el @@ -976,70 +986,74 @@ EOF #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" + test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } ;; mips64el:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; openrisc*:Linux:*:*) - echo or1k-unknown-linux-${LIBC} + echo or1k-unknown-linux-"$LIBC" exit ;; or32:Linux:*:* | or1k*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; padre:Linux:*:*) - echo sparc-unknown-linux-${LIBC} + echo sparc-unknown-linux-"$LIBC" exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-${LIBC} + echo hppa64-unknown-linux-"$LIBC" exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; - PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; - *) echo hppa-unknown-linux-${LIBC} ;; + PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; + PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; + *) echo hppa-unknown-linux-"$LIBC" ;; esac exit ;; ppc64:Linux:*:*) - echo powerpc64-unknown-linux-${LIBC} + echo powerpc64-unknown-linux-"$LIBC" exit ;; ppc:Linux:*:*) - echo powerpc-unknown-linux-${LIBC} + echo powerpc-unknown-linux-"$LIBC" exit ;; ppc64le:Linux:*:*) - echo powerpc64le-unknown-linux-${LIBC} + echo powerpc64le-unknown-linux-"$LIBC" exit ;; ppcle:Linux:*:*) - echo powerpcle-unknown-linux-${LIBC} + echo powerpcle-unknown-linux-"$LIBC" exit ;; riscv32:Linux:*:* | riscv64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" exit ;; sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; tile*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-${LIBC} + echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; x86_64:Linux:*:*) - echo ${UNAME_MACHINE}-pc-linux-${LIBC} + if objdump -f /bin/sh | grep -q elf32-x86-64; then + echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32 + else + echo "$UNAME_MACHINE"-pc-linux-"$LIBC" + fi exit ;; xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. @@ -1053,34 +1067,34 @@ EOF # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx + echo "$UNAME_MACHINE"-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop + echo "$UNAME_MACHINE"-unknown-stop exit ;; i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos + echo "$UNAME_MACHINE"-unknown-atheos exit ;; i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable + echo "$UNAME_MACHINE"-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} + echo i386-unknown-lynxos"$UNAME_RELEASE" exit ;; i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp + echo "$UNAME_MACHINE"-pc-msdosdjgpp exit ;; i*86:*:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" fi exit ;; i*86:*:5:[678]*) @@ -1090,12 +1104,12 @@ EOF *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 @@ -1105,9 +1119,9 @@ EOF && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" else - echo ${UNAME_MACHINE}-pc-sysv32 + echo "$UNAME_MACHINE"-pc-sysv32 fi exit ;; pc:*:*:*) @@ -1127,9 +1141,9 @@ EOF exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) @@ -1149,9 +1163,9 @@ EOF test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; @@ -1160,28 +1174,28 @@ EOF test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} + echo m68k-unknown-lynxos"$UNAME_RELEASE" exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} + echo sparc-unknown-lynxos"$UNAME_RELEASE" exit ;; rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} + echo rs6000-unknown-lynxos"$UNAME_RELEASE" exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} + echo powerpc-unknown-lynxos"$UNAME_RELEASE" exit ;; SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} + echo mips-dde-sysv"$UNAME_RELEASE" exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 @@ -1192,7 +1206,7 @@ EOF *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 + echo "$UNAME_MACHINE"-sni-sysv4 else echo ns32k-sni-sysv fi @@ -1212,23 +1226,23 @@ EOF exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos + echo "$UNAME_MACHINE"-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} + echo m68k-apple-aux"$UNAME_RELEASE" exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} + echo mips-nec-sysv"$UNAME_RELEASE" else - echo mips-unknown-sysv${UNAME_RELEASE} + echo mips-unknown-sysv"$UNAME_RELEASE" fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. @@ -1247,39 +1261,39 @@ EOF echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} + echo sx4-nec-superux"$UNAME_RELEASE" exit ;; SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} + echo sx5-nec-superux"$UNAME_RELEASE" exit ;; SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} + echo sx6-nec-superux"$UNAME_RELEASE" exit ;; SX-7:SUPER-UX:*:*) - echo sx7-nec-superux${UNAME_RELEASE} + echo sx7-nec-superux"$UNAME_RELEASE" exit ;; SX-8:SUPER-UX:*:*) - echo sx8-nec-superux${UNAME_RELEASE} + echo sx8-nec-superux"$UNAME_RELEASE" exit ;; SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux${UNAME_RELEASE} + echo sx8r-nec-superux"$UNAME_RELEASE" exit ;; SX-ACE:SUPER-UX:*:*) - echo sxace-nec-superux${UNAME_RELEASE} + echo sxace-nec-superux"$UNAME_RELEASE" exit ;; Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} + echo powerpc-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - eval $set_cc_for_build + eval "$set_cc_for_build" if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi - if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then + if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ @@ -1307,7 +1321,7 @@ EOF # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` @@ -1315,22 +1329,25 @@ EOF UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-*:NONSTOP_KERNEL:*:*) - echo neo-tandem-nsk${UNAME_RELEASE} + echo neo-tandem-nsk"$UNAME_RELEASE" exit ;; NSE-*:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} + echo nse-tandem-nsk"$UNAME_RELEASE" exit ;; NSR-*:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} + echo nsr-tandem-nsk"$UNAME_RELEASE" + exit ;; + NSV-*:NONSTOP_KERNEL:*:*) + echo nsv-tandem-nsk"$UNAME_RELEASE" exit ;; NSX-*:NONSTOP_KERNEL:*:*) - echo nsx-tandem-nsk${UNAME_RELEASE} + echo nsx-tandem-nsk"$UNAME_RELEASE" exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux @@ -1339,7 +1356,7 @@ EOF echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 @@ -1350,7 +1367,7 @@ EOF else UNAME_MACHINE="$cputype" fi - echo ${UNAME_MACHINE}-unknown-plan9 + echo "$UNAME_MACHINE"-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 @@ -1371,14 +1388,14 @@ EOF echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} + echo mips-sei-seiux"$UNAME_RELEASE" exit ;; *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in + case "$UNAME_MACHINE" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; @@ -1387,16 +1404,16 @@ EOF echo i386-pc-xenix exit ;; i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` + echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" exit ;; i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos + echo "$UNAME_MACHINE"-pc-rdos exit ;; i*86:AROS:*:*) - echo ${UNAME_MACHINE}-pc-aros + echo "$UNAME_MACHINE"-pc-aros exit ;; x86_64:VMkernel:*:*) - echo ${UNAME_MACHINE}-unknown-esx + echo "$UNAME_MACHINE"-unknown-esx exit ;; amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs @@ -1405,7 +1422,7 @@ esac echo "$0: unable to guess system type" >&2 -case "${UNAME_MACHINE}:${UNAME_SYSTEM}" in +case "$UNAME_MACHINE:$UNAME_SYSTEM" in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 </dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} +UNAME_MACHINE = "$UNAME_MACHINE" +UNAME_RELEASE = "$UNAME_RELEASE" +UNAME_SYSTEM = "$UNAME_SYSTEM" +UNAME_VERSION = "$UNAME_VERSION" EOF exit 1 diff --git a/build-aux/config.rpath b/build-aux/config.rpath index af3c415..fc5913d 100755 --- a/build-aux/config.rpath +++ b/build-aux/config.rpath @@ -2,7 +2,7 @@ # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # -# Copyright 1996-2017 Free Software Foundation, Inc. +# Copyright 1996-2018 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # diff --git a/build-aux/config.sub b/build-aux/config.sub index 00f68b8..1d8e98b 100755 --- a/build-aux/config.sub +++ b/build-aux/config.sub @@ -1,8 +1,8 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2017 Free Software Foundation, Inc. +# Copyright 1992-2018 Free Software Foundation, Inc. -timestamp='2017-11-23' +timestamp='2018-02-22' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -67,7 +67,7 @@ Report bugs and patches to ." version="\ GNU config.sub ($timestamp) -Copyright 1992-2017 Free Software Foundation, Inc. +Copyright 1992-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -94,7 +94,7 @@ while test $# -gt 0 ; do *local*) # First pass through any local machine types. - echo $1 + echo "$1" exit ;; * ) @@ -112,7 +112,7 @@ esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ @@ -120,16 +120,16 @@ case $maybe_os in kopensolaris*-gnu* | cloudabi*-eabi* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` + basic_machine=`echo "$1" | sed 's/-[^-]*$//'` + if [ "$basic_machine" != "$1" ] + then os=`echo "$1" | sed 's/.*-/-/'` else os=; fi ;; esac @@ -178,44 +178,44 @@ case $os in ;; -sco6) os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 @@ -227,7 +227,7 @@ case $os in os=-lynxos ;; -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` ;; -psos*) os=-psos @@ -296,7 +296,7 @@ case $basic_machine in | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ - | pdp10 | pdp11 | pj | pjl \ + | pdp10 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pru \ | pyramid \ @@ -333,7 +333,7 @@ case $basic_machine in basic_machine=$basic_machine-unknown os=-none ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) ;; ms1) basic_machine=mt-unknown @@ -362,7 +362,7 @@ case $basic_machine in ;; # Object if more than one company name word. *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. @@ -457,7 +457,7 @@ case $basic_machine in # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) - basic_machine=i386-unknown + basic_machine=i386-pc os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) @@ -491,7 +491,7 @@ case $basic_machine in basic_machine=x86_64-pc ;; amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl @@ -536,7 +536,7 @@ case $basic_machine in os=-linux ;; blackfin-*) - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) @@ -544,13 +544,13 @@ case $basic_machine in os=-cnk ;; c54x-*) - basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c55x-*) - basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c6x-*) - basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray @@ -648,7 +648,7 @@ case $basic_machine in os=$os"spe" ;; e500v[12]-*) - basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=$os"spe" ;; ebmon29k) @@ -740,9 +740,6 @@ case $basic_machine in hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; - hppa-next) - os=-nextstep3 - ;; hppaosf) basic_machine=hppa1.1-hp os=-osf @@ -755,26 +752,26 @@ case $basic_machine in basic_machine=i370-ibm ;; i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; - i386-vsta | vsta) + vsta) basic_machine=i386-unknown os=-vsta ;; @@ -793,19 +790,16 @@ case $basic_machine in os=-sysv ;; leon-*|leon[3-9]-*) - basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` + basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; - m88k-omron*) - basic_machine=m88k-omron - ;; magnum | m3230) basic_machine=mips-mips os=-sysv @@ -837,10 +831,10 @@ case $basic_machine in os=-mint ;; mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` ;; mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k @@ -859,7 +853,7 @@ case $basic_machine in os=-msdos ;; ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc @@ -946,6 +940,9 @@ case $basic_machine in nsr-tandem) basic_machine=nsr-tandem ;; + nsv-tandem) + basic_machine=nsv-tandem + ;; nsx-tandem) basic_machine=nsx-tandem ;; @@ -981,7 +978,7 @@ case $basic_machine in os=-linux ;; parisc-*) - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; pbd) @@ -997,7 +994,7 @@ case $basic_machine in basic_machine=i386-pc ;; pc98-*) - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc @@ -1012,16 +1009,16 @@ case $basic_machine in basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould @@ -1031,23 +1028,23 @@ case $basic_machine in ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) - basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm @@ -1101,17 +1098,10 @@ case $basic_machine in sequent) basic_machine=i386-sequent ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; sh5el) basic_machine=sh5le-unknown ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) + simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; @@ -1130,7 +1120,7 @@ case $basic_machine in os=-sysv4 ;; strongarm-* | thumb-*) - basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun @@ -1244,9 +1234,6 @@ case $basic_machine in basic_machine=a29k-wrs os=-vxworks ;; - wasm32) - basic_machine=wasm32-unknown - ;; w65*) basic_machine=w65-wdc os=-none @@ -1266,20 +1253,12 @@ case $basic_machine in basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) - basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - z80-*-coff) - basic_machine=z80-unknown - os=-sim - ;; none) basic_machine=none-none os=-none @@ -1308,10 +1287,6 @@ case $basic_machine in vax) basic_machine=vax-dec ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; pdp11) basic_machine=pdp11-dec ;; @@ -1321,9 +1296,6 @@ case $basic_machine in sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) - basic_machine=sparc-sun - ;; cydra) basic_machine=cydra-cydrome ;; @@ -1343,7 +1315,7 @@ case $basic_machine in # Make sure to match an already-canonicalized machine name. ;; *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 ;; esac @@ -1351,10 +1323,10 @@ esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` ;; *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` ;; *) ;; @@ -1377,15 +1349,16 @@ case $os in -solaris) os=-solaris2 ;; - -svr4*) - os=-sysv4 - ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; + # es1800 is here to avoid being matched by es* (a different OS) + -es1800*) + os=-ose + ;; # Now accept the basic system types. # The portable systems comes first. # Each alternative MUST end in a * to match a version number. @@ -1398,7 +1371,7 @@ case $os in | -aos* | -aros* | -cloudabi* | -sortix* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ @@ -1409,14 +1382,15 @@ case $os in | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -morphos* | -superux* | -rtmk* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ - | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*) + | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ + | -midnightbsd*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1433,12 +1407,12 @@ case $os in -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + -sim | -xray | -os68k* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) - os=`echo $os | sed -e 's|mac|macos|'` + os=`echo "$os" | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc @@ -1447,10 +1421,10 @@ case $os in os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` + os=`echo "$os" | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` + os=`echo "$os" | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition @@ -1461,12 +1435,6 @@ case $os in -wince*) os=-wince ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; -utek*) os=-bsd ;; @@ -1513,7 +1481,7 @@ case $os in -oss*) os=-sysv3 ;; - -svr4) + -svr4*) os=-sysv4 ;; -svr3) @@ -1528,18 +1496,9 @@ case $os in -ose*) os=-ose ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; - -aros*) - os=-aros - ;; -zvmoe) os=-zvmoe ;; @@ -1568,7 +1527,7 @@ case $os in *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 exit 1 ;; esac @@ -1664,9 +1623,6 @@ case $basic_machine in *-be) os=-beos ;; - *-haiku) - os=-haiku - ;; *-ibm) os=-aix ;; @@ -1721,9 +1677,6 @@ case $basic_machine in i370-*) os=-mvs ;; - *-next) - os=-nextstep3 - ;; *-gould) os=-sysv ;; @@ -1833,11 +1786,11 @@ case $basic_machine in vendor=stratus ;; esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` ;; esac -echo $basic_machine$os +echo "$basic_machine$os" exit # Local variables: diff --git a/config.h.in b/config.h.in index 445c1e0..a414c2f 100644 --- a/config.h.in +++ b/config.h.in @@ -1859,6 +1859,11 @@ #ifndef _XOPEN_SOURCE # undef _XOPEN_SOURCE #endif +/* Enable X/Open compliant socket functions that do not require linking + with -lxnet on HP-UX 11.11. */ +#ifndef _HPUX_ALT_XOPEN_SOCKET_API +# undef _HPUX_ALT_XOPEN_SOCKET_API +#endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ diff --git a/configure b/configure index 695b57c..ee83f88 100755 --- a/configure +++ b/configure @@ -2289,6 +2289,7 @@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H NEXT_LIMITS_H HAVE_LANGINFO_YESEXPR HAVE_LANGINFO_ERA +HAVE_LANGINFO_ALTMON HAVE_LANGINFO_T_FMT_AMPM HAVE_LANGINFO_CODESET HAVE_LANGINFO_H @@ -6817,6 +6818,8 @@ $as_echo "$ac_cv_should_define__xopen_source" >&6; } test $ac_cv_should_define__xopen_source = yes && $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h + $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h + @@ -17613,7 +17616,7 @@ else ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } >/dev/null 2>&1 - if LC_ALL=C grep -E 'd0,' conftest.$gl_asmext >/dev/null; then + if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then gl_cv_host_cpu_c_abi=armhf else gl_cv_host_cpu_c_abi=arm @@ -21707,7 +21710,7 @@ else if test "$cross_compiling" = yes; then : case "$host_os" in # Guess yes on platforms where we know the result. - *-gnu* | freebsd* | netbsd* | openbsd* \ + *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \ | hpux* | solaris* | cygwin* | mingw*) ac_cv_func_malloc_0_nonnull=yes ;; # If we don't know, assume the worst. @@ -24694,7 +24697,7 @@ else if test "$cross_compiling" = yes; then : case "$host_os" in # Guess yes on glibc systems. - *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; + *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on FreeBSD >= 5. freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";; freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; @@ -24920,7 +24923,7 @@ else case "$host_os" in # Guess yes on glibc systems. - *-gnu*) gl_cv_func_printf_infinite="guessing yes";; + *-gnu* | gnu*) gl_cv_func_printf_infinite="guessing yes";; # Guess yes on FreeBSD >= 6. freebsd[1-5].*) gl_cv_func_printf_infinite="guessing no";; freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";; @@ -25068,7 +25071,7 @@ else *) case "$host_os" in # Guess yes on glibc systems. - *-gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";; + *-gnu* | gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";; # Guess yes on FreeBSD >= 6. freebsd[1-5].*) gl_cv_func_printf_infinite_long_double="guessing no";; freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; @@ -25396,7 +25399,7 @@ else case "$host_os" in # Guess yes on glibc >= 2.5 systems. - *-gnu*) + *-gnu* | gnu*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -25509,7 +25512,7 @@ else case "$host_os" in # Guess yes on glibc systems. - *-gnu*) gl_cv_func_printf_directive_f="guessing yes";; + *-gnu* | gnu*) gl_cv_func_printf_directive_f="guessing yes";; # Guess yes on FreeBSD >= 6. freebsd[1-5].*) gl_cv_func_printf_directive_f="guessing no";; freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";; @@ -25777,14 +25780,14 @@ else if test "$cross_compiling" = yes; then : case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_printf_flag_zero="guessing yes";; - # Guess yes on BeOS. - beos*) gl_cv_func_printf_flag_zero="guessing yes";; - # Guess no on native Windows. - mingw*) gl_cv_func_printf_flag_zero="guessing no";; - # If we don't know, assume the worst. - *) gl_cv_func_printf_flag_zero="guessing no";; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_printf_flag_zero="guessing yes";; + # Guess yes on BeOS. + beos*) gl_cv_func_printf_flag_zero="guessing yes";; + # Guess no on native Windows. + mingw*) gl_cv_func_printf_flag_zero="guessing no";; + # If we don't know, assume the worst. + *) gl_cv_func_printf_flag_zero="guessing no";; esac else @@ -26078,28 +26081,28 @@ _ACEOF fi if test "$gl_cv_func_printf_enomem" = "guessing no"; then case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_printf_enomem="guessing yes";; - # Guess yes on Solaris. - solaris*) gl_cv_func_printf_enomem="guessing yes";; - # Guess yes on AIX. - aix*) gl_cv_func_printf_enomem="guessing yes";; - # Guess yes on HP-UX/hppa. - hpux*) case "$host_cpu" in - hppa*) gl_cv_func_printf_enomem="guessing yes";; - *) gl_cv_func_printf_enomem="guessing no";; - esac - ;; - # Guess yes on IRIX. - irix*) gl_cv_func_printf_enomem="guessing yes";; - # Guess yes on OSF/1. - osf*) gl_cv_func_printf_enomem="guessing yes";; - # Guess yes on BeOS. - beos*) gl_cv_func_printf_enomem="guessing yes";; - # Guess yes on Haiku. - haiku*) gl_cv_func_printf_enomem="guessing yes";; - # If we don't know, assume the worst. - *) gl_cv_func_printf_enomem="guessing no";; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on Solaris. + solaris*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on AIX. + aix*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on HP-UX/hppa. + hpux*) case "$host_cpu" in + hppa*) gl_cv_func_printf_enomem="guessing yes";; + *) gl_cv_func_printf_enomem="guessing no";; + esac + ;; + # Guess yes on IRIX. + irix*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on OSF/1. + osf*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on BeOS. + beos*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on Haiku. + haiku*) gl_cv_func_printf_enomem="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_printf_enomem="guessing no";; esac fi @@ -27004,12 +27007,12 @@ if ${gl_cv_func_strerror_0_works+:} false; then : else if test "$cross_compiling" = yes; then : case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; - # Guess yes on native Windows. - mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; - # If we don't know, assume the worst. - *) gl_cv_func_strerror_0_works="guessing no" ;; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; + # Guess yes on native Windows. + mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_strerror_0_works="guessing no" ;; esac else @@ -29259,12 +29262,13 @@ $as_echo "$gl_cv_next_langinfo_h" >&6; } HAVE_LANGINFO_CODESET=0 HAVE_LANGINFO_T_FMT_AMPM=0 + HAVE_LANGINFO_ALTMON=0 HAVE_LANGINFO_ERA=0 HAVE_LANGINFO_YESEXPR=0 if test $ac_cv_header_langinfo_h = yes; then HAVE_LANGINFO_H=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; } if ${gl_cv_header_langinfo_codeset+:} false; then : $as_echo_n "(cached) " >&6 @@ -29326,6 +29330,37 @@ $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; } if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then HAVE_LANGINFO_T_FMT_AMPM=1 fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5 +$as_echo_n "checking whether langinfo.h defines ALTMON_1... " >&6; } +if ${gl_cv_header_langinfo_altmon+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int a = ALTMON_1; + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_langinfo_altmon=yes +else + gl_cv_header_langinfo_altmon=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5 +$as_echo "$gl_cv_header_langinfo_altmon" >&6; } + if test $gl_cv_header_langinfo_altmon = yes; then + HAVE_LANGINFO_ALTMON=1 + fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; } if ${gl_cv_header_langinfo_era+:} false; then : @@ -29398,6 +29433,7 @@ $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; } + for gl_func in nl_langinfo; do as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 @@ -29452,6 +29488,7 @@ fi + for ac_func in setlocale uselocale do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` @@ -30456,12 +30493,11 @@ if ${gl_cv_func_mbrtowc_empty_input+:} false; then : else case "$host_os" in - # Guess no on AIX and glibc systems. - aix* | *-gnu*) - gl_cv_func_mbrtowc_empty_input="guessing no" ;; - # Guess yes on native Windows. - mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; - *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; + # Guess no on AIX and glibc systems. + aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;; + # Guess yes on native Windows. + mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; + *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; esac if test "$cross_compiling" = yes; then : : @@ -31398,12 +31434,12 @@ else if test "$cross_compiling" = yes; then : case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_signbit="guessing yes" ;; - # Guess yes on native Windows. - mingw*) gl_cv_func_signbit="guessing yes" ;; - # If we don't know, assume the worst. - *) gl_cv_func_signbit="guessing no" ;; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;; + # Guess yes on native Windows. + mingw*) gl_cv_func_signbit="guessing yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_signbit="guessing no" ;; esac else @@ -31518,17 +31554,17 @@ else if test "$cross_compiling" = yes; then : case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_signbit_gcc="guessing yes" ;; - # Guess yes on mingw, no on MSVC. - mingw*) if test -n "$GCC"; then - gl_cv_func_signbit_gcc="guessing yes" - else - gl_cv_func_signbit_gcc="guessing no" - fi - ;; - # If we don't know, assume the worst. - *) gl_cv_func_signbit_gcc="guessing no" ;; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_signbit_gcc="guessing yes" ;; + # Guess yes on mingw, no on MSVC. + mingw*) if test -n "$GCC"; then + gl_cv_func_signbit_gcc="guessing yes" + else + gl_cv_func_signbit_gcc="guessing no" + fi + ;; + # If we don't know, assume the worst. + *) gl_cv_func_signbit_gcc="guessing no" ;; esac else @@ -32537,6 +32573,9 @@ else /* end confdefs.h. */ #include #if HAVE_SYS_LOADAVG_H +/* OpenIndiana has a bug: must be included before + . */ +# include # include #endif #if HAVE_RANDOM_H @@ -49394,9 +49433,9 @@ else if test "$cross_compiling" = yes; then : case "$host_os" in - # Guess yes on glibc and AIX 7 systems. - *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";; - *) gl_cv_func_wcwidth_works="guessing no";; + # Guess yes on glibc and AIX 7 systems. + *-gnu* | gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";; + *) gl_cv_func_wcwidth_works="guessing no";; esac else @@ -53053,12 +53092,12 @@ if ${gl_cv_func_svid_putenv+:} false; then : else if test "$cross_compiling" = yes; then : case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;; - # Guess no on native Windows. - mingw*) gl_cv_func_svid_putenv="guessing no" ;; - # If we don't know, assume the worst. - *) gl_cv_func_svid_putenv="guessing no" ;; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;; + # Guess no on native Windows. + mingw*) gl_cv_func_svid_putenv="guessing no" ;; + # If we don't know, assume the worst. + *) gl_cv_func_svid_putenv="guessing no" ;; esac else @@ -53243,10 +53282,10 @@ if ${gl_cv_func_setenv_works+:} false; then : else if test "$cross_compiling" = yes; then : case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_setenv_works="guessing yes" ;; - # If we don't know, assume the worst. - *) gl_cv_func_setenv_works="guessing no" ;; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_setenv_works="guessing no" ;; esac else @@ -54162,12 +54201,12 @@ if ${gl_cv_func_sleep_works+:} false; then : else if test "$cross_compiling" = yes; then : case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_sleep_works="guessing yes" ;; - # Guess no on native Windows. - mingw*) gl_cv_func_sleep_works="guessing no" ;; - # If we don't know, assume the worst. - *) gl_cv_func_sleep_works="guessing no" ;; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;; + # Guess no on native Windows. + mingw*) gl_cv_func_sleep_works="guessing no" ;; + # If we don't know, assume the worst. + *) gl_cv_func_sleep_works="guessing no" ;; esac else @@ -54542,10 +54581,10 @@ if ${gl_cv_func_working_strerror+:} false; then : else if test "$cross_compiling" = yes; then : case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_working_strerror="guessing yes" ;; - # If we don't know, assume the worst. - *) gl_cv_func_working_strerror="guessing no" ;; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_working_strerror="guessing no" ;; esac else @@ -58940,12 +58979,12 @@ if ${gl_cv_func_usleep_works+:} false; then : else if test "$cross_compiling" = yes; then : case "$host_os" in - # Guess yes on glibc systems. - *-gnu*) gl_cv_func_usleep_works="guessing yes" ;; - # Guess no on native Windows. - mingw*) gl_cv_func_usleep_works="guessing no" ;; - # If we don't know, assume the worst. - *) gl_cv_func_usleep_works="guessing no" ;; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_usleep_works="guessing yes" ;; + # Guess no on native Windows. + mingw*) gl_cv_func_usleep_works="guessing no" ;; + # If we don't know, assume the worst. + *) gl_cv_func_usleep_works="guessing no" ;; esac else diff --git a/doc/Makefile.am b/doc/Makefile.am index bca3aeb..de7647e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,5 +1,5 @@ ## Makefile for the doc subdirectory of GNU libunistring. -## Copyright (C) 2009, 2011 Free Software Foundation, Inc. +## Copyright (C) 2009, 2011, 2017 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -34,7 +34,7 @@ info_TEXINFOS = libunistring.texi libunistring_TEXINFOS = \ unitypes.texi unistr.texi uniconv.texi unistdio.texi uniname.texi \ unictype.texi uniwidth.texi unigbrk.texi uniwbrk.texi unilbrk.texi \ - uninorm.texi unicase.texi uniregex.texi \ + uninorm.texi unicase.texi uniregex.texi wchar_t.texi \ gpl.texi lgpl.texi fdl.texi # The dependencies of stamp-vti generated by automake are incomplete. diff --git a/doc/Makefile.in b/doc/Makefile.in index e252e9d..d971145 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -863,6 +863,7 @@ HAVE_ISNANF = @HAVE_ISNANF@ HAVE_ISNANL = @HAVE_ISNANL@ HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ +HAVE_LANGINFO_ALTMON = @HAVE_LANGINFO_ALTMON@ HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ @@ -1465,7 +1466,7 @@ info_TEXINFOS = libunistring.texi libunistring_TEXINFOS = \ unitypes.texi unistr.texi uniconv.texi unistdio.texi uniname.texi \ unictype.texi uniwidth.texi unigbrk.texi uniwbrk.texi unilbrk.texi \ - uninorm.texi unicase.texi uniregex.texi \ + uninorm.texi unicase.texi uniregex.texi wchar_t.texi \ gpl.texi lgpl.texi fdl.texi diff --git a/doc/libunistring.info b/doc/libunistring.info index d1fdfa2..c4be8a4 100644 --- a/doc/libunistring.info +++ b/doc/libunistring.info @@ -33,6 +33,7 @@ GNU libunistring * uniregex.h:: Regular expressions * Using the library:: How to link with the library and use it? * More functionality:: More advanced functionality +* The wchar_t mess:: Why ‘wchar_t *’ strings are useless * Licenses:: Licenses * Index:: General Index @@ -46,7 +47,6 @@ Introduction * Locale encodings:: What is a locale encoding? * In-memory representation:: How to represent strings in memory? * char * strings:: What to keep in mind with ‘char *’ strings -* The wchar_t mess:: Why ‘wchar_t *’ strings are useless * Unicode strings:: How are Unicode strings represented? unistr.h @@ -57,6 +57,26 @@ unistr.h * Elementary string functions with memory allocation:: * Elementary string functions on NUL terminated strings:: +Elementary string functions + +* Iterating:: +* Creating Unicode strings:: +* Copying Unicode strings:: +* Comparing Unicode strings:: +* Searching for a character:: +* Counting characters:: + +Elementary string functions on NUL terminated strings + +* Iterating over a NUL terminated Unicode string:: +* Length:: +* Copying a NUL terminated Unicode string:: +* Comparing NUL terminated Unicode strings:: +* Duplicating a NUL terminated Unicode string:: +* Searching for a character in a NUL terminated Unicode string:: +* Searching for a substring:: +* Tokenizing:: + unictype.h * General category:: @@ -248,7 +268,7 @@ having text in multiple languages present in the same document or even in the same line of text. But use of Unicode is not everything. Internationalization usually -consists of three features: +consists of four features: • Use of Unicode where needed for text processing. This is what this library is for. • Use of message catalogs for messages shown to the user, This is @@ -257,6 +277,9 @@ consists of three features: numeric formatting, or for sorting of text. This can be done adequately with the POSIX APIs and the implementation of locales in the GNU C library. + • In graphical user interfaces, adapting the GUI to the default text + direction of the current locale (see right-to-left languages + (https://en.wikipedia.org/wiki/Right-to-left)).  File: libunistring.info, Node: Locale encodings, Next: In-memory representation, Prev: Unicode and i18n, Up: Introduction @@ -299,7 +322,7 @@ encoding that was used in this country earlier. The legacy locale encodings, ISO-8859-15 (which supplanted ISO-8859-1 in most of Europe), ISO-8859-2, KOI8-R, EUC-JP, etc., are still in use -in many places, though. +in some places, though. UTF-16 and UTF-32 are not used as locale encodings, because they are not ASCII compatible. @@ -326,8 +349,23 @@ program. • As ‘wchar_t *’, a.k.a. “wide strings”. This approach is misguided, see *note The wchar_t mess::. + Of course, a ‘char *’ string can, in some cases, be encoded in UTF-8. +You will use the data type depending on what you can guarantee about how +it’s encoded: If a string is encoded in the locale encoding, or if you +don’t know how it’s encoded, use ‘char *’. If, on the other hand, you +can _guarantee_ that it is UTF-8 encoded, then you can use the UTF-8 +string type, ‘uint8_t *’, for it. + + The five types ‘char *’, ‘uint8_t *’, ‘uint16_t *’, ‘uint32_t *’, and +‘wchar_t *’ are incompatible types at the C level. Therefore, ‘gcc +-Wall’ will produce a warning if, by mistake, your code contains a +mismatch between these types. In the context of using GNU libunistring, +even a warning about a mismatch between ‘char *’ and ‘uint8_t *’ is a +sign of a bug in your code that you should not try to silence through a +cast. +  -File: libunistring.info, Node: char * strings, Next: The wchar_t mess, Prev: In-memory representation, Up: Introduction +File: libunistring.info, Node: char * strings, Next: Unicode strings, Prev: In-memory representation, Up: Introduction 1.5 ‘char *’ strings ==================== @@ -426,53 +464,9 @@ assumptions built-in that are not valid in some languages: in ‘’, see *note unicase.h::.  -File: libunistring.info, Node: The wchar_t mess, Next: Unicode strings, Prev: char * strings, Up: Introduction - -1.6 The ‘wchar_t’ mess -====================== - - The ISO C and POSIX standard creators made an attempt to fix the -first problem mentioned in the previous section. They introduced - • a type ‘wchar_t’, designed to encapsulate an entire character, - • a “wide string” type ‘wchar_t *’, and - • functions declared in ‘’ that were meant to supplant the - ones in ‘’. - - Unfortunately, this API and its implementation has numerous problems: - - • On AIX and Windows platforms, ‘wchar_t’ is a 16-bit type. This - means that it can never accommodate an entire Unicode character. - Either the ‘wchar_t *’ strings are limited to characters in UCS-2 - (the “Basic Multilingual Plane” of Unicode), or — if ‘wchar_t *’ - strings are encoded in UTF-16 — a ‘wchar_t’ represents only half of - a character in the worst case, making the ‘’ functions - pointless. - - • On Solaris and FreeBSD, the ‘wchar_t’ encoding is locale dependent - and undocumented. This means, if you want to know any property of - a ‘wchar_t’ character, other than the properties defined by - ‘’ — such as whether it’s a dash, currency symbol, - paragraph separator, or similar —, you have to convert it to ‘char - *’ encoding first, by use of the function ‘wctomb’. - - • When you read a stream of wide characters, through the functions - ‘fgetwc’ and ‘fgetws’, and when the input stream/file is not in the - expected encoding, you have no way to determine the invalid byte - sequence and do some corrective action. If you use these - functions, your program becomes “garbage in - more garbage out” or - “garbage in - abort”. - - As a consequence, it is better to use multibyte strings, as explained -in the previous section. Such multibyte strings can bypass limitations -of the ‘wchar_t’ type, if you use functions defined in gnulib and -libunistring for text processing. They can also faithfully transport -malformed characters that were present in the input, without requiring -the program to produce garbage or abort. - - -File: libunistring.info, Node: Unicode strings, Prev: The wchar_t mess, Up: Introduction +File: libunistring.info, Node: Unicode strings, Prev: char * strings, Up: Introduction -1.7 Unicode strings +1.6 Unicode strings =================== libunistring supports Unicode strings in three representations: @@ -572,6 +566,15 @@ File: libunistring.info, Node: unitypes.h, Next: unistr.h, Prev: Conventions, This type represents a single Unicode character, outside of an UTF-32 string. + The types ‘ucs4_t’ and ‘uint32_t’ happen to be identical. They +differ in use and intent, however: + • Use ‘uint32_t *’ to designate an UTF-32 string. Use ‘ucs4_t’ to + designate a single Unicode character, outside of an UTF-32 string. + • Conversions functions that take an UTF-32 string as input will + usually perform a range-check on the ‘uint32_t’ values. Whereas + functions that are declared to take ‘ucs4_t’ arguments will not + perform such a range-check. +  File: libunistring.info, Node: unistr.h, Next: uniconv.h, Prev: unitypes.h, Up: Top @@ -618,32 +621,65 @@ forms of Unicode strings. *RESULTBUF, size_t *LENGTHP) Converts an UTF-8 string to an UTF-16 string. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: uint32_t * u8_to_u32 (const uint8_t *S, size_t N, uint32_t *RESULTBUF, size_t *LENGTHP) Converts an UTF-8 string to an UTF-32 string. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: uint8_t * u16_to_u8 (const uint16_t *S, size_t N, uint8_t *RESULTBUF, size_t *LENGTHP) Converts an UTF-16 string to an UTF-8 string. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: uint32_t * u16_to_u32 (const uint16_t *S, size_t N, uint32_t *RESULTBUF, size_t *LENGTHP) Converts an UTF-16 string to an UTF-32 string. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: uint8_t * u32_to_u8 (const uint32_t *S, size_t N, uint8_t *RESULTBUF, size_t *LENGTHP) Converts an UTF-32 string to an UTF-8 string. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: uint16_t * u32_to_u16 (const uint32_t *S, size_t N, uint16_t *RESULTBUF, size_t *LENGTHP) Converts an UTF-32 string to an UTF-16 string. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. +  File: libunistring.info, Node: Elementary string functions, Next: Elementary string functions with memory allocation, Prev: Elementary string conversions, Up: unistr.h 4.3 Elementary string functions =============================== +* Menu: + +* Iterating:: +* Creating Unicode strings:: +* Copying Unicode strings:: +* Comparing Unicode strings:: +* Searching for a character:: +* Counting characters:: + + +File: libunistring.info, Node: Iterating, Next: Creating Unicode strings, Up: Elementary string functions + +4.3.1 Iterating over a Unicode string +------------------------------------- + The following functions inspect and return details about the first character in a Unicode string. @@ -657,12 +693,9 @@ character in a Unicode string. This function is similar to ‘mblen’, except that it operates on a Unicode string and that S must not be NULL. - -- Function: int u8_mbtouc_unsafe (ucs4_t *PUC, const uint8_t *S, - size_t N) - -- Function: int u16_mbtouc_unsafe (ucs4_t *PUC, const uint16_t *S, - size_t N) - -- Function: int u32_mbtouc_unsafe (ucs4_t *PUC, const uint32_t *S, - size_t N) + -- Function: int u8_mbtouc (ucs4_t *PUC, const uint8_t *S, size_t N) + -- Function: int u16_mbtouc (ucs4_t *PUC, const uint16_t *S, size_t N) + -- Function: int u32_mbtouc (ucs4_t *PUC, const uint32_t *S, size_t N) Returns the length (number of units) of the first character in S, putting its ‘ucs4_t’ representation in ‘*PUC’. Upon failure, ‘*PUC’ is set to ‘0xfffd’, and an appropriate number of units is @@ -670,16 +703,23 @@ character in a Unicode string. The number of available units, N, must be > 0. + This function fails if an invalid sequence of units is encountered + at the beginning of S, or if additional units (after the N provided + units) would be needed to form a character. + This function is similar to ‘mbtowc’, except that it operates on a Unicode string, PUC and S must not be NULL, N must be > 0, and the NUL character is not treated specially. - -- Function: int u8_mbtouc (ucs4_t *PUC, const uint8_t *S, size_t N) - -- Function: int u16_mbtouc (ucs4_t *PUC, const uint16_t *S, size_t N) - -- Function: int u32_mbtouc (ucs4_t *PUC, const uint32_t *S, size_t N) - This function is like ‘u8_mbtouc_unsafe’, except that it will - detect an invalid UTF-8 character, even if the library is compiled - without ‘--enable-safety’. + -- Function: int u8_mbtouc_unsafe (ucs4_t *PUC, const uint8_t *S, + size_t N) + -- Function: int u16_mbtouc_unsafe (ucs4_t *PUC, const uint16_t *S, + size_t N) + -- Function: int u32_mbtouc_unsafe (ucs4_t *PUC, const uint32_t *S, + size_t N) + This function is identical to + ‘u8_mbtouc’/‘u16_mbtouc’/‘u32_mbtouc’. Earlier versions of this + function performed fewer range-checks on the sequence of units. -- Function: int u8_mbtoucr (ucs4_t *PUC, const uint8_t *S, size_t N) -- Function: int u16_mbtoucr (ucs4_t *PUC, const uint16_t *S, size_t N) @@ -695,6 +735,12 @@ character in a Unicode string. This function is similar to ‘u8_mbtouc’, except that the return value gives more details about the failure, similar to ‘mbrtowc’. + +File: libunistring.info, Node: Creating Unicode strings, Next: Copying Unicode strings, Prev: Iterating, Up: Elementary string functions + +4.3.2 Creating Unicode strings one character at a time +------------------------------------------------------ + The following function stores a Unicode character as a Unicode string in memory. @@ -710,6 +756,12 @@ in memory. Unicode strings, S must not be NULL, and the argument N must be specified. + +File: libunistring.info, Node: Copying Unicode strings, Next: Comparing Unicode strings, Prev: Creating Unicode strings, Up: Elementary string functions + +4.3.3 Copying Unicode strings +----------------------------- + The following functions copy Unicode strings in memory. -- Function: uint8_t * u8_cpy (uint8_t *DEST, const uint8_t *SRC, @@ -746,6 +798,12 @@ in memory. This function is similar to ‘memset’, except that it operates on Unicode strings. + +File: libunistring.info, Node: Comparing Unicode strings, Next: Searching for a character, Prev: Copying Unicode strings, Up: Elementary string functions + +4.3.4 Comparing Unicode strings +------------------------------- + The following function compares two Unicode strings of the same length. @@ -778,6 +836,12 @@ different lengths. This function is similar to the gnulib function ‘memcmp2’, except that it operates on Unicode strings. + +File: libunistring.info, Node: Searching for a character, Next: Counting characters, Prev: Comparing Unicode strings, Up: Elementary string functions + +4.3.5 Searching for a character in a Unicode string +--------------------------------------------------- + The following function searches for a given Unicode character. -- Function: uint8_t * u8_chr (const uint8_t *S, size_t N, ucs4_t UC) @@ -791,6 +855,12 @@ different lengths. This function is similar to ‘memchr’, except that it operates on Unicode strings. + +File: libunistring.info, Node: Counting characters, Prev: Searching for a character, Up: Elementary string functions + +4.3.6 Counting the characters in a Unicode string +------------------------------------------------- + The following function counts the number of Unicode characters. -- Function: size_t u8_mbsnlen (const uint8_t *S, size_t N) @@ -821,6 +891,23 @@ File: libunistring.info, Node: Elementary string functions on NUL terminated st 4.5 Elementary string functions on NUL terminated strings ========================================================= +* Menu: + +* Iterating over a NUL terminated Unicode string:: +* Length:: +* Copying a NUL terminated Unicode string:: +* Comparing NUL terminated Unicode strings:: +* Duplicating a NUL terminated Unicode string:: +* Searching for a character in a NUL terminated Unicode string:: +* Searching for a substring:: +* Tokenizing:: + + +File: libunistring.info, Node: Iterating over a NUL terminated Unicode string, Next: Length, Up: Elementary string functions on NUL terminated strings + +4.5.1 Iterating over a NUL terminated Unicode string +---------------------------------------------------- + The following functions inspect and return details about the first character in a Unicode string. @@ -859,6 +946,12 @@ previous character in a Unicode string. reached. Puts the character’s ‘ucs4_t’ representation in ‘*PUC’. Note that this function works only on well-formed Unicode strings. + +File: libunistring.info, Node: Length, Next: Copying a NUL terminated Unicode string, Prev: Iterating over a NUL terminated Unicode string, Up: Elementary string functions on NUL terminated strings + +4.5.2 Length of a NUL terminated Unicode string +----------------------------------------------- + The following functions determine the length of a Unicode string. -- Function: size_t u8_strlen (const uint8_t *S) @@ -877,6 +970,12 @@ previous character in a Unicode string. This function is similar to ‘strnlen’ and ‘wcsnlen’, except that it operates on Unicode strings. + +File: libunistring.info, Node: Copying a NUL terminated Unicode string, Next: Comparing NUL terminated Unicode strings, Prev: Length, Up: Elementary string functions on NUL terminated strings + +4.5.3 Copying a NUL terminated Unicode string +--------------------------------------------- + The following functions copy portions of Unicode strings in memory. -- Function: uint8_t * u8_strcpy (uint8_t *DEST, const uint8_t *SRC) @@ -946,6 +1045,12 @@ previous character in a Unicode string. This function is similar to ‘strncat’ and ‘wcsncat’, except that it operates on Unicode strings. + +File: libunistring.info, Node: Comparing NUL terminated Unicode strings, Next: Duplicating a NUL terminated Unicode string, Prev: Copying a NUL terminated Unicode string, Up: Elementary string functions on NUL terminated strings + +4.5.4 Comparing NUL terminated Unicode strings +---------------------------------------------- + The following functions compare two Unicode strings. -- Function: int u8_strcmp (const uint8_t *S1, const uint8_t *S2) @@ -984,6 +1089,12 @@ previous character in a Unicode string. This function is similar to ‘strncmp’ and ‘wcsncmp’, except that it operates on Unicode strings. + +File: libunistring.info, Node: Duplicating a NUL terminated Unicode string, Next: Searching for a character in a NUL terminated Unicode string, Prev: Comparing NUL terminated Unicode strings, Up: Elementary string functions on NUL terminated strings + +4.5.5 Duplicating a NUL terminated Unicode string +------------------------------------------------- + The following function allocates a duplicate of a Unicode string. -- Function: uint8_t * u8_strdup (const uint8_t *S) @@ -994,6 +1105,12 @@ previous character in a Unicode string. This function is similar to ‘strdup’ and ‘wcsdup’, except that it operates on Unicode strings. + +File: libunistring.info, Node: Searching for a character in a NUL terminated Unicode string, Next: Searching for a substring, Prev: Duplicating a NUL terminated Unicode string, Up: Elementary string functions on NUL terminated strings + +4.5.6 Searching for a character in a NUL terminated Unicode string +------------------------------------------------------------------ + The following functions search for a given Unicode character. -- Function: uint8_t * u8_strchr (const uint8_t *STR, ucs4_t UC) @@ -1050,6 +1167,12 @@ Unicode character in or outside a given set of Unicode characters. This function is similar to ‘strpbrk’ and ‘wcspbrk’, except that it operates on Unicode strings. + +File: libunistring.info, Node: Searching for a substring, Next: Tokenizing, Prev: Searching for a character in a NUL terminated Unicode string, Up: Elementary string functions on NUL terminated strings + +4.5.7 Searching for a substring in a NUL terminated Unicode string +------------------------------------------------------------------ + The following functions search whether a given Unicode string is a substring of another Unicode string. @@ -1080,6 +1203,12 @@ substring of another Unicode string. *SUFFIX) Tests whether STR ends with SUFFIX. + +File: libunistring.info, Node: Tokenizing, Prev: Searching for a substring, Up: Elementary string functions on NUL terminated strings + +4.5.8 Tokenizing a NUL terminated Unicode string +------------------------------------------------ + The following function does one step in tokenizing a Unicode string. -- Function: uint8_t * u8_strtok (uint8_t *STR, const uint8_t *DELIM, @@ -1562,162 +1691,164 @@ File: libunistring.info, Node: Object oriented API, Next: Bit mask API, Up: G The following are the predefined general category value. Additional general categories may be added in the future. - -- Constant: uc_general_category_t UC_CATEGORY_L - -- Constant: uc_general_category_t UC_CATEGORY_LC - -- Constant: uc_general_category_t UC_CATEGORY_Lu - -- Constant: uc_general_category_t UC_CATEGORY_Ll - -- Constant: uc_general_category_t UC_CATEGORY_Lt - -- Constant: uc_general_category_t UC_CATEGORY_Lm - -- Constant: uc_general_category_t UC_CATEGORY_Lo - -- Constant: uc_general_category_t UC_CATEGORY_M - -- Constant: uc_general_category_t UC_CATEGORY_Mn - -- Constant: uc_general_category_t UC_CATEGORY_Mc - -- Constant: uc_general_category_t UC_CATEGORY_Me - -- Constant: uc_general_category_t UC_CATEGORY_N - -- Constant: uc_general_category_t UC_CATEGORY_Nd - -- Constant: uc_general_category_t UC_CATEGORY_Nl - -- Constant: uc_general_category_t UC_CATEGORY_No - -- Constant: uc_general_category_t UC_CATEGORY_P - -- Constant: uc_general_category_t UC_CATEGORY_Pc - -- Constant: uc_general_category_t UC_CATEGORY_Pd - -- Constant: uc_general_category_t UC_CATEGORY_Ps - -- Constant: uc_general_category_t UC_CATEGORY_Pe - -- Constant: uc_general_category_t UC_CATEGORY_Pi - -- Constant: uc_general_category_t UC_CATEGORY_Pf - -- Constant: uc_general_category_t UC_CATEGORY_Po - -- Constant: uc_general_category_t UC_CATEGORY_S - -- Constant: uc_general_category_t UC_CATEGORY_Sm - -- Constant: uc_general_category_t UC_CATEGORY_Sc - -- Constant: uc_general_category_t UC_CATEGORY_Sk - -- Constant: uc_general_category_t UC_CATEGORY_So - -- Constant: uc_general_category_t UC_CATEGORY_Z - -- Constant: uc_general_category_t UC_CATEGORY_Zs - -- Constant: uc_general_category_t UC_CATEGORY_Zl - -- Constant: uc_general_category_t UC_CATEGORY_Zp - -- Constant: uc_general_category_t UC_CATEGORY_C - -- Constant: uc_general_category_t UC_CATEGORY_Cc - -- Constant: uc_general_category_t UC_CATEGORY_Cf - -- Constant: uc_general_category_t UC_CATEGORY_Cs - -- Constant: uc_general_category_t UC_CATEGORY_Co - -- Constant: uc_general_category_t UC_CATEGORY_Cn - - The following are alias names for predefined General category values. + The ‘UC_CATEGORY_*’ constants reflect the systematic general category +values assigned by the Unicode Consortium. Whereas the other ‘UC_*’ +macros are aliases, for use when readable code is preferred. + -- Constant: uc_general_category_t UC_CATEGORY_L -- Macro: uc_general_category_t UC_LETTER - This is another name for ‘UC_CATEGORY_L’. + This represents the general category “Letter”. + -- Constant: uc_general_category_t UC_CATEGORY_LC -- Macro: uc_general_category_t UC_CASED_LETTER - This is another name for ‘UC_CATEGORY_LC’. + -- Constant: uc_general_category_t UC_CATEGORY_Lu -- Macro: uc_general_category_t UC_UPPERCASE_LETTER - This is another name for ‘UC_CATEGORY_Lu’. + This represents the general category “Letter, uppercase”. + -- Constant: uc_general_category_t UC_CATEGORY_Ll -- Macro: uc_general_category_t UC_LOWERCASE_LETTER - This is another name for ‘UC_CATEGORY_Ll’. + This represents the general category “Letter, lowercase”. + -- Constant: uc_general_category_t UC_CATEGORY_Lt -- Macro: uc_general_category_t UC_TITLECASE_LETTER - This is another name for ‘UC_CATEGORY_Lt’. + This represents the general category “Letter, titlecase”. + -- Constant: uc_general_category_t UC_CATEGORY_Lm -- Macro: uc_general_category_t UC_MODIFIER_LETTER - This is another name for ‘UC_CATEGORY_Lm’. + This represents the general category “Letter, modifier”. + -- Constant: uc_general_category_t UC_CATEGORY_Lo -- Macro: uc_general_category_t UC_OTHER_LETTER - This is another name for ‘UC_CATEGORY_Lo’. + This represents the general category “Letter, other”. + -- Constant: uc_general_category_t UC_CATEGORY_M -- Macro: uc_general_category_t UC_MARK - This is another name for ‘UC_CATEGORY_M’. + This represents the general category “Marker”. + -- Constant: uc_general_category_t UC_CATEGORY_Mn -- Macro: uc_general_category_t UC_NON_SPACING_MARK - This is another name for ‘UC_CATEGORY_Mn’. + This represents the general category “Marker, nonspacing”. + -- Constant: uc_general_category_t UC_CATEGORY_Mc -- Macro: uc_general_category_t UC_COMBINING_SPACING_MARK - This is another name for ‘UC_CATEGORY_Mc’. + This represents the general category “Marker, spacing combining”. + -- Constant: uc_general_category_t UC_CATEGORY_Me -- Macro: uc_general_category_t UC_ENCLOSING_MARK - This is another name for ‘UC_CATEGORY_Me’. + This represents the general category “Marker, enclosing”. + -- Constant: uc_general_category_t UC_CATEGORY_N -- Macro: uc_general_category_t UC_NUMBER - This is another name for ‘UC_CATEGORY_N’. + This represents the general category “Number”. + -- Constant: uc_general_category_t UC_CATEGORY_Nd -- Macro: uc_general_category_t UC_DECIMAL_DIGIT_NUMBER - This is another name for ‘UC_CATEGORY_Nd’. + This represents the general category “Number, decimal digit”. + -- Constant: uc_general_category_t UC_CATEGORY_Nl -- Macro: uc_general_category_t UC_LETTER_NUMBER - This is another name for ‘UC_CATEGORY_Nl’. + This represents the general category “Number, letter”. + -- Constant: uc_general_category_t UC_CATEGORY_No -- Macro: uc_general_category_t UC_OTHER_NUMBER - This is another name for ‘UC_CATEGORY_No’. + This represents the general category “Number, other”. + -- Constant: uc_general_category_t UC_CATEGORY_P -- Macro: uc_general_category_t UC_PUNCTUATION - This is another name for ‘UC_CATEGORY_P’. + This represents the general category “Punctuation”. + -- Constant: uc_general_category_t UC_CATEGORY_Pc -- Macro: uc_general_category_t UC_CONNECTOR_PUNCTUATION - This is another name for ‘UC_CATEGORY_Pc’. + This represents the general category “Punctuation, connector”. + -- Constant: uc_general_category_t UC_CATEGORY_Pd -- Macro: uc_general_category_t UC_DASH_PUNCTUATION - This is another name for ‘UC_CATEGORY_Pd’. + This represents the general category “Punctuation, dash”. + -- Constant: uc_general_category_t UC_CATEGORY_Ps -- Macro: uc_general_category_t UC_OPEN_PUNCTUATION - This is another name for ‘UC_CATEGORY_Ps’ (“start punctuation”). + This represents the general category “Punctuation, open”, a.k.a. + “start punctuation”. + -- Constant: uc_general_category_t UC_CATEGORY_Pe -- Macro: uc_general_category_t UC_CLOSE_PUNCTUATION - This is another name for ‘UC_CATEGORY_Pe’ (“end punctuation”). + This represents the general category “Punctuation, close”, a.k.a. + “end punctuation”. + -- Constant: uc_general_category_t UC_CATEGORY_Pi -- Macro: uc_general_category_t UC_INITIAL_QUOTE_PUNCTUATION - This is another name for ‘UC_CATEGORY_Pi’. + This represents the general category “Punctuation, initial quote”. + -- Constant: uc_general_category_t UC_CATEGORY_Pf -- Macro: uc_general_category_t UC_FINAL_QUOTE_PUNCTUATION - This is another name for ‘UC_CATEGORY_Pf’. + This represents the general category “Punctuation, final quote”. + -- Constant: uc_general_category_t UC_CATEGORY_Po -- Macro: uc_general_category_t UC_OTHER_PUNCTUATION - This is another name for ‘UC_CATEGORY_Po’. + This represents the general category “Punctuation, other”. + -- Constant: uc_general_category_t UC_CATEGORY_S -- Macro: uc_general_category_t UC_SYMBOL - This is another name for ‘UC_CATEGORY_S’. + This represents the general category “Symbol”. + -- Constant: uc_general_category_t UC_CATEGORY_Sm -- Macro: uc_general_category_t UC_MATH_SYMBOL - This is another name for ‘UC_CATEGORY_Sm’. + This represents the general category “Symbol, math”. + -- Constant: uc_general_category_t UC_CATEGORY_Sc -- Macro: uc_general_category_t UC_CURRENCY_SYMBOL - This is another name for ‘UC_CATEGORY_Sc’. + This represents the general category “Symbol, currency”. + -- Constant: uc_general_category_t UC_CATEGORY_Sk -- Macro: uc_general_category_t UC_MODIFIER_SYMBOL - This is another name for ‘UC_CATEGORY_Sk’. + This represents the general category “Symbol, modifier”. + -- Constant: uc_general_category_t UC_CATEGORY_So -- Macro: uc_general_category_t UC_OTHER_SYMBOL - This is another name for ‘UC_CATEGORY_So’. + This represents the general category “Symbol, other”. + -- Constant: uc_general_category_t UC_CATEGORY_Z -- Macro: uc_general_category_t UC_SEPARATOR - This is another name for ‘UC_CATEGORY_Z’. + This represents the general category “Separator”. + -- Constant: uc_general_category_t UC_CATEGORY_Zs -- Macro: uc_general_category_t UC_SPACE_SEPARATOR - This is another name for ‘UC_CATEGORY_Zs’. + This represents the general category “Separator, space”. + -- Constant: uc_general_category_t UC_CATEGORY_Zl -- Macro: uc_general_category_t UC_LINE_SEPARATOR - This is another name for ‘UC_CATEGORY_Zl’. + This represents the general category “Separator, line”. + -- Constant: uc_general_category_t UC_CATEGORY_Zp -- Macro: uc_general_category_t UC_PARAGRAPH_SEPARATOR - This is another name for ‘UC_CATEGORY_Zp’. + This represents the general category “Separator, paragraph”. + -- Constant: uc_general_category_t UC_CATEGORY_C -- Macro: uc_general_category_t UC_OTHER - This is another name for ‘UC_CATEGORY_C’. + This represents the general category “Other”. + -- Constant: uc_general_category_t UC_CATEGORY_Cc -- Macro: uc_general_category_t UC_CONTROL - This is another name for ‘UC_CATEGORY_Cc’. + This represents the general category “Other, control”. + -- Constant: uc_general_category_t UC_CATEGORY_Cf -- Macro: uc_general_category_t UC_FORMAT - This is another name for ‘UC_CATEGORY_Cf’. + This represents the general category “Other, format”. + -- Constant: uc_general_category_t UC_CATEGORY_Cs -- Macro: uc_general_category_t UC_SURROGATE - This is another name for ‘UC_CATEGORY_Cs’. All code points in this - category are invalid characters. + This represents the general category “Other, surrogate”. All code + points in this category are invalid characters. + -- Constant: uc_general_category_t UC_CATEGORY_Co -- Macro: uc_general_category_t UC_PRIVATE_USE - This is another name for ‘UC_CATEGORY_Co’. + This represents the general category “Other, private use”. + -- Constant: uc_general_category_t UC_CATEGORY_Cn -- Macro: uc_general_category_t UC_UNASSIGNED - This is another name for ‘UC_CATEGORY_Cn’. Some code points in - this category are invalid characters. + This represents the general category “Other, not assigned”. Some + code points in this category are invalid characters. The following functions combine general categories, like in a boolean algebra, except that there is no ‘not’ operation. @@ -2972,7 +3103,7 @@ the higher-level functions in the previous section are directly based. described in the Unicode standard, because the standard says that they are preferred. - Note that this function do not handle the case when three ore more + Note that this function does not handle the case when three or more consecutive characters are needed to determine the boundary. Use ‘uc_grapheme_breaks’ for such cases. @@ -3350,6 +3481,9 @@ Unicode string. size_t N, uint32_t *RESULTBUF, size_t *LENGTHP) Returns the specified normalization form of a string. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. +  File: libunistring.info, Node: Normalizing comparisons, Next: Normalization of streams, Prev: Normalization of strings, Up: uninorm.h @@ -3385,6 +3519,9 @@ in normalization. NF must be either ‘UNINORM_NFC’ or ‘UNINORM_NFKC’. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: int u8_normcoll (const uint8_t *S1, size_t N1, const uint8_t *S2, size_t N2, uninorm_t NF, int *RESULTP) -- Function: int u16_normcoll (const uint16_t *S1, size_t N1, const @@ -3557,6 +3694,9 @@ locale independent case mappings. The NF argument identifies the normalization form to apply after the case-mapping. It can also be NULL, for no normalization. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: uint8_t * u8_tolower (const uint8_t *S, size_t N, const char *ISO639_LANGUAGE, uninorm_t NF, uint8_t *RESULTBUF, size_t *LENGTHP) @@ -3571,6 +3711,9 @@ locale independent case mappings. The NF argument identifies the normalization form to apply after the case-mapping. It can also be NULL, for no normalization. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: uint8_t * u8_totitle (const uint8_t *S, size_t N, const char *ISO639_LANGUAGE, uninorm_t NF, uint8_t *RESULTBUF, size_t *LENGTHP) @@ -3589,6 +3732,9 @@ locale independent case mappings. The NF argument identifies the normalization form to apply after the case-mapping. It can also be NULL, for no normalization. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. +  File: libunistring.info, Node: Case mappings of substrings, Next: Case insensitive comparison, Prev: Case mappings of strings, Up: unicase.h @@ -3682,6 +3828,9 @@ prefix context and the suffix context. Returns the uppercase mapping of a string that is surrounded by a prefix and a suffix. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: uint8_t * u8_ct_tolower (const uint8_t *S, size_t N, casing_prefix_context_t PREFIX_CONTEXT, casing_suffix_context_t SUFFIX_CONTEXT, const char @@ -3700,6 +3849,9 @@ prefix context and the suffix context. Returns the lowercase mapping of a string that is surrounded by a prefix and a suffix. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: uint8_t * u8_ct_totitle (const uint8_t *S, size_t N, casing_prefix_context_t PREFIX_CONTEXT, casing_suffix_context_t SUFFIX_CONTEXT, const char @@ -3718,6 +3870,9 @@ prefix context and the suffix context. Returns the titlecase mapping of a string that is surrounded by a prefix and a suffix. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + For example, to uppercase the UTF-8 substring between ‘s + start_index’ and ‘s + end_index’ of a string that extends from ‘s’ to ‘s + u8_strlen (s)’, you can use the statements @@ -3757,6 +3912,9 @@ in case and normalization. The NF argument identifies the normalization form to apply after the case-mapping. It can also be NULL, for no normalization. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: uint8_t * u8_ct_casefold (const uint8_t *S, size_t N, casing_prefix_context_t PREFIX_CONTEXT, casing_suffix_context_t SUFFIX_CONTEXT, const char @@ -3775,6 +3933,9 @@ in case and normalization. Returns the case folded string. The case folding takes into account the case mapping contexts of the prefix and suffix strings. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: int u8_casecmp (const uint8_t *S1, size_t N1, const uint8_t *S2, size_t N2, const char *ISO639_LANGUAGE, uninorm_t NF, int *RESULTP) @@ -3818,6 +3979,9 @@ rules of the current locale. NF must be either ‘UNINORM_NFC’, ‘UNINORM_NFKC’, or NULL for no normalization. + The RESULTBUF and LENGTHP arguments are as described in chapter + *note Conventions::. + -- Function: int u8_casecoll (const uint8_t *S1, size_t N1, const uint8_t *S2, size_t N2, const char *ISO639_LANGUAGE, uninorm_t NF, int *RESULTP) @@ -3944,7 +4108,7 @@ the file ‘DEPENDENCIES’. Then you can proceed to build and install the library, as described in the file ‘INSTALL’. For installation on Windows systems, please -refer to the file ‘README.windows’. +refer to the file ‘INSTALL.windows’.  File: libunistring.info, Node: Compiler options, Next: Include files, Prev: Installation, Up: Using the library @@ -4065,7 +4229,7 @@ file, please include a description of the options that you passed to the ‘configure’ script.  -File: libunistring.info, Node: More functionality, Next: Licenses, Prev: Using the library, Up: Top +File: libunistring.info, Node: More functionality, Next: The wchar_t mess, Prev: Using the library, Up: Top 17 More advanced functionality ****************************** @@ -4078,9 +4242,54 @@ given toolkit (KDE/Qt or GNOME/Gtk), we recommend the Pango library: .  -File: libunistring.info, Node: Licenses, Next: Index, Prev: More functionality, Up: Top +File: libunistring.info, Node: The wchar_t mess, Next: Licenses, Prev: More functionality, Up: Top + +Appendix A The ‘wchar_t’ mess +***************************** + + The ISO C and POSIX standard creators made an attempt to fix the +first problem mentioned in the section *note char * strings::. They +introduced + • a type ‘wchar_t’, designed to encapsulate an entire character, + • a “wide string” type ‘wchar_t *’, and + • functions declared in ‘’ that were meant to supplant the + ones in ‘’. + + Unfortunately, this API and its implementation has numerous problems: + + • On AIX and Windows platforms, ‘wchar_t’ is a 16-bit type. This + means that it can never accommodate an entire Unicode character. + Either the ‘wchar_t *’ strings are limited to characters in UCS-2 + (the “Basic Multilingual Plane” of Unicode), or — if ‘wchar_t *’ + strings are encoded in UTF-16 — a ‘wchar_t’ represents only half of + a character in the worst case, making the ‘’ functions + pointless. + + • On Solaris and FreeBSD, the ‘wchar_t’ encoding is locale dependent + and undocumented. This means, if you want to know any property of + a ‘wchar_t’ character, other than the properties defined by + ‘’ — such as whether it’s a dash, currency symbol, + paragraph separator, or similar —, you have to convert it to ‘char + *’ encoding first, by use of the function ‘wctomb’. + + • When you read a stream of wide characters, through the functions + ‘fgetwc’ and ‘fgetws’, and when the input stream/file is not in the + expected encoding, you have no way to determine the invalid byte + sequence and do some corrective action. If you use these + functions, your program becomes “garbage in - more garbage out” or + “garbage in - abort”. + + As a consequence, it is better to use multibyte strings, as explained +in the section *note char * strings::. Such multibyte strings can +bypass limitations of the ‘wchar_t’ type, if you use functions defined +in gnulib and libunistring for text processing. They can also +faithfully transport malformed characters that were present in the +input, without requiring the program to produce garbage or abort. + + +File: libunistring.info, Node: Licenses, Next: Index, Prev: The wchar_t mess, Up: Top -Appendix A Licenses +Appendix B Licenses ******************* The files of this package are covered by the licenses indicated in @@ -4128,7 +4337,7 @@ each particular file or directory. Here is a summary:  File: libunistring.info, Node: GNU GPL, Next: GNU LGPL, Up: Licenses -A.1 GNU GENERAL PUBLIC LICENSE +B.1 GNU GENERAL PUBLIC LICENSE ============================== Version 3, 29 June 2007 @@ -4844,7 +5053,7 @@ please read .  File: libunistring.info, Node: GNU LGPL, Next: GNU FDL, Prev: GNU GPL, Up: Licenses -A.2 GNU LESSER GENERAL PUBLIC LICENSE +B.2 GNU LESSER GENERAL PUBLIC LICENSE ===================================== Version 3, 29 June 2007 @@ -5016,7 +5225,7 @@ supplemented by the additional permissions listed below.  File: libunistring.info, Node: GNU FDL, Prev: GNU LGPL, Up: Licenses -A.3 GNU Free Documentation License +B.3 GNU Free Documentation License ================================== Version 1.3, 3 November 2008 @@ -5536,50 +5745,49 @@ Index * char, type: char * strings. (line 22) * combining, Unicode characters: Composition of characters. (line 6) -* comparing: Elementary string functions. - (line 108) -* comparing <1>: Elementary string functions on NUL terminated strings. - (line 131) +* comparing: Comparing Unicode strings. + (line 6) +* comparing <1>: Comparing NUL terminated Unicode strings. + (line 6) * comparing, ignoring case: Case insensitive comparison. (line 6) * comparing, ignoring case, with collation rules: Case insensitive comparison. - (line 65) + (line 71) * comparing, ignoring normalization: Normalizing comparisons. (line 6) * comparing, ignoring normalization and case: Case insensitive comparison. (line 6) * comparing, ignoring normalization and case, with collation rules: Case insensitive comparison. - (line 65) + (line 71) * comparing, ignoring normalization, with collation rules: Normalizing comparisons. (line 22) -* comparing, with collation rules: Elementary string functions on NUL terminated strings. - (line 143) +* comparing, with collation rules: Comparing NUL terminated Unicode strings. + (line 18) * comparing, with collation rules, ignoring case: Case insensitive comparison. - (line 65) + (line 71) * comparing, with collation rules, ignoring normalization: Normalizing comparisons. (line 22) * comparing, with collation rules, ignoring normalization and case: Case insensitive comparison. - (line 65) + (line 71) * compiler options: Compiler options. (line 24) * composing, Unicode characters: Composition of characters. (line 6) * converting: Elementary string conversions. (line 6) * converting <1>: uniconv.h. (line 45) -* copying: Elementary string functions. - (line 72) -* copying <1>: Elementary string functions on NUL terminated strings. - (line 62) -* counting: Elementary string functions. - (line 153) +* copying: Copying Unicode strings. + (line 6) +* copying <1>: Copying a NUL terminated Unicode string. + (line 6) +* counting: Counting characters. (line 6) * decomposing: Decomposition of characters. (line 6) * dependencies: Installation. (line 6) * detecting case: Case detection. (line 6) * duplicating: Elementary string functions with memory allocation. (line 6) -* duplicating <1>: Elementary string functions on NUL terminated strings. - (line 169) +* duplicating <1>: Duplicating a NUL terminated Unicode string. + (line 6) * enum iconv_ilseq_handler: uniconv.h. (line 29) * FDL, GNU Free Documentation License: GNU FDL. (line 6) * formatted output: unistdio.h. (line 6) @@ -5594,9 +5802,8 @@ Index (line 6) * installation: Installation. (line 10) * internationalization: Unicode and i18n. (line 6) -* iterating: Elementary string functions. - (line 6) -* iterating <1>: Elementary string functions on NUL terminated strings. +* iterating: Iterating. (line 6) +* iterating <1>: Iterating over a NUL terminated Unicode string. (line 15) * Java, programming language: ISO C and Java syntax. (line 6) @@ -5629,12 +5836,12 @@ Index * rendering: More functionality. (line 9) * return value conventions: Conventions. (line 47) * scripts: Scripts. (line 6) -* searching, for a character: Elementary string functions. - (line 140) -* searching, for a character <1>: Elementary string functions on NUL terminated strings. - (line 179) -* searching, for a substring: Elementary string functions on NUL terminated strings. - (line 235) +* searching, for a character: Searching for a character. + (line 6) +* searching, for a character <1>: Searching for a character in a NUL terminated Unicode string. + (line 6) +* searching, for a substring: Searching for a substring. + (line 6) * stream, normalizing a: Normalization of streams. (line 6) * struct uninorm_filter: Normalization of streams. @@ -5644,13 +5851,13 @@ Index * u16_asnprintf: unistdio.h. (line 111) * u16_asprintf: unistdio.h. (line 109) * u16_casecmp: Case insensitive comparison. - (line 48) + (line 54) * u16_casecoll: Case insensitive comparison. - (line 91) + (line 100) * u16_casefold: Case insensitive comparison. (line 12) * u16_casexfrm: Case insensitive comparison. - (line 71) + (line 77) * u16_casing_prefixes_context: Case mappings of substrings. (line 36) * u16_casing_prefix_context: Case mappings of substrings. @@ -5661,28 +5868,28 @@ Index (line 57) * u16_check: Elementary string checks. (line 10) -* u16_chr: Elementary string functions. - (line 143) -* u16_cmp: Elementary string functions. - (line 113) -* u16_cmp2: Elementary string functions. - (line 129) +* u16_chr: Searching for a character. + (line 9) +* u16_cmp: Comparing Unicode strings. + (line 11) +* u16_cmp2: Comparing Unicode strings. + (line 27) * u16_conv_from_encoding: uniconv.h. (line 51) * u16_conv_to_encoding: uniconv.h. (line 88) -* u16_cpy: Elementary string functions. - (line 76) +* u16_cpy: Copying Unicode strings. + (line 10) * u16_cpy_alloc: Elementary string functions with memory allocation. (line 9) * u16_ct_casefold: Case insensitive comparison. - (line 32) + (line 35) * u16_ct_tolower: Case mappings of substrings. - (line 98) + (line 101) * u16_ct_totitle: Case mappings of substrings. - (line 116) + (line 122) * u16_ct_toupper: Case mappings of substrings. (line 80) -* u16_endswith: Elementary string functions on NUL terminated strings. - (line 259) +* u16_endswith: Searching for a substring. + (line 30) * u16_grapheme_breaks: Grapheme cluster breaks in a string. (line 42) * u16_grapheme_next: Grapheme cluster breaks in a string. @@ -5694,94 +5901,86 @@ Index * u16_is_lowercase: Case detection. (line 22) * u16_is_titlecase: Case detection. (line 32) * u16_is_uppercase: Case detection. (line 12) -* u16_mblen: Elementary string functions. - (line 10) -* u16_mbsnlen: Elementary string functions. - (line 156) -* u16_mbtouc: Elementary string functions. - (line 37) -* u16_mbtoucr: Elementary string functions. - (line 44) -* u16_mbtouc_unsafe: Elementary string functions. +* u16_mblen: Iterating. (line 10) +* u16_mbsnlen: Counting characters. (line 9) +* u16_mbtouc: Iterating. (line 20) +* u16_mbtoucr: Iterating. (line 48) +* u16_mbtouc_unsafe: Iterating. (line 39) +* u16_move: Copying Unicode strings. (line 21) -* u16_move: Elementary string functions. - (line 87) -* u16_next: Elementary string functions on NUL terminated strings. +* u16_next: Iterating over a NUL terminated Unicode string. (line 23) * u16_normalize: Normalization of strings. (line 48) * u16_normcmp: Normalizing comparisons. (line 11) * u16_normcoll: Normalizing comparisons. - (line 37) + (line 40) * u16_normxfrm: Normalizing comparisons. (line 24) * u16_possible_linebreaks: unilbrk.h. (line 44) -* u16_prev: Elementary string functions on NUL terminated strings. +* u16_prev: Iterating over a NUL terminated Unicode string. + (line 34) +* u16_set: Copying Unicode strings. (line 34) -* u16_set: Elementary string functions. - (line 100) * u16_snprintf: unistdio.h. (line 107) * u16_sprintf: unistdio.h. (line 106) -* u16_startswith: Elementary string functions on NUL terminated strings. - (line 251) -* u16_stpcpy: Elementary string functions on NUL terminated strings. - (line 75) -* u16_stpncpy: Elementary string functions on NUL terminated strings. - (line 98) -* u16_strcat: Elementary string functions on NUL terminated strings. - (line 111) -* u16_strchr: Elementary string functions on NUL terminated strings. - (line 182) -* u16_strcmp: Elementary string functions on NUL terminated strings. - (line 134) -* u16_strcoll: Elementary string functions on NUL terminated strings. - (line 144) +* u16_startswith: Searching for a substring. + (line 22) +* u16_stpcpy: Copying a NUL terminated Unicode string. + (line 19) +* u16_stpncpy: Copying a NUL terminated Unicode string. + (line 42) +* u16_strcat: Copying a NUL terminated Unicode string. + (line 55) +* u16_strchr: Searching for a character in a NUL terminated Unicode string. + (line 9) +* u16_strcmp: Comparing NUL terminated Unicode strings. + (line 9) +* u16_strcoll: Comparing NUL terminated Unicode strings. + (line 19) * u16_strconv_from_encoding: uniconv.h. (line 127) * u16_strconv_from_locale: uniconv.h. (line 156) * u16_strconv_to_encoding: uniconv.h. (line 140) * u16_strconv_to_locale: uniconv.h. (line 166) -* u16_strcpy: Elementary string functions on NUL terminated strings. - (line 65) -* u16_strcspn: Elementary string functions on NUL terminated strings. - (line 202) -* u16_strdup: Elementary string functions on NUL terminated strings. - (line 172) -* u16_strlen: Elementary string functions on NUL terminated strings. - (line 47) -* u16_strmblen: Elementary string functions on NUL terminated strings. +* u16_strcpy: Copying a NUL terminated Unicode string. + (line 9) +* u16_strcspn: Searching for a character in a NUL terminated Unicode string. + (line 29) +* u16_strdup: Duplicating a NUL terminated Unicode string. + (line 9) +* u16_strlen: Length. (line 9) +* u16_strmblen: Iterating over a NUL terminated Unicode string. (line 10) -* u16_strmbtouc: Elementary string functions on NUL terminated strings. +* u16_strmbtouc: Iterating over a NUL terminated Unicode string. (line 16) -* u16_strncat: Elementary string functions on NUL terminated strings. - (line 122) -* u16_strncmp: Elementary string functions on NUL terminated strings. - (line 160) -* u16_strncpy: Elementary string functions on NUL terminated strings. - (line 87) -* u16_strnlen: Elementary string functions on NUL terminated strings. - (line 55) -* u16_strpbrk: Elementary string functions on NUL terminated strings. - (line 226) -* u16_strrchr: Elementary string functions on NUL terminated strings. - (line 190) -* u16_strspn: Elementary string functions on NUL terminated strings. - (line 214) -* u16_strstr: Elementary string functions on NUL terminated strings. - (line 240) -* u16_strtok: Elementary string functions on NUL terminated strings. - (line 269) +* u16_strncat: Copying a NUL terminated Unicode string. + (line 66) +* u16_strncmp: Comparing NUL terminated Unicode strings. + (line 35) +* u16_strncpy: Copying a NUL terminated Unicode string. + (line 31) +* u16_strnlen: Length. (line 17) +* u16_strpbrk: Searching for a character in a NUL terminated Unicode string. + (line 53) +* u16_strrchr: Searching for a character in a NUL terminated Unicode string. + (line 17) +* u16_strspn: Searching for a character in a NUL terminated Unicode string. + (line 41) +* u16_strstr: Searching for a substring. + (line 11) +* u16_strtok: Tokenizing. (line 10) * u16_strwidth: uniwidth.h. (line 38) * u16_tolower: Case mappings of strings. - (line 41) + (line 44) * u16_totitle: Case mappings of strings. - (line 55) + (line 61) * u16_toupper: Case mappings of strings. (line 27) * u16_to_u32: Elementary string conversions. - (line 21) + (line 30) * u16_to_u8: Elementary string conversions. - (line 17) + (line 23) * u16_u16_asnprintf: unistdio.h. (line 131) * u16_u16_asprintf: unistdio.h. (line 129) * u16_u16_snprintf: unistdio.h. (line 127) @@ -5790,8 +5989,8 @@ Index * u16_u16_vasprintf: unistdio.h. (line 137) * u16_u16_vsnprintf: unistdio.h. (line 135) * u16_u16_vsprintf: unistdio.h. (line 133) -* u16_uctomb: Elementary string functions. - (line 61) +* u16_uctomb: Creating Unicode strings. + (line 10) * u16_vasnprintf: unistdio.h. (line 119) * u16_vasprintf: unistdio.h. (line 117) * u16_vsnprintf: unistdio.h. (line 115) @@ -5803,13 +6002,13 @@ Index * u32_asnprintf: unistdio.h. (line 150) * u32_asprintf: unistdio.h. (line 148) * u32_casecmp: Case insensitive comparison. - (line 51) + (line 57) * u32_casecoll: Case insensitive comparison. - (line 94) + (line 103) * u32_casefold: Case insensitive comparison. (line 15) * u32_casexfrm: Case insensitive comparison. - (line 74) + (line 80) * u32_casing_prefixes_context: Case mappings of substrings. (line 38) * u32_casing_prefix_context: Case mappings of substrings. @@ -5820,28 +6019,28 @@ Index (line 59) * u32_check: Elementary string checks. (line 11) -* u32_chr: Elementary string functions. - (line 145) -* u32_cmp: Elementary string functions. - (line 115) -* u32_cmp2: Elementary string functions. - (line 131) +* u32_chr: Searching for a character. + (line 11) +* u32_cmp: Comparing Unicode strings. + (line 13) +* u32_cmp2: Comparing Unicode strings. + (line 29) * u32_conv_from_encoding: uniconv.h. (line 54) * u32_conv_to_encoding: uniconv.h. (line 91) -* u32_cpy: Elementary string functions. - (line 78) +* u32_cpy: Copying Unicode strings. + (line 12) * u32_cpy_alloc: Elementary string functions with memory allocation. (line 10) * u32_ct_casefold: Case insensitive comparison. - (line 37) + (line 40) * u32_ct_tolower: Case mappings of substrings. - (line 103) + (line 106) * u32_ct_totitle: Case mappings of substrings. - (line 121) + (line 127) * u32_ct_toupper: Case mappings of substrings. (line 85) -* u32_endswith: Elementary string functions on NUL terminated strings. - (line 261) +* u32_endswith: Searching for a substring. + (line 32) * u32_grapheme_breaks: Grapheme cluster breaks in a string. (line 44) * u32_grapheme_next: Grapheme cluster breaks in a string. @@ -5853,94 +6052,86 @@ Index * u32_is_lowercase: Case detection. (line 24) * u32_is_titlecase: Case detection. (line 34) * u32_is_uppercase: Case detection. (line 14) -* u32_mblen: Elementary string functions. - (line 11) -* u32_mbsnlen: Elementary string functions. - (line 157) -* u32_mbtouc: Elementary string functions. - (line 38) -* u32_mbtoucr: Elementary string functions. - (line 45) -* u32_mbtouc_unsafe: Elementary string functions. +* u32_mblen: Iterating. (line 11) +* u32_mbsnlen: Counting characters. (line 10) +* u32_mbtouc: Iterating. (line 21) +* u32_mbtoucr: Iterating. (line 49) +* u32_mbtouc_unsafe: Iterating. (line 41) +* u32_move: Copying Unicode strings. (line 23) -* u32_move: Elementary string functions. - (line 89) -* u32_next: Elementary string functions on NUL terminated strings. +* u32_next: Iterating over a NUL terminated Unicode string. (line 24) * u32_normalize: Normalization of strings. (line 50) * u32_normcmp: Normalizing comparisons. (line 13) * u32_normcoll: Normalizing comparisons. - (line 39) + (line 42) * u32_normxfrm: Normalizing comparisons. (line 26) * u32_possible_linebreaks: unilbrk.h. (line 46) -* u32_prev: Elementary string functions on NUL terminated strings. +* u32_prev: Iterating over a NUL terminated Unicode string. (line 36) -* u32_set: Elementary string functions. - (line 101) +* u32_set: Copying Unicode strings. + (line 35) * u32_snprintf: unistdio.h. (line 146) * u32_sprintf: unistdio.h. (line 145) -* u32_startswith: Elementary string functions on NUL terminated strings. - (line 253) -* u32_stpcpy: Elementary string functions on NUL terminated strings. - (line 77) -* u32_stpncpy: Elementary string functions on NUL terminated strings. - (line 100) -* u32_strcat: Elementary string functions on NUL terminated strings. - (line 113) -* u32_strchr: Elementary string functions on NUL terminated strings. - (line 183) -* u32_strcmp: Elementary string functions on NUL terminated strings. - (line 135) -* u32_strcoll: Elementary string functions on NUL terminated strings. - (line 145) +* u32_startswith: Searching for a substring. + (line 24) +* u32_stpcpy: Copying a NUL terminated Unicode string. + (line 21) +* u32_stpncpy: Copying a NUL terminated Unicode string. + (line 44) +* u32_strcat: Copying a NUL terminated Unicode string. + (line 57) +* u32_strchr: Searching for a character in a NUL terminated Unicode string. + (line 10) +* u32_strcmp: Comparing NUL terminated Unicode strings. + (line 10) +* u32_strcoll: Comparing NUL terminated Unicode strings. + (line 20) * u32_strconv_from_encoding: uniconv.h. (line 129) * u32_strconv_from_locale: uniconv.h. (line 157) * u32_strconv_to_encoding: uniconv.h. (line 142) * u32_strconv_to_locale: uniconv.h. (line 167) -* u32_strcpy: Elementary string functions on NUL terminated strings. - (line 67) -* u32_strcspn: Elementary string functions on NUL terminated strings. - (line 204) -* u32_strdup: Elementary string functions on NUL terminated strings. - (line 173) -* u32_strlen: Elementary string functions on NUL terminated strings. - (line 48) -* u32_strmblen: Elementary string functions on NUL terminated strings. +* u32_strcpy: Copying a NUL terminated Unicode string. + (line 11) +* u32_strcspn: Searching for a character in a NUL terminated Unicode string. + (line 31) +* u32_strdup: Duplicating a NUL terminated Unicode string. + (line 10) +* u32_strlen: Length. (line 10) +* u32_strmblen: Iterating over a NUL terminated Unicode string. (line 11) -* u32_strmbtouc: Elementary string functions on NUL terminated strings. +* u32_strmbtouc: Iterating over a NUL terminated Unicode string. (line 17) -* u32_strncat: Elementary string functions on NUL terminated strings. - (line 124) -* u32_strncmp: Elementary string functions on NUL terminated strings. - (line 162) -* u32_strncpy: Elementary string functions on NUL terminated strings. - (line 89) -* u32_strnlen: Elementary string functions on NUL terminated strings. - (line 56) -* u32_strpbrk: Elementary string functions on NUL terminated strings. - (line 228) -* u32_strrchr: Elementary string functions on NUL terminated strings. - (line 191) -* u32_strspn: Elementary string functions on NUL terminated strings. - (line 216) -* u32_strstr: Elementary string functions on NUL terminated strings. - (line 242) -* u32_strtok: Elementary string functions on NUL terminated strings. - (line 271) +* u32_strncat: Copying a NUL terminated Unicode string. + (line 68) +* u32_strncmp: Comparing NUL terminated Unicode strings. + (line 37) +* u32_strncpy: Copying a NUL terminated Unicode string. + (line 33) +* u32_strnlen: Length. (line 18) +* u32_strpbrk: Searching for a character in a NUL terminated Unicode string. + (line 55) +* u32_strrchr: Searching for a character in a NUL terminated Unicode string. + (line 18) +* u32_strspn: Searching for a character in a NUL terminated Unicode string. + (line 43) +* u32_strstr: Searching for a substring. + (line 13) +* u32_strtok: Tokenizing. (line 12) * u32_strwidth: uniwidth.h. (line 39) * u32_tolower: Case mappings of strings. - (line 44) + (line 47) * u32_totitle: Case mappings of strings. - (line 58) + (line 64) * u32_toupper: Case mappings of strings. (line 30) * u32_to_u16: Elementary string conversions. - (line 29) + (line 44) * u32_to_u8: Elementary string conversions. - (line 25) + (line 37) * u32_u32_asnprintf: unistdio.h. (line 170) * u32_u32_asprintf: unistdio.h. (line 168) * u32_u32_snprintf: unistdio.h. (line 166) @@ -5949,8 +6140,8 @@ Index * u32_u32_vasprintf: unistdio.h. (line 176) * u32_u32_vsnprintf: unistdio.h. (line 174) * u32_u32_vsprintf: unistdio.h. (line 172) -* u32_uctomb: Elementary string functions. - (line 62) +* u32_uctomb: Creating Unicode strings. + (line 11) * u32_vasnprintf: unistdio.h. (line 158) * u32_vasprintf: unistdio.h. (line 156) * u32_vsnprintf: unistdio.h. (line 154) @@ -5962,13 +6153,13 @@ Index * u8_asnprintf: unistdio.h. (line 72) * u8_asprintf: unistdio.h. (line 70) * u8_casecmp: Case insensitive comparison. - (line 45) + (line 51) * u8_casecoll: Case insensitive comparison. - (line 88) + (line 97) * u8_casefold: Case insensitive comparison. (line 9) * u8_casexfrm: Case insensitive comparison. - (line 68) + (line 74) * u8_casing_prefixes_context: Case mappings of substrings. (line 34) * u8_casing_prefix_context: Case mappings of substrings. @@ -5979,28 +6170,28 @@ Index (line 55) * u8_check: Elementary string checks. (line 9) -* u8_chr: Elementary string functions. - (line 142) -* u8_cmp: Elementary string functions. - (line 111) -* u8_cmp2: Elementary string functions. - (line 127) +* u8_chr: Searching for a character. + (line 8) +* u8_cmp: Comparing Unicode strings. + (line 9) +* u8_cmp2: Comparing Unicode strings. + (line 25) * u8_conv_from_encoding: uniconv.h. (line 48) * u8_conv_to_encoding: uniconv.h. (line 85) -* u8_cpy: Elementary string functions. - (line 74) +* u8_cpy: Copying Unicode strings. + (line 8) * u8_cpy_alloc: Elementary string functions with memory allocation. (line 8) * u8_ct_casefold: Case insensitive comparison. - (line 27) + (line 30) * u8_ct_tolower: Case mappings of substrings. - (line 93) + (line 96) * u8_ct_totitle: Case mappings of substrings. - (line 111) + (line 117) * u8_ct_toupper: Case mappings of substrings. (line 75) -* u8_endswith: Elementary string functions on NUL terminated strings. - (line 257) +* u8_endswith: Searching for a substring. + (line 28) * u8_grapheme_breaks: Grapheme cluster breaks in a string. (line 40) * u8_grapheme_next: Grapheme cluster breaks in a string. @@ -6012,94 +6203,86 @@ Index * u8_is_lowercase: Case detection. (line 20) * u8_is_titlecase: Case detection. (line 30) * u8_is_uppercase: Case detection. (line 10) -* u8_mblen: Elementary string functions. - (line 9) -* u8_mbsnlen: Elementary string functions. - (line 155) -* u8_mbtouc: Elementary string functions. - (line 36) -* u8_mbtoucr: Elementary string functions. - (line 43) -* u8_mbtouc_unsafe: Elementary string functions. +* u8_mblen: Iterating. (line 9) +* u8_mbsnlen: Counting characters. (line 8) +* u8_mbtouc: Iterating. (line 19) +* u8_mbtoucr: Iterating. (line 47) +* u8_mbtouc_unsafe: Iterating. (line 37) +* u8_move: Copying Unicode strings. (line 19) -* u8_move: Elementary string functions. - (line 85) -* u8_next: Elementary string functions on NUL terminated strings. +* u8_next: Iterating over a NUL terminated Unicode string. (line 22) * u8_normalize: Normalization of strings. (line 46) * u8_normcmp: Normalizing comparisons. (line 9) * u8_normcoll: Normalizing comparisons. - (line 35) + (line 38) * u8_normxfrm: Normalizing comparisons. (line 22) * u8_possible_linebreaks: unilbrk.h. (line 42) -* u8_prev: Elementary string functions on NUL terminated strings. +* u8_prev: Iterating over a NUL terminated Unicode string. (line 32) -* u8_set: Elementary string functions. - (line 99) +* u8_set: Copying Unicode strings. + (line 33) * u8_snprintf: unistdio.h. (line 68) * u8_sprintf: unistdio.h. (line 67) -* u8_startswith: Elementary string functions on NUL terminated strings. - (line 249) -* u8_stpcpy: Elementary string functions on NUL terminated strings. - (line 74) -* u8_stpncpy: Elementary string functions on NUL terminated strings. - (line 96) -* u8_strcat: Elementary string functions on NUL terminated strings. - (line 110) -* u8_strchr: Elementary string functions on NUL terminated strings. - (line 181) -* u8_strcmp: Elementary string functions on NUL terminated strings. - (line 133) -* u8_strcoll: Elementary string functions on NUL terminated strings. - (line 143) +* u8_startswith: Searching for a substring. + (line 20) +* u8_stpcpy: Copying a NUL terminated Unicode string. + (line 18) +* u8_stpncpy: Copying a NUL terminated Unicode string. + (line 40) +* u8_strcat: Copying a NUL terminated Unicode string. + (line 54) +* u8_strchr: Searching for a character in a NUL terminated Unicode string. + (line 8) +* u8_strcmp: Comparing NUL terminated Unicode strings. + (line 8) +* u8_strcoll: Comparing NUL terminated Unicode strings. + (line 18) * u8_strconv_from_encoding: uniconv.h. (line 125) * u8_strconv_from_locale: uniconv.h. (line 155) * u8_strconv_to_encoding: uniconv.h. (line 138) * u8_strconv_to_locale: uniconv.h. (line 165) -* u8_strcpy: Elementary string functions on NUL terminated strings. - (line 64) -* u8_strcspn: Elementary string functions on NUL terminated strings. - (line 200) -* u8_strdup: Elementary string functions on NUL terminated strings. - (line 171) -* u8_strlen: Elementary string functions on NUL terminated strings. - (line 46) -* u8_strmblen: Elementary string functions on NUL terminated strings. +* u8_strcpy: Copying a NUL terminated Unicode string. + (line 8) +* u8_strcspn: Searching for a character in a NUL terminated Unicode string. + (line 27) +* u8_strdup: Duplicating a NUL terminated Unicode string. + (line 8) +* u8_strlen: Length. (line 8) +* u8_strmblen: Iterating over a NUL terminated Unicode string. (line 9) -* u8_strmbtouc: Elementary string functions on NUL terminated strings. +* u8_strmbtouc: Iterating over a NUL terminated Unicode string. (line 15) -* u8_strncat: Elementary string functions on NUL terminated strings. - (line 120) -* u8_strncmp: Elementary string functions on NUL terminated strings. - (line 158) -* u8_strncpy: Elementary string functions on NUL terminated strings. - (line 85) -* u8_strnlen: Elementary string functions on NUL terminated strings. - (line 54) -* u8_strpbrk: Elementary string functions on NUL terminated strings. - (line 224) -* u8_strrchr: Elementary string functions on NUL terminated strings. - (line 189) -* u8_strspn: Elementary string functions on NUL terminated strings. - (line 212) -* u8_strstr: Elementary string functions on NUL terminated strings. - (line 238) -* u8_strtok: Elementary string functions on NUL terminated strings. - (line 267) +* u8_strncat: Copying a NUL terminated Unicode string. + (line 64) +* u8_strncmp: Comparing NUL terminated Unicode strings. + (line 33) +* u8_strncpy: Copying a NUL terminated Unicode string. + (line 29) +* u8_strnlen: Length. (line 16) +* u8_strpbrk: Searching for a character in a NUL terminated Unicode string. + (line 51) +* u8_strrchr: Searching for a character in a NUL terminated Unicode string. + (line 16) +* u8_strspn: Searching for a character in a NUL terminated Unicode string. + (line 39) +* u8_strstr: Searching for a substring. + (line 9) +* u8_strtok: Tokenizing. (line 8) * u8_strwidth: uniwidth.h. (line 37) * u8_tolower: Case mappings of strings. - (line 38) + (line 41) * u8_totitle: Case mappings of strings. - (line 52) + (line 58) * u8_toupper: Case mappings of strings. (line 24) * u8_to_u16: Elementary string conversions. (line 9) * u8_to_u32: Elementary string conversions. - (line 13) + (line 16) * u8_u8_asnprintf: unistdio.h. (line 92) * u8_u8_asprintf: unistdio.h. (line 90) * u8_u8_snprintf: unistdio.h. (line 88) @@ -6108,8 +6291,8 @@ Index * u8_u8_vasprintf: unistdio.h. (line 98) * u8_u8_vsnprintf: unistdio.h. (line 96) * u8_u8_vsprintf: unistdio.h. (line 94) -* u8_uctomb: Elementary string functions. - (line 60) +* u8_uctomb: Creating Unicode strings. + (line 9) * u8_vasnprintf: unistdio.h. (line 80) * u8_vasprintf: unistdio.h. (line 78) * u8_vsnprintf: unistdio.h. (line 76) @@ -6150,13 +6333,13 @@ Index (line 80) * uc_digit_value: Digit value. (line 10) * uc_fraction_t: Numeric value. (line 12) -* uc_general_category: Object oriented API. (line 219) -* uc_general_category_and: Object oriented API. (line 180) -* uc_general_category_and_not: Object oriented API. (line 187) -* uc_general_category_byname: Object oriented API. (line 209) -* uc_general_category_long_name: Object oriented API. (line 203) -* uc_general_category_name: Object oriented API. (line 197) -* uc_general_category_or: Object oriented API. (line 174) +* uc_general_category: Object oriented API. (line 221) +* uc_general_category_and: Object oriented API. (line 182) +* uc_general_category_and_not: Object oriented API. (line 189) +* uc_general_category_byname: Object oriented API. (line 211) +* uc_general_category_long_name: Object oriented API. (line 205) +* uc_general_category_name: Object oriented API. (line 199) +* uc_general_category_or: Object oriented API. (line 176) * uc_general_category_t: Object oriented API. (line 6) * uc_graphemeclusterbreak_property: Grapheme cluster break property. (line 37) @@ -6177,7 +6360,7 @@ Index (line 9) * uc_is_digit: Classifications like in ISO C. (line 26) -* uc_is_general_category: Object oriented API. (line 224) +* uc_is_general_category: Object oriented API. (line 226) * uc_is_general_category_withtable: Bit mask API. (line 51) * uc_is_graph: Classifications like in ISO C. (line 30) @@ -6408,11 +6591,11 @@ Index * ulc_asnprintf: unistdio.h. (line 49) * ulc_asprintf: unistdio.h. (line 47) * ulc_casecmp: Case insensitive comparison. - (line 54) + (line 60) * ulc_casecoll: Case insensitive comparison. - (line 97) + (line 106) * ulc_casexfrm: Case insensitive comparison. - (line 77) + (line 83) * ulc_fprintf: unistdio.h. (line 184) * ulc_grapheme_breaks: Grapheme cluster breaks in a string. (line 46) @@ -6498,78 +6681,92 @@ Index  Tag Table: Node: Top269 -Node: Introduction3400 -Node: Unicode5493 -Node: Unicode and i18n7378 -Node: Locale encodings8848 -Node: In-memory representation11113 -Node: char * strings12239 -Node: The wchar_t mess17727 -Node: Unicode strings20035 -Node: Conventions21220 -Node: unitypes.h23512 -Node: unistr.h24096 -Node: Elementary string checks24661 -Node: Elementary string conversions25283 -Node: Elementary string functions26585 -Node: Elementary string functions with memory allocation33644 -Node: Elementary string functions on NUL terminated strings34266 -Node: uniconv.h46494 -Node: unistdio.h54447 -Node: uniname.h62700 -Node: unictype.h64106 -Node: General category65034 -Node: Object oriented API66089 -Node: Bit mask API75323 -Node: Canonical combining class77618 -Node: Bidi class81852 -Node: Decimal digit value85265 -Node: Digit value85822 -Node: Numeric value86383 -Node: Mirrored character87285 -Node: Arabic shaping87978 -Node: Joining type88451 -Node: Joining group90601 -Node: Properties94039 -Node: Properties as objects94730 -Node: Properties as functions101752 -Node: Scripts107768 -Node: Blocks109173 -Node: ISO C and Java syntax110516 -Node: Classifications like in ISO C112234 -Node: uniwidth.h115046 -Node: unigbrk.h117092 -Node: Grapheme cluster breaks in a string118586 -Node: Grapheme cluster break property121521 -Node: uniwbrk.h123765 -Node: Word breaks in a string124303 -Node: Word break property125395 -Node: unilbrk.h126722 -Node: uninorm.h131018 -Node: Decomposition of characters131655 -Node: Composition of characters135436 -Node: Normalization of strings136149 -Node: Normalizing comparisons138226 -Node: Normalization of streams140628 -Node: unicase.h142753 -Node: Case mappings of characters143442 -Node: Case mappings of strings145591 -Node: Case mappings of substrings148942 -Node: Case insensitive comparison155864 -Node: Case detection161269 -Node: uniregex.h164583 -Node: Using the library164810 -Node: Installation165221 -Node: Compiler options165708 -Node: Include files167348 -Node: Autoconf macro168601 -Node: Reporting problems170241 -Node: More functionality171059 -Node: Licenses171502 -Node: GNU GPL173933 -Node: GNU LGPL211678 -Node: GNU FDL220161 -Node: Index245470 +Node: Introduction3950 +Node: Unicode6043 +Node: Unicode and i18n7928 +Node: Locale encodings9590 +Node: In-memory representation11855 +Node: char * strings13853 +Node: Unicode strings19340 +Node: Conventions20523 +Node: unitypes.h22815 +Node: unistr.h23912 +Node: Elementary string checks24477 +Node: Elementary string conversions25099 +Node: Elementary string functions26977 +Node: Iterating27382 +Node: Creating Unicode strings30212 +Node: Copying Unicode strings31130 +Node: Comparing Unicode strings32743 +Node: Searching for a character34298 +Node: Counting characters35097 +Node: Elementary string functions with memory allocation35780 +Node: Elementary string functions on NUL terminated strings36402 +Node: Iterating over a NUL terminated Unicode string37001 +Node: Length39269 +Node: Copying a NUL terminated Unicode string40327 +Node: Comparing NUL terminated Unicode strings43431 +Node: Duplicating a NUL terminated Unicode string45527 +Node: Searching for a character in a NUL terminated Unicode string46296 +Node: Searching for a substring49060 +Node: Tokenizing50583 +Node: uniconv.h51456 +Node: unistdio.h59409 +Node: uniname.h67662 +Node: unictype.h69068 +Node: General category69996 +Node: Object oriented API71051 +Node: Bit mask API80892 +Node: Canonical combining class83187 +Node: Bidi class87421 +Node: Decimal digit value90834 +Node: Digit value91391 +Node: Numeric value91952 +Node: Mirrored character92854 +Node: Arabic shaping93547 +Node: Joining type94020 +Node: Joining group96170 +Node: Properties99608 +Node: Properties as objects100299 +Node: Properties as functions107321 +Node: Scripts113337 +Node: Blocks114742 +Node: ISO C and Java syntax116085 +Node: Classifications like in ISO C117803 +Node: uniwidth.h120615 +Node: unigbrk.h122661 +Node: Grapheme cluster breaks in a string124155 +Node: Grapheme cluster break property127090 +Node: uniwbrk.h129335 +Node: Word breaks in a string129873 +Node: Word break property130965 +Node: unilbrk.h132292 +Node: uninorm.h136588 +Node: Decomposition of characters137225 +Node: Composition of characters141006 +Node: Normalization of strings141719 +Node: Normalizing comparisons143892 +Node: Normalization of streams146390 +Node: unicase.h148515 +Node: Case mappings of characters149204 +Node: Case mappings of strings151353 +Node: Case mappings of substrings154992 +Node: Case insensitive comparison162202 +Node: Case detection167895 +Node: uniregex.h171209 +Node: Using the library171436 +Node: Installation171847 +Node: Compiler options172335 +Node: Include files173975 +Node: Autoconf macro175228 +Node: Reporting problems176868 +Node: More functionality177686 +Node: The wchar_t mess178137 +Node: Licenses180475 +Node: GNU GPL182904 +Node: GNU LGPL220649 +Node: GNU FDL229132 +Node: Index254441  End Tag Table diff --git a/doc/libunistring.texi b/doc/libunistring.texi index a9c7e0f..6a1d662 100644 --- a/doc/libunistring.texi +++ b/doc/libunistring.texi @@ -31,7 +31,19 @@ @include version.texi @c Location of the POSIX specification on the web. -@set POSIXURL http://www.opengroup.org/onlinepubs/9699919799 +@set POSIXURL http://pubs.opengroup.org/onlinepubs/9699919799 + +@c Macro for referencing a POSIX header. +@ifinfo +@macro posixheader{header} +@code{<\header\>} +@end macro +@end ifinfo +@ifnotinfo +@macro posixheader{header} +@uref{@value{POSIXURL}/basedefs/\header\.html,,@code{<\header\>}} +@end macro +@end ifnotinfo @c Macro for referencing a POSIX function. @c We don't write it as func(), see section "GNU Manuals" of the @@ -86,7 +98,7 @@ This manual is for GNU libunistring. @ignore @c This was: @copying but it triggers a makeinfo 4.13 bug -Copyright (C) 2001-2017 Free Software Foundation, Inc. +Copyright (C) 2001-2018 Free Software Foundation, Inc. This manual is free documentation. It is dually licensed under the GNU FDL and the GNU GPL. This means that you can redistribute this @@ -118,7 +130,7 @@ A copy of the license is included in @ref{GNU GPL}. @page @vskip 0pt plus 1filll @c @insertcopying -Copyright (C) 2001-2017 Free Software Foundation, Inc. +Copyright (C) 2001-2018 Free Software Foundation, Inc. This manual is free documentation. It is dually licensed under the GNU FDL and the GNU GPL. This means that you can redistribute this @@ -166,6 +178,7 @@ A copy of the license is included in @ref{GNU GPL}. * uniregex.h:: Regular expressions * Using the library:: How to link with the library and use it? * More functionality:: More advanced functionality +* The wchar_t mess:: Why @code{wchar_t *} strings are useless * Licenses:: Licenses * Index:: General Index @@ -180,7 +193,6 @@ Introduction * Locale encodings:: What is a locale encoding? * In-memory representation:: How to represent strings in memory? * char * strings:: What to keep in mind with @code{char *} strings -* The wchar_t mess:: Why @code{wchar_t *} strings are useless * Unicode strings:: How are Unicode strings represented? unistr.h @@ -191,6 +203,26 @@ unistr.h * Elementary string functions with memory allocation:: * Elementary string functions on NUL terminated strings:: +Elementary string functions + +* Iterating:: +* Creating Unicode strings:: +* Copying Unicode strings:: +* Comparing Unicode strings:: +* Searching for a character:: +* Counting characters:: + +Elementary string functions on NUL terminated strings + +* Iterating over a NUL terminated Unicode string:: +* Length:: +* Copying a NUL terminated Unicode string:: +* Comparing NUL terminated Unicode strings:: +* Duplicating a NUL terminated Unicode string:: +* Searching for a character in a NUL terminated Unicode string:: +* Searching for a substring:: +* Tokenizing:: + unictype.h * General category:: @@ -304,8 +336,8 @@ in general, contain characters of all kinds of scripts. The text processing functions provided by this library handle all scripts and all languages. libunistring is for you if your application already uses the ISO C / POSIX -@code{}, @code{} functions and the text it operates on is -provided by the user and can be in any language. +@posixheader{ctype.h}, @posixheader{wctype.h} functions and the text it +operates on is provided by the user and can be in any language. libunistring is also for you if your application uses Unicode strings as internal in-memory representation. @@ -390,7 +422,7 @@ in multiple languages present in the same document or even in the same line of text. But use of Unicode is not everything. Internationalization usually consists -of three features: +of four features: @itemize @bullet @item Use of Unicode where needed for text processing. This is what this library @@ -402,6 +434,10 @@ GNU gettext is about. Use of locale specific conventions for date and time formats, for numeric formatting, or for sorting of text. This can be done adequately with the POSIX APIs and the implementation of locales in the GNU C library. +@item +In graphical user interfaces, adapting the GUI to the default text direction +of the current locale (see +@url{https://en.wikipedia.org/wiki/Right-to-left,right-to-left languages}). @end itemize @node Locale encodings @@ -415,7 +451,7 @@ yet universally implemented and not widely used.) @cindex locale categories The locale is partitioned into several aspects, called the ``categories'' of the locale. The main various aspects are: -@itemize +@itemize @bullet @item The character encoding and the character properties. This is the @code{LC_CTYPE} category. @@ -453,7 +489,7 @@ this country earlier. The legacy locale encodings, ISO-8859-15 (which supplanted ISO-8859-1 in most of Europe), ISO-8859-2, KOI8-R, EUC-JP, etc., are still in use in -many places, though. +some places, though. UTF-16 and UTF-32 are not used as locale encodings, because they are not ASCII compatible. @@ -463,7 +499,7 @@ ASCII compatible. There are three ways of representing strings in memory of a running program. -@itemize +@itemize @bullet @item As @samp{char *} strings. Such strings are represented in locale encoding. This approach is employed when not much text processing is done by the @@ -480,6 +516,21 @@ As @samp{wchar_t *}, a.k.a@. ``wide strings''. This approach is misguided, see @ref{The wchar_t mess}. @end itemize +Of course, a @samp{char *} string can, in some cases, be encoded in UTF-8. +You will use the data type depending on what you can guarantee about how +it's encoded: If a string is encoded in the locale encoding, or if you +don't know how it's encoded, use @samp{char *}. If, on the other hand, +you can @emph{guarantee} that it is UTF-8 encoded, then you can use the +UTF-8 string type, @code{uint8_t *}, for it. + +The five types @code{char *}, @code{uint8_t *}, @code{uint16_t *}, +@code{uint32_t *}, and @code{wchar_t *} are incompatible types at the C +level. Therefore, @samp{gcc -Wall} will produce a warning if, by mistake, +your code contains a mismatch between these types. In the context of +using GNU libunistring, even a warning about a mismatch between +@code{char *} and @code{uint8_t *} is a sign of a bug in your code +that you should not try to silence through a cast. + @node char * strings @section @samp{char *} strings @@ -509,9 +560,9 @@ The important fact to remember is: @end cartouche As a consequence: -@itemize +@itemize @bullet @item -The @code{} API is useless in this context; it does not work in +The @posixheader{ctype.h} API is useless in this context; it does not work in multibyte locales. @item The @posixfunc{strlen} function does not return the number of characters @@ -546,7 +597,7 @@ functions do not work with multibyte strings. The workarounds can be found in GNU gnulib @url{http://www.gnu.org/software/gnulib/}. -@itemize +@itemize @bullet @item gnulib has modules @samp{mbchar}, @samp{mbiter}, @samp{mbuiter} that represent multibyte characters and allow to iterate across a multibyte @@ -577,7 +628,7 @@ preferable to these functions; see below. @end itemize The second problem with the C library API is that it has some assumptions built-in that are not valid in some languages: -@itemize +@itemize @bullet @item It assumes that there are only two forms of every character: uppercase and lowercase. This is not true for Croatian, where the character @@ -611,58 +662,6 @@ rather than on characters. This is implemented in this library, through the functions declared in @code{}, see @ref{unicase.h}. -@node The wchar_t mess -@section The @code{wchar_t} mess - -@cindex wchar_t, type -The ISO C and POSIX standard creators made an attempt to fix the first -problem mentioned in the previous section. They introduced -@itemize -@item -a type @samp{wchar_t}, designed to encapsulate an entire character, -@item -a ``wide string'' type @samp{wchar_t *}, and -@item -functions declared in @code{} that were meant to supplant the -ones in @code{}. -@end itemize - -Unfortunately, this API and its implementation has numerous problems: - -@itemize -@item -On AIX and Windows platforms, @code{wchar_t} is a 16-bit type. This -means that it can never accommodate an entire Unicode character. Either -the @code{wchar_t *} strings are limited to characters in UCS-2 (the -``Basic Multilingual Plane'' of Unicode), or --- if @code{wchar_t *} -strings are encoded in UTF-16 --- a @code{wchar_t} represents only half -of a character in the worst case, making the @code{} functions -pointless. - -@item -On Solaris and FreeBSD, the @code{wchar_t} encoding is locale dependent -and undocumented. This means, if you want to know any property of a -@code{wchar_t} character, other than the properties defined by -@code{} --- such as whether it's a dash, currency symbol, -paragraph separator, or similar ---, you have to convert it to -@code{char *} encoding first, by use of the function @posixfunc{wctomb}. - -@item -When you read a stream of wide characters, through the functions -@posixfunc{fgetwc} and @posixfunc{fgetws}, and when the input stream/file is -not in the expected encoding, you have no way to determine the invalid -byte sequence and do some corrective action. If you use these -functions, your program becomes ``garbage in - more garbage out'' or -``garbage in - abort''. -@end itemize - -As a consequence, it is better to use multibyte strings, as explained in -the previous section. Such multibyte strings can bypass limitations -of the @code{wchar_t} type, if you use functions defined in gnulib and -libunistring for text processing. They can also faithfully transport -malformed characters that were present in the input, without requiring -the program to produce garbage or abort. - @node Unicode strings @section Unicode strings @@ -670,7 +669,7 @@ libunistring supports Unicode strings in three representations: @cindex UTF-8, strings @cindex UTF-16, strings @cindex UTF-32, strings -@itemize +@itemize @bullet @item UTF-8 strings, through the type @samp{uint8_t *}. The units are bytes (@code{uint8_t}). @@ -683,7 +682,7 @@ memory words (@code{uint32_t}). @end itemize As with C strings, there are two variants: -@itemize +@itemize @bullet @item Unicode strings with a terminating NUL character are represented as a pointer to the first unit of the string. There is a unit containing @@ -796,7 +795,7 @@ make sure all dependencies are installed. They are listed in the file @cindex installation Then you can proceed to build and install the library, as described in the file @file{INSTALL}. For installation on Windows systems, please refer to -the file @file{README.windows}. +the file @file{INSTALL.windows}. @node Compiler options @section Compiler options @@ -928,6 +927,8 @@ For the rendering of Unicode strings outside of the context of a given toolkit (KDE/Qt or GNOME/Gtk), we recommend the Pango library: @url{http://www.pango.org/}. +@include wchar_t.texi + @node Licenses @appendix Licenses @cindex Licenses @@ -939,7 +940,7 @@ particular file or directory. Here is a summary: @item The @code{libunistring} library and its header files are dual-licensed under "the GNU LGPLv3+ or the GNU GPLv2". This means, you can use it under either -@itemize +@itemize @bullet @item @minus{} the terms of the GNU Lesser General Public License (LGPL) version 3 or (at your option) any later version, or diff --git a/doc/libunistring_1.html b/doc/libunistring_1.html index 906ce94..8219ef3 100644 --- a/doc/libunistring_1.html +++ b/doc/libunistring_1.html @@ -1,6 +1,6 @@ - + + + + + + + + + + -GNU libunistring: A. Licenses +GNU libunistring: A. The wchar_t mess - - + + @@ -42,8 +42,8 @@ ul.toc {list-style: none} - - + + @@ -51,1478 +51,67 @@ ul.toc {list-style: none} - +
[ << ][ >> ]
[ << ][ >> ]         [Top] [Contents][Index][Index] [ ? ]

- - -

A. Licenses

+ + +

A. The wchar_t mess

-

The files of this package are covered by the licenses indicated in each -particular file or directory. Here is a summary: -

-
    -
  • -The libunistring library and its header files are dual-licensed under -"the GNU LGPLv3+ or the GNU GPLv2". This means, you can use it under either -
      -
    • - -the terms of the GNU Lesser General Public License (LGPL) version 3 or -(at your option) any later version, or -
    • - -the terms of the GNU General Public License (GPL) version 2, or -
    • - -the same dual license "the GNU LGPLv3+ or the GNU GPLv2". -
    -

    You find the GNU LGPL version 3 in GNU LESSER GENERAL PUBLIC LICENSE. This license is -based on the GNU GPL version 3, see GNU GENERAL PUBLIC LICENSE. -
    -You can find the GNU GPL version 2 at -https://www.gnu.org/licenses/old-licenses/gpl-2.0.html. -
    -Note: This dual license makes it possible for the libunistring library -to be used by packages under GPLv2 or GPLv2+ licenses, in particular. See -the table in https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility. -

    - -
  • -This manual is free documentation. It is dually licensed under the -GNU FDL and the GNU GPL. This means that you can redistribute this -manual under either of these two licenses, at your choice. -
    -This manual is covered by the GNU FDL. Permission is granted to copy, -distribute and/or modify this document under the terms of the -GNU Free Documentation License (FDL), either version 1.2 of the -License, or (at your option) any later version published by the -Free Software Foundation (FSF); with no Invariant Sections, with no -Front-Cover Text, and with no Back-Cover Texts. -A copy of the license is included in GNU Free Documentation License. -
    -This manual is covered by the GNU GPL. You can redistribute it and/or -modify it under the terms of the GNU General Public License (GPL), either -version 3 of the License, or (at your option) any later version published -by the Free Software Foundation (FSF). -A copy of the license is included in GNU GENERAL PUBLIC LICENSE. -
- - - -
- - -

A.1 GNU GENERAL PUBLIC LICENSE

-

Version 3, 29 June 2007 -

- -
 
Copyright © 2007 Free Software Foundation, Inc. http://fsf.org/
-
-Everyone is permitted to copy and distribute verbatim copies of this
-license document, but changing it is not allowed.
-
- - -

Preamble

- -

The GNU General Public License is a free, copyleft license for -software and other kinds of works. -

-

The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom -to share and change all versions of a program—to make sure it remains -free software for all its users. We, the Free Software Foundation, -use the GNU General Public License for most of our software; it -applies also to any other work released this way by its authors. You -can apply it to your programs, too. -

-

When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. -

-

To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you -have certain responsibilities if you distribute copies of the -software, or if you modify it: responsibilities to respect the freedom -of others. -

-

For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, -receive or can get the source code. And you must show them these -terms so they know their rights. -

-

Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. -

-

For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. -

-

Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the -manufacturer can do so. This is fundamentally incompatible with the -aim of protecting users' freedom to change the software. The -systematic pattern of such abuse occurs in the area of products for -individuals to use, which is precisely where it is most unacceptable. -Therefore, we have designed this version of the GPL to prohibit the -practice for those products. If such problems arise substantially in -other domains, we stand ready to extend this provision to those -domains in future versions of the GPL, as needed to protect the -freedom of users. -

-

Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish -to avoid the special danger that patents applied to a free program -could make it effectively proprietary. To prevent this, the GPL -assures that patents cannot be used to render the program non-free. -

-

The precise terms and conditions for copying, distribution and -modification follow. -

- -

TERMS AND CONDITIONS

- -
    -
  1. Definitions. - -

    “This License” refers to version 3 of the GNU General Public License. -

    -

    “Copyright” also means copyright-like laws that apply to other kinds -of works, such as semiconductor masks. -

    -

    “The Program” refers to any copyrightable work licensed under this -License. Each licensee is addressed as “you”. “Licensees” and -“recipients” may be individuals or organizations. -

    -

    To “modify” a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of -an exact copy. The resulting work is called a “modified version” of -the earlier work or a work “based on” the earlier work. -

    -

    A “covered work” means either the unmodified Program or a work based -on the Program. -

    -

    To “propagate” a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. -

    -

    To “convey” a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user -through a computer network, with no transfer of a copy, is not -conveying. -

    -

    An interactive user interface displays “Appropriate Legal Notices” to -the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. -

    -
  2. Source Code. - -

    The “source code” for a work means the preferred form of the work for -making modifications to it. “Object code” means any non-source form -of a work. -

    -

    A “Standard Interface” means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. -

    -

    The “System Libraries” of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -“Major Component”, in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. -

    -

    The “Corresponding Source” for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. -

    -

    The Corresponding Source need not include anything that users can -regenerate automatically from other parts of the Corresponding Source. -

    -

    The Corresponding Source for a work in source code form is that same -work. -

    -
  3. Basic Permissions. - -

    All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. -

    -

    You may make, run and propagate covered works that you do not convey, -without conditions so long as your license otherwise remains in force. -You may convey covered works to others for the sole purpose of having -them make modifications exclusively for you, or provide you with -facilities for running those works, provided that you comply with the -terms of this License in conveying all material for which you do not -control copyright. Those thus making or running the covered works for -you must do so exclusively on your behalf, under your direction and -control, on terms that prohibit them from making any copies of your -copyrighted material outside their relationship with you. -

    -

    Conveying under any other circumstances is permitted solely under the -conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. -

    -
  4. Protecting Users' Legal Rights From Anti-Circumvention Law. - -

    No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. -

    -

    When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such -circumvention is effected by exercising rights under this License with -respect to the covered work, and you disclaim any intention to limit -operation or modification of the work as a means of enforcing, against -the work's users, your or third parties' legal rights to forbid -circumvention of technological measures. -

    -
  5. Conveying Verbatim Copies. - -

    You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. -

    -

    You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. -

    -
  6. Conveying Modified Source Versions. - -

    You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these -conditions: -

    -
      -
    1. -The work must carry prominent notices stating that you modified it, -and giving a relevant date. - -
    2. -The work must carry prominent notices stating that it is released -under this License and any conditions added under section 7. This -requirement modifies the requirement in section 4 to “keep intact all -notices”. - -
    3. -You must license the entire work, as a whole, under this License to -anyone who comes into possession of a copy. This License will -therefore apply, along with any applicable section 7 additional terms, -to the whole of the work, and all its parts, regardless of how they -are packaged. This License gives no permission to license the work in -any other way, but it does not invalidate such permission if you have -separately received it. - -
    4. -If the work has interactive user interfaces, each must display -Appropriate Legal Notices; however, if the Program has interactive -interfaces that do not display Appropriate Legal Notices, your work -need not make them do so. -
    - -

    A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -“aggregate” if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. -

    -
  7. Conveying Non-Source Forms. - -

    You may convey a covered work in object code form under the terms of -sections 4 and 5, provided that you also convey the machine-readable -Corresponding Source under the terms of this License, in one of these -ways: -

    -
      -
    1. -Convey the object code in, or embodied in, a physical product -(including a physical distribution medium), accompanied by the -Corresponding Source fixed on a durable physical medium customarily -used for software interchange. - -
    2. -Convey the object code in, or embodied in, a physical product -(including a physical distribution medium), accompanied by a written -offer, valid for at least three years and valid for as long as you -offer spare parts or customer support for that product model, to give -anyone who possesses the object code either (1) a copy of the -Corresponding Source for all the software in the product that is -covered by this License, on a durable physical medium customarily used -for software interchange, for a price no more than your reasonable -cost of physically performing this conveying of source, or (2) access -to copy the Corresponding Source from a network server at no charge. - -
    3. -Convey individual copies of the object code with a copy of the written -offer to provide the Corresponding Source. This alternative is -allowed only occasionally and noncommercially, and only if you -received the object code with such an offer, in accord with subsection -6b. - -
    4. -Convey the object code by offering access from a designated place -(gratis or for a charge), and offer equivalent access to the -Corresponding Source in the same way through the same place at no -further charge. You need not require recipients to copy the -Corresponding Source along with the object code. If the place to copy -the object code is a network server, the Corresponding Source may be -on a different server (operated by you or a third party) that supports -equivalent copying facilities, provided you maintain clear directions -next to the object code saying where to find the Corresponding Source. -Regardless of what server hosts the Corresponding Source, you remain -obligated to ensure that it is available for as long as needed to -satisfy these requirements. - -
    5. -Convey the object code using peer-to-peer transmission, provided you -inform other peers where the object code and Corresponding Source of -the work are being offered to the general public at no charge under -subsection 6d. - -
    - -

    A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. -

    -

    A “User Product” is either (1) a “consumer product”, which means any -tangible personal property which is normally used for personal, -family, or household purposes, or (2) anything designed or sold for -incorporation into a dwelling. In determining whether a product is a -consumer product, doubtful cases shall be resolved in favor of -coverage. For a particular product received by a particular user, -“normally used” refers to a typical or common use of that class of -product, regardless of the status of the particular user or of the way -in which the particular user actually uses, or expects or is expected -to use, the product. A product is a consumer product regardless of -whether the product has substantial commercial, industrial or -non-consumer uses, unless such uses represent the only significant -mode of use of the product. -

    -

    “Installation Information” for a User Product means any methods, -procedures, authorization keys, or other information required to -install and execute modified versions of a covered work in that User -Product from a modified version of its Corresponding Source. The -information must suffice to ensure that the continued functioning of -the modified object code is in no case prevented or interfered with -solely because modification has been made. -

    -

    If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). -

    -

    The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or -updates for a work that has been modified or installed by the -recipient, or for the User Product in which it has been modified or -installed. Access to a network may be denied when the modification -itself materially and adversely affects the operation of the network -or violates the rules and protocols for communication across the -network. -

    -

    Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. -

    -
  8. Additional Terms. - -

    “Additional permissions” are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. -

    -

    When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. -

    -

    Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders -of that material) supplement the terms of this License with terms: -

    -
      -
    1. -Disclaiming warranty or limiting liability differently from the terms -of sections 15 and 16 of this License; or - -
    2. -Requiring preservation of specified reasonable legal notices or author -attributions in that material or in the Appropriate Legal Notices -displayed by works containing it; or - -
    3. -Prohibiting misrepresentation of the origin of that material, or -requiring that modified versions of such material be marked in -reasonable ways as different from the original version; or - -
    4. -Limiting the use for publicity purposes of names of licensors or -authors of the material; or - -
    5. -Declining to grant rights under trademark law for use of some trade -names, trademarks, or service marks; or - -
    6. -Requiring indemnification of licensors and authors of that material by -anyone who conveys the material (or modified versions of it) with -contractual assumptions of liability to the recipient, for any -liability that these contractual assumptions directly impose on those -licensors and authors. -
    - -

    All other non-permissive additional terms are considered “further -restrictions” within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. -

    -

    If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. -

    -

    Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; the -above requirements apply either way. -

    -
  9. Termination. - -

    You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). -

    -

    However, if you cease all violation of this License, then your license -from a particular copyright holder is reinstated (a) provisionally, -unless and until the copyright holder explicitly and finally -terminates your license, and (b) permanently, if the copyright holder -fails to notify you of the violation by some reasonable means prior to -60 days after the cessation. -

    -

    Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. -

    -

    Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. -

    -
  10. Acceptance Not Required for Having Copies. - -

    You are not required to accept this License in order to receive or run -a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. -

    -
  11. Automatic Licensing of Downstream Recipients. - -

    Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. -

    -

    An “entity transaction” is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. -

    -

    You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. -

    -
  12. Patents. - -

    A “contributor” is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's “contributor version”. -

    -

    A contributor's “essential patent claims” are all patent claims owned -or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, “control” includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. -

    -

    Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. -

    -

    In the following three paragraphs, a “patent license” is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To “grant” such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. -

    -

    If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. “Knowingly relying” means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. -

    -

    If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. -

    -

    A patent license is “discriminatory” if it does not include within the -scope of its coverage, prohibits the exercise of, or is conditioned on -the non-exercise of one or more of the rights that are specifically -granted under this License. You may not convey a covered work if you -are a party to an arrangement with a third party that is in the -business of distributing software, under which you make payment to the -third party based on the extent of your activity of conveying the -work, and under which the third party grants, to any of the parties -who would receive the covered work from you, a discriminatory patent -license (a) in connection with copies of the covered work conveyed by -you (or copies made from those copies), or (b) primarily for and in -connection with specific products or compilations that contain the -covered work, unless you entered into that arrangement, or that patent -license was granted, prior to 28 March 2007. -

    -

    Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. -

    -
  13. No Surrender of Others' Freedom. - -

    If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey -a covered work so as to satisfy simultaneously your obligations under -this License and any other pertinent obligations, then as a -consequence you may not convey it at all. For example, if you agree -to terms that obligate you to collect a royalty for further conveying -from those to whom you convey the Program, the only way you could -satisfy both those terms and this License would be to refrain entirely -from conveying the Program. -

    -
  14. Use with the GNU Affero General Public License. - -

    Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. -

    -
  15. Revised Versions of this License. - -

    The Free Software Foundation may publish revised and/or new versions -of the GNU General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. -

    -

    Each version is given a distinguishing version number. If the Program -specifies that a certain numbered version of the GNU General Public -License “or any later version” applies to it, you have the option of -following the terms and conditions either of that numbered version or -of any later version published by the Free Software Foundation. If -the Program does not specify a version number of the GNU General -Public License, you may choose any version ever published by the Free -Software Foundation. -

    -

    If the Program specifies that a proxy can decide which future versions -of the GNU General Public License can be used, that proxy's public -statement of acceptance of a version permanently authorizes you to -choose that version for the Program. -

    -

    Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. -

    -
  16. Disclaimer of Warranty. - -

    THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT -WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND -PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE -DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR -CORRECTION. -

    -
  17. Limitation of Liability. - -

    IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR -CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES -ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT -NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR -LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM -TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER -PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -

    -
  18. Interpretation of Sections 15 and 16. - -

    If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. -

    -
- - -

END OF TERMS AND CONDITIONS

- - -

How to Apply These Terms to Your New Programs

- -

If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these -terms. -

-

To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the “copyright” line and a pointer to where the full notice is found. -

-
 
one line to give the program's name and a brief idea of what it does.
-Copyright (C) year name of author
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or (at
-your option) any later version.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see http://www.gnu.org/licenses/.
-
- -

Also add information on how to contact you by electronic and paper mail. -

-

If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: -

-
 
program Copyright (C) year name of author
-This program comes with ABSOLUTELY NO WARRANTY; for details type ‘show w’.
-This is free software, and you are welcome to redistribute it
-under certain conditions; type ‘show c’ for details.
-
- -

The hypothetical commands ‘show w’ and ‘show c’ should show -the appropriate parts of the General Public License. Of course, your -program's commands might be different; for a GUI interface, you would -use an “about box”. -

-

You should also get your employer (if you work as a programmer) or school, -if any, to sign a “copyright disclaimer” for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -http://www.gnu.org/licenses/. -

-

The GNU General Public License does not permit incorporating your -program into proprietary programs. If your program is a subroutine -library, you may consider it more useful to permit linking proprietary -applications with the library. If this is what you want to do, use -the GNU Lesser General Public License instead of this License. But -first, please read http://www.gnu.org/philosophy/why-not-lgpl.html. - -


- - -

A.2 GNU LESSER GENERAL PUBLIC LICENSE

-

Version 3, 29 June 2007 -

- -
 
Copyright © 2007 Free Software Foundation, Inc. http://fsf.org/
-
-Everyone is permitted to copy and distribute verbatim copies of this
-license document, but changing it is not allowed.
-
- -

This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. -

-
    -
  1. Additional Definitions. - -

    As used herein, “this License” refers to version 3 of the GNU Lesser -General Public License, and the “GNU GPL” refers to version 3 of the GNU -General Public License. -

    -

    “The Library” refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. -

    -

    An “Application” is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. -

    -

    A “Combined Work” is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the “Linked -Version”. -

    -

    The “Minimal Corresponding Source” for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. -

    -

    The “Corresponding Application Code” for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. -

    -
  2. Exception to Section 3 of the GNU GPL. - -

    You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. -

    -
  3. Conveying Modified Versions. - -

    If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: -

    -
      -
    1. -under this License, provided that you make a good faith effort to -ensure that, in the event an Application does not supply the -function or data, the facility still operates, and performs -whatever part of its purpose remains meaningful, or - -
    2. -under the GNU GPL, with none of the additional permissions of -this License applicable to that copy. -
    - -
  4. Object Code Incorporating Material from Library Header Files. - -

    The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: -

    -
      -
    1. -Give prominent notice with each copy of the object code that the -Library is used in it and that the Library and its use are -covered by this License. -
    2. -Accompany the object code with a copy of the GNU GPL and this license -document. -
    - -
  5. Combined Works. - -

    You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: -

    -
      -
    1. -Give prominent notice with each copy of the Combined Work that -the Library is used in it and that the Library and its use are -covered by this License. -
    2. -Accompany the Combined Work with a copy of the GNU GPL and this license -document. -
    3. -For a Combined Work that displays copyright notices during -execution, include the copyright notice for the Library among -these notices, as well as a reference directing the user to the -copies of the GNU GPL and this license document. -
    4. -Do one of the following: - -
        -
      1. -Convey the Minimal Corresponding Source under the terms of this -License, and the Corresponding Application Code in a form -suitable for, and under terms that permit, the user to -recombine or relink the Application with a modified version of -the Linked Version to produce a modified Combined Work, in the -manner specified by section 6 of the GNU GPL for conveying -Corresponding Source. -
      2. -Use a suitable shared library mechanism for linking with the -Library. A suitable mechanism is one that (a) uses at run time -a copy of the Library already present on the user's computer -system, and (b) will operate properly with a modified version -of the Library that is interface-compatible with the Linked -Version. -
      - -
    5. -Provide Installation Information, but only if you would otherwise -be required to provide such information under section 6 of the -GNU GPL, and only to the extent that such information is -necessary to install and execute a modified version of the -Combined Work produced by recombining or relinking the -Application with a modified version of the Linked Version. (If -you use option 4d0, the Installation Information must accompany -the Minimal Corresponding Source and Corresponding Application -Code. If you use option 4d1, you must provide the Installation -Information in the manner specified by section 6 of the GNU GPL -for conveying Corresponding Source.) -
    - -
  6. Combined Libraries. - -

    You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: -

    -
      -
    1. -Accompany the combined library with a copy of the same work based -on the Library, uncombined with any other library facilities, -conveyed under the terms of this License. -
    2. -Give prominent notice with the combined library that part of it -is a work based on the Library, and explaining where to find the -accompanying uncombined form of the same work. -
    - -
  7. Revised Versions of the GNU Lesser General Public License. - -

    The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. -

    -

    Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License “or any later version” -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. -

    -

    If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. -

    -
- -
- - -

A.3 GNU Free Documentation License

-

Version 1.3, 3 November 2008 -

- -
 
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
-http://fsf.org/
-
-Everyone is permitted to copy and distribute verbatim copies
-of this license document, but changing it is not allowed.
-
- -
    +

    The ISO C and POSIX standard creators made an attempt to fix the first +problem mentioned in the section char *’ strings. They introduced +

    • -PREAMBLE - -

      The purpose of this License is to make a manual, textbook, or other -functional and useful document free in the sense of freedom: to -assure everyone the effective freedom to copy and redistribute it, -with or without modifying it, either commercially or noncommercially. -Secondarily, this License preserves for the author and publisher a way -to get credit for their work, while not being considered responsible -for modifications made by others. -

      -

      This License is a kind of “copyleft”, which means that derivative -works of the document must themselves be free in the same sense. It -complements the GNU General Public License, which is a copyleft -license designed for free software. -

      -

      We have designed this License in order to use it for manuals for free -software, because free software needs free documentation: a free -program should come with manuals providing the same freedoms that the -software does. But this License is not limited to software manuals; -it can be used for any textual work, regardless of subject matter or -whether it is published as a printed book. We recommend this License -principally for works whose purpose is instruction or reference. -

      +a type ‘wchar_t’, designed to encapsulate an entire character,
    • -APPLICABILITY AND DEFINITIONS - -

      This License applies to any manual or other work, in any medium, that -contains a notice placed by the copyright holder saying it can be -distributed under the terms of this License. Such a notice grants a -world-wide, royalty-free license, unlimited in duration, to use that -work under the conditions stated herein. The “Document”, below, -refers to any such manual or work. Any member of the public is a -licensee, and is addressed as “you”. You accept the license if you -copy, modify or distribute the work in a way requiring permission -under copyright law. -

      -

      A “Modified Version” of the Document means any work containing the -Document or a portion of it, either copied verbatim, or with -modifications and/or translated into another language. -

      -

      A “Secondary Section” is a named appendix or a front-matter section -of the Document that deals exclusively with the relationship of the -publishers or authors of the Document to the Document's overall -subject (or to related matters) and contains nothing that could fall -directly within that overall subject. (Thus, if the Document is in -part a textbook of mathematics, a Secondary Section may not explain -any mathematics.) The relationship could be a matter of historical -connection with the subject or with related matters, or of legal, -commercial, philosophical, ethical or political position regarding -them. -

      -

      The “Invariant Sections” are certain Secondary Sections whose titles -are designated, as being those of Invariant Sections, in the notice -that says that the Document is released under this License. If a -section does not fit the above definition of Secondary then it is not -allowed to be designated as Invariant. The Document may contain zero -Invariant Sections. If the Document does not identify any Invariant -Sections then there are none. -

      -

      The “Cover Texts” are certain short passages of text that are listed, -as Front-Cover Texts or Back-Cover Texts, in the notice that says that -the Document is released under this License. A Front-Cover Text may -be at most 5 words, and a Back-Cover Text may be at most 25 words. -

      -

      A “Transparent” copy of the Document means a machine-readable copy, -represented in a format whose specification is available to the -general public, that is suitable for revising the document -straightforwardly with generic text editors or (for images composed of -pixels) generic paint programs or (for drawings) some widely available -drawing editor, and that is suitable for input to text formatters or -for automatic translation to a variety of formats suitable for input -to text formatters. A copy made in an otherwise Transparent file -format whose markup, or absence of markup, has been arranged to thwart -or discourage subsequent modification by readers is not Transparent. -An image format is not Transparent if used for any substantial amount -of text. A copy that is not “Transparent” is called “Opaque”. -

      -

      Examples of suitable formats for Transparent copies include plain -ASCII without markup, Texinfo input format, LaTeX input -format, SGML or XML using a publicly available -DTD, and standard-conforming simple HTML, -PostScript or PDF designed for human modification. Examples -of transparent image formats include PNG, XCF and -JPG. Opaque formats include proprietary formats that can be -read and edited only by proprietary word processors, SGML or -XML for which the DTD and/or processing tools are -not generally available, and the machine-generated HTML, -PostScript or PDF produced by some word processors for -output purposes only. -

      -

      The “Title Page” means, for a printed book, the title page itself, -plus such following pages as are needed to hold, legibly, the material -this License requires to appear in the title page. For works in -formats which do not have any title page as such, “Title Page” means -the text near the most prominent appearance of the work's title, -preceding the beginning of the body of the text. -

      -

      The “publisher” means any person or entity that distributes copies -of the Document to the public. -

      -

      A section “Entitled XYZ” means a named subunit of the Document whose -title either is precisely XYZ or contains XYZ in parentheses following -text that translates XYZ in another language. (Here XYZ stands for a -specific section name mentioned below, such as “Acknowledgements”, -“Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” -of such a section when you modify the Document means that it remains a -section “Entitled XYZ” according to this definition. -

      -

      The Document may include Warranty Disclaimers next to the notice which -states that this License applies to the Document. These Warranty -Disclaimers are considered to be included by reference in this -License, but only as regards disclaiming warranties: any other -implication that these Warranty Disclaimers may have is void and has -no effect on the meaning of this License. -

      +a “wide string” type ‘wchar_t *’, and
    • -VERBATIM COPYING - -

      You may copy and distribute the Document in any medium, either -commercially or noncommercially, provided that this License, the -copyright notices, and the license notice saying this License applies -to the Document are reproduced in all copies, and that you add no other -conditions whatsoever to those of this License. You may not use -technical measures to obstruct or control the reading or further -copying of the copies you make or distribute. However, you may accept -compensation in exchange for copies. If you distribute a large enough -number of copies you must also follow the conditions in section 3. -

      -

      You may also lend copies, under the same conditions stated above, and -you may publicly display copies. -

      -
    • -COPYING IN QUANTITY - -

      If you publish printed copies (or copies in media that commonly have -printed covers) of the Document, numbering more than 100, and the -Document's license notice requires Cover Texts, you must enclose the -copies in covers that carry, clearly and legibly, all these Cover -Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on -the back cover. Both covers must also clearly and legibly identify -you as the publisher of these copies. The front cover must present -the full title with all words of the title equally prominent and -visible. You may add other material on the covers in addition. -Copying with changes limited to the covers, as long as they preserve -the title of the Document and satisfy these conditions, can be treated -as verbatim copying in other respects. -

      -

      If the required texts for either cover are too voluminous to fit -legibly, you should put the first ones listed (as many as fit -reasonably) on the actual cover, and continue the rest onto adjacent -pages. -

      -

      If you publish or distribute Opaque copies of the Document numbering -more than 100, you must either include a machine-readable Transparent -copy along with each Opaque copy, or state in or with each Opaque copy -a computer-network location from which the general network-using -public has access to download using public-standard network protocols -a complete Transparent copy of the Document, free of added material. -If you use the latter option, you must take reasonably prudent steps, -when you begin distribution of Opaque copies in quantity, to ensure -that this Transparent copy will remain thus accessible at the stated -location until at least one year after the last time you distribute an -Opaque copy (directly or through your agents or retailers) of that -edition to the public. -

      -

      It is requested, but not required, that you contact the authors of the -Document well before redistributing any large number of copies, to give -them a chance to provide you with an updated version of the Document. -

      -
    • -MODIFICATIONS +functions declared in <wctype.h> that were meant to supplant the +ones in <ctype.h>. +
    -

    You may copy and distribute a Modified Version of the Document under -the conditions of sections 2 and 3 above, provided that you release -the Modified Version under precisely this License, with the Modified -Version filling the role of the Document, thus licensing distribution -and modification of the Modified Version to whoever possesses a copy -of it. In addition, you must do these things in the Modified Version: +

    Unfortunately, this API and its implementation has numerous problems:

    -
      +
      • -Use in the Title Page (and on the covers, if any) a title distinct -from that of the Document, and from those of previous versions -(which should, if there were any, be listed in the History section -of the Document). You may use the same title as a previous version -if the original publisher of that version gives permission. - -
      • -List on the Title Page, as authors, one or more persons or entities -responsible for authorship of the modifications in the Modified -Version, together with at least five of the principal authors of the -Document (all of its principal authors, if it has fewer than five), -unless they release you from this requirement. - -
      • -State on the Title page the name of the publisher of the -Modified Version, as the publisher. - -
      • -Preserve all the copyright notices of the Document. - -
      • -Add an appropriate copyright notice for your modifications -adjacent to the other copyright notices. - -
      • -Include, immediately after the copyright notices, a license notice -giving the public permission to use the Modified Version under the -terms of this License, in the form shown in the Addendum below. - -
      • -Preserve in that license notice the full lists of Invariant Sections -and required Cover Texts given in the Document's license notice. - -
      • -Include an unaltered copy of this License. - -
      • -Preserve the section Entitled “History”, Preserve its Title, and add -to it an item stating at least the title, year, new authors, and -publisher of the Modified Version as given on the Title Page. If -there is no section Entitled “History” in the Document, create one -stating the title, year, authors, and publisher of the Document as -given on its Title Page, then add an item describing the Modified -Version as stated in the previous sentence. - -
      • -Preserve the network location, if any, given in the Document for -public access to a Transparent copy of the Document, and likewise -the network locations given in the Document for previous versions -it was based on. These may be placed in the “History” section. -You may omit a network location for a work that was published at -least four years before the Document itself, or if the original -publisher of the version it refers to gives permission. - -
      • -For any section Entitled “Acknowledgements” or “Dedications”, Preserve -the Title of the section, and preserve in the section all the -substance and tone of each of the contributor acknowledgements and/or -dedications given therein. - -
      • -Preserve all the Invariant Sections of the Document, -unaltered in their text and in their titles. Section numbers -or the equivalent are not considered part of the section titles. - -
      • -Delete any section Entitled “Endorsements”. Such a section -may not be included in the Modified Version. - -
      • -Do not retitle any existing section to be Entitled “Endorsements” or -to conflict in title with any Invariant Section. - -
      • -Preserve any Warranty Disclaimers. -
    - -

    If the Modified Version includes new front-matter sections or -appendices that qualify as Secondary Sections and contain no material -copied from the Document, you may at your option designate some or all -of these sections as invariant. To do this, add their titles to the -list of Invariant Sections in the Modified Version's license notice. -These titles must be distinct from any other section titles. -

    -

    You may add a section Entitled “Endorsements”, provided it contains -nothing but endorsements of your Modified Version by various -parties—for example, statements of peer review or that the text has -been approved by an organization as the authoritative definition of a -standard. -

    -

    You may add a passage of up to five words as a Front-Cover Text, and a -passage of up to 25 words as a Back-Cover Text, to the end of the list -of Cover Texts in the Modified Version. Only one passage of -Front-Cover Text and one of Back-Cover Text may be added by (or -through arrangements made by) any one entity. If the Document already -includes a cover text for the same cover, previously added by you or -by arrangement made by the same entity you are acting on behalf of, -you may not add another; but you may replace the old one, on explicit -permission from the previous publisher that added the old one. -

    -

    The author(s) and publisher(s) of the Document do not by this License -give permission to use their names for publicity for or to assert or -imply endorsement of any Modified Version. -

    -
  1. -COMBINING DOCUMENTS - -

    You may combine the Document with other documents released under this -License, under the terms defined in section 4 above for modified -versions, provided that you include in the combination all of the -Invariant Sections of all of the original documents, unmodified, and -list them all as Invariant Sections of your combined work in its -license notice, and that you preserve all their Warranty Disclaimers. -

    -

    The combined work need only contain one copy of this License, and -multiple identical Invariant Sections may be replaced with a single -copy. If there are multiple Invariant Sections with the same name but -different contents, make the title of each such section unique by -adding at the end of it, in parentheses, the name of the original -author or publisher of that section if known, or else a unique number. -Make the same adjustment to the section titles in the list of -Invariant Sections in the license notice of the combined work. -

    -

    In the combination, you must combine any sections Entitled “History” -in the various original documents, forming one section Entitled -“History”; likewise combine any sections Entitled “Acknowledgements”, -and any sections Entitled “Dedications”. You must delete all -sections Entitled “Endorsements.” -

    -
  2. -COLLECTIONS OF DOCUMENTS - -

    You may make a collection consisting of the Document and other documents -released under this License, and replace the individual copies of this -License in the various documents with a single copy that is included in -the collection, provided that you follow the rules of this License for -verbatim copying of each of the documents in all other respects. -

    -

    You may extract a single document from such a collection, and distribute -it individually under this License, provided you insert a copy of this -License into the extracted document, and follow this License in all -other respects regarding verbatim copying of that document. -

    -
  3. -AGGREGATION WITH INDEPENDENT WORKS - -

    A compilation of the Document or its derivatives with other separate -and independent documents or works, in or on a volume of a storage or -distribution medium, is called an “aggregate” if the copyright -resulting from the compilation is not used to limit the legal rights -of the compilation's users beyond what the individual works permit. -When the Document is included in an aggregate, this License does not -apply to the other works in the aggregate which are not themselves -derivative works of the Document. -

    -

    If the Cover Text requirement of section 3 is applicable to these -copies of the Document, then if the Document is less than one half of -the entire aggregate, the Document's Cover Texts may be placed on -covers that bracket the Document within the aggregate, or the -electronic equivalent of covers if the Document is in electronic form. -Otherwise they must appear on printed covers that bracket the whole -aggregate. -

    -
  4. -TRANSLATION - -

    Translation is considered a kind of modification, so you may -distribute translations of the Document under the terms of section 4. -Replacing Invariant Sections with translations requires special -permission from their copyright holders, but you may include -translations of some or all Invariant Sections in addition to the -original versions of these Invariant Sections. You may include a -translation of this License, and all the license notices in the -Document, and any Warranty Disclaimers, provided that you also include -the original English version of this License and the original versions -of those notices and disclaimers. In case of a disagreement between -the translation and the original version of this License or a notice -or disclaimer, the original version will prevail. -

    -

    If a section in the Document is Entitled “Acknowledgements”, -“Dedications”, or “History”, the requirement (section 4) to Preserve -its Title (section 1) will typically require changing the actual -title. -

    -
  5. -TERMINATION - -

    You may not copy, modify, sublicense, or distribute the Document -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense, or distribute it is void, and -will automatically terminate your rights under this License. -

    -

    However, if you cease all violation of this License, then your license -from a particular copyright holder is reinstated (a) provisionally, -unless and until the copyright holder explicitly and finally -terminates your license, and (b) permanently, if the copyright holder -fails to notify you of the violation by some reasonable means prior to -60 days after the cessation. -

    -

    Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. -

    -

    Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, receipt of a copy of some or all of the same material does -not give you any rights to use it. -

    -
  6. -FUTURE REVISIONS OF THIS LICENSE - -

    The Free Software Foundation may publish new, revised versions -of the GNU Free Documentation License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. See -http://www.gnu.org/copyleft/. -

    -

    Each version of the License is given a distinguishing version number. -If the Document specifies that a particular numbered version of this -License “or any later version” applies to it, you have the option of -following the terms and conditions either of that specified version or -of any later version that has been published (not as a draft) by the -Free Software Foundation. If the Document does not specify a version -number of this License, you may choose any version ever published (not -as a draft) by the Free Software Foundation. If the Document -specifies that a proxy can decide which future versions of this -License can be used, that proxy's public statement of acceptance of a -version permanently authorizes you to choose that version for the -Document. -

    -
  7. -RELICENSING - -

    “Massive Multiauthor Collaboration Site” (or “MMC Site”) means any -World Wide Web server that publishes copyrightable works and also -provides prominent facilities for anybody to edit those works. A -public wiki that anybody can edit is an example of such a server. A -“Massive Multiauthor Collaboration” (or “MMC”) contained in the -site means any set of copyrightable works thus published on the MMC -site. -

    -

    “CC-BY-SA” means the Creative Commons Attribution-Share Alike 3.0 -license published by Creative Commons Corporation, a not-for-profit -corporation with a principal place of business in San Francisco, -California, as well as future copyleft versions of that license -published by that same organization. -

    -

    “Incorporate” means to publish or republish a Document, in whole or -in part, as part of another Document. -

    -

    An MMC is “eligible for relicensing” if it is licensed under this -License, and if all works that were first published under this License -somewhere other than this MMC, and subsequently incorporated in whole -or in part into the MMC, (1) had no cover texts or invariant sections, -and (2) were thus incorporated prior to November 1, 2008. -

    -

    The operator of an MMC Site may republish an MMC contained in the site -under CC-BY-SA on the same site at any time before August 1, 2009, -provided the MMC is eligible for relicensing. -

    -
- - - -

ADDENDUM: How to use this License for your documents

- -

To use this License in a document you have written, include a copy of -the License in the document and put the following copyright and -license notices just after the title page: -

-
 
  Copyright (C)  year  your name.
-  Permission is granted to copy, distribute and/or modify this document
-  under the terms of the GNU Free Documentation License, Version 1.3
-  or any later version published by the Free Software Foundation;
-  with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
-  Texts.  A copy of the license is included in the section entitled ``GNU
-  Free Documentation License''.
-
- -

If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, -replace the “with…Texts.” line with this: -

-
 
    with the Invariant Sections being list their titles, with
-    the Front-Cover Texts being list, and with the Back-Cover Texts
-    being list.
-
+On AIX and Windows platforms, wchar_t is a 16-bit type. This +means that it can never accommodate an entire Unicode character. Either +the wchar_t * strings are limited to characters in UCS-2 (the +“Basic Multilingual Plane” of Unicode), or — if wchar_t * +strings are encoded in UTF-16 — a wchar_t represents only half +of a character in the worst case, making the <wctype.h> functions +pointless. + +
  • +On Solaris and FreeBSD, the wchar_t encoding is locale dependent +and undocumented. This means, if you want to know any property of a +wchar_t character, other than the properties defined by +<wctype.h> — such as whether it's a dash, currency symbol, +paragraph separator, or similar —, you have to convert it to +char * encoding first, by use of the function wctomb. + +
  • +When you read a stream of wide characters, through the functions +fgetwc and fgetws, and when the input stream/file is +not in the expected encoding, you have no way to determine the invalid +byte sequence and do some corrective action. If you use these +functions, your program becomes “garbage in - more garbage out” or +“garbage in - abort”. +
  • -

    If you have Invariant Sections without Cover Texts, or some other -combination of the three, merge those two alternatives to suit the -situation. -

    -

    If your document contains nontrivial examples of program code, we -recommend releasing these examples in parallel under your choice of -free software license, such as the GNU General Public License, -to permit their use in free software. +

    As a consequence, it is better to use multibyte strings, as explained in +the section char *’ strings. Such multibyte strings can bypass +limitations of the wchar_t type, if you use functions defined in gnulib +and libunistring for text processing. They can also faithfully transport +malformed characters that were present in the input, without requiring +the program to produce garbage or abort.

    - -
    - - + + @@ -1530,12 +119,12 @@ to permit their use in free software. - +
    [ << ][ >> ]
    [ << ][ >> ]         [Top] [Contents][Index][Index] [ ? ]

    - This document was generated by Daiki Ueno on November, 30 2017 using texi2html 1.78a. + This document was generated by Daiki Ueno on February, 28 2018 using texi2html 1.78a.
    diff --git a/doc/libunistring_19.html b/doc/libunistring_19.html index f2ca86c..25f6a61 100644 --- a/doc/libunistring_19.html +++ b/doc/libunistring_19.html @@ -1,6 +1,6 @@ - + -GNU libunistring: Index +GNU libunistring: B. Licenses - - + + @@ -42,8 +42,8 @@ ul.toc {list-style: none} - - + + @@ -51,751 +51,1478 @@ ul.toc {list-style: none} - +
    [ << ][ >> ]
    [ << ][ >> ]         [Top] [Contents][Index][Index] [ ? ]


    - - -

    Index

    - -
    Jump to:   A -   -B -   -C -   -D -   -E -   -F -   -G -   -H -   -I -   -J -   -L -   -M -   -N -   -O -   -P -   -R -   -S -   -T -   -U -   -V -   -W -   -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Index Entry Section

    A
    ambiguous width9. Display width <uniwidth.h>
    Arabic shaping8.8 Arabic shaping
    argument conventions2. Conventions
    autoconf macro16.4 Autoconf macro

    B
    bidi class8.3 Bidi class
    bidirectional category8.3 Bidi class
    bidirectional reordering17. More advanced functionality
    block8.11 Blocks
    boundaries, between grapheme clusters10. Grapheme cluster breaks in strings <unigbrk.h>
    boundaries, between words11. Word breaks in strings <uniwbrk.h>
    breaks, grapheme cluster10. Grapheme cluster breaks in strings <unigbrk.h>
    breaks, line12. Line breaking <unilbrk.h>
    breaks, word11. Word breaks in strings <uniwbrk.h>
    bug reports16.5 Reporting problems
    bug tracker16.5 Reporting problems

    C
    C string functions1.5 ‘char *’ strings
    C, programming language8.12 ISO C and Java syntax
    C-like API8.13 Classifications like in ISO C
    canonical combining class8.2 Canonical combining class
    case detection14.5 Case detection
    case mappings14.2 Case mappings of strings
    casing_prefix_context_t14.3 Case mappings of substrings
    casing_suffix_context_t14.3 Case mappings of substrings
    char, type1.5 ‘char *’ strings
    combining, Unicode characters13.2 Composition of Unicode characters
    comparing4.3 Elementary string functions
    comparing4.5 Elementary string functions on NUL terminated strings
    comparing, ignoring case14.4 Case insensitive comparison
    comparing, ignoring case, with collation rules14.4 Case insensitive comparison
    comparing, ignoring normalization13.4 Normalizing comparisons
    comparing, ignoring normalization and case14.4 Case insensitive comparison
    comparing, ignoring normalization and case, with collation rules14.4 Case insensitive comparison
    comparing, ignoring normalization, with collation rules13.4 Normalizing comparisons
    comparing, with collation rules4.5 Elementary string functions on NUL terminated strings
    comparing, with collation rules, ignoring case14.4 Case insensitive comparison
    comparing, with collation rules, ignoring normalization13.4 Normalizing comparisons
    comparing, with collation rules, ignoring normalization and case14.4 Case insensitive comparison
    compiler options16.2 Compiler options
    composing, Unicode characters13.2 Composition of Unicode characters
    converting4.2 Elementary string conversions
    converting5. Conversions between Unicode and encodings <uniconv.h>
    copying4.3 Elementary string functions
    copying4.5 Elementary string functions on NUL terminated strings
    counting4.3 Elementary string functions

    D
    decomposing13.1 Decomposition of Unicode characters
    dependencies16.1 Installation
    detecting case14.5 Case detection
    duplicating4.4 Elementary string functions with memory allocation
    duplicating4.5 Elementary string functions on NUL terminated strings

    E
    enum iconv_ilseq_handler5. Conversions between Unicode and encodings <uniconv.h>

    F
    FDL, GNU Free Documentation LicenseA.3 GNU Free Documentation License
    formatted output6. Output with Unicode strings <unistdio.h>
    fullwidth9. Display width <uniwidth.h>

    G
    general category8.1 General category
    gl_LIBUNISTRING16.4 Autoconf macro
    GPL, GNU General Public LicenseA.1 GNU GENERAL PUBLIC LICENSE
    grapheme cluster boundaries10. Grapheme cluster breaks in strings <unigbrk.h>
    grapheme cluster breaks10. Grapheme cluster breaks in strings <unigbrk.h>

    H
    halfwidth9. Display width <uniwidth.h>

    I
    identifiers8.12 ISO C and Java syntax
    installation16.1 Installation
    internationalization1.2 Unicode and Internationalization
    iterating4.3 Elementary string functions
    iterating4.5 Elementary string functions on NUL terminated strings

    J
    Java, programming language8.12 ISO C and Java syntax
    joining group8.8.2 Joining group of Arabic characters
    joining of Arabic characters8.8 Arabic shaping
    joining type8.8.1 Joining type of Arabic characters

    L
    LGPL, GNU Lesser General Public LicenseA.2 GNU LESSER GENERAL PUBLIC LICENSE
    License, GNU FDLA.3 GNU Free Documentation License
    License, GNU GPLA.1 GNU GENERAL PUBLIC LICENSE
    License, GNU LGPLA.2 GNU LESSER GENERAL PUBLIC LICENSE
    LicensesA. Licenses
    line breaks12. Line breaking <unilbrk.h>
    locale1.3 Locale encodings
    locale categories1.3 Locale encodings
    locale encoding1.3 Locale encodings
    locale encoding5. Conversions between Unicode and encodings <uniconv.h>
    locale language14.2 Case mappings of strings
    locale, multibyte1.5 ‘char *’ strings
    locale_charset5. Conversions between Unicode and encodings <uniconv.h>
    lowercasing14.2 Case mappings of strings

    M
    mailing list16.5 Reporting problems
    mirroring, of Unicode character8.7 Mirrored character

    N
    normal forms13. Normalization forms (composition and decomposition) <uninorm.h>
    normalizing13. Normalization forms (composition and decomposition) <uninorm.h>

    O
    output, formatted6. Output with Unicode strings <unistdio.h>

    P
    properties, of Unicode character8.9 Properties

    R
    regular expression15. Regular expressions <uniregex.h>
    rendering17. More advanced functionality
    return value conventions2. Conventions

    S
    scripts8.10 Scripts
    searching, for a character4.3 Elementary string functions
    searching, for a character4.5 Elementary string functions on NUL terminated strings
    searching, for a substring4.5 Elementary string functions on NUL terminated strings
    stream, normalizing a13.5 Normalization of streams of Unicode characters
    struct uninorm_filter13.5 Normalization of streams of Unicode characters

    T
    titlecasing14.2 Case mappings of strings

    U
    u16_asnprintf6. Output with Unicode strings <unistdio.h>
    u16_asprintf6. Output with Unicode strings <unistdio.h>
    u16_casecmp14.4 Case insensitive comparison
    u16_casecoll14.4 Case insensitive comparison
    u16_casefold14.4 Case insensitive comparison
    u16_casexfrm14.4 Case insensitive comparison
    u16_casing_prefix_context14.3 Case mappings of substrings
    u16_casing_prefixes_context14.3 Case mappings of substrings
    u16_casing_suffix_context14.3 Case mappings of substrings
    u16_casing_suffixes_context14.3 Case mappings of substrings
    u16_check4.1 Elementary string checks
    u16_chr4.3 Elementary string functions
    u16_cmp4.3 Elementary string functions
    u16_cmp24.3 Elementary string functions
    u16_conv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u16_conv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u16_cpy4.3 Elementary string functions
    u16_cpy_alloc4.4 Elementary string functions with memory allocation
    u16_ct_casefold14.4 Case insensitive comparison
    u16_ct_tolower14.3 Case mappings of substrings
    u16_ct_totitle14.3 Case mappings of substrings
    u16_ct_toupper14.3 Case mappings of substrings
    u16_endswith4.5 Elementary string functions on NUL terminated strings
    u16_grapheme_breaks10.1 Grapheme cluster breaks in a string
    u16_grapheme_next10.1 Grapheme cluster breaks in a string
    u16_grapheme_prev10.1 Grapheme cluster breaks in a string
    u16_is_cased14.5 Case detection
    u16_is_casefolded14.5 Case detection
    u16_is_lowercase14.5 Case detection
    u16_is_titlecase14.5 Case detection
    u16_is_uppercase14.5 Case detection
    u16_mblen4.3 Elementary string functions
    u16_mbsnlen4.3 Elementary string functions
    u16_mbtouc4.3 Elementary string functions
    u16_mbtouc_unsafe4.3 Elementary string functions
    u16_mbtoucr4.3 Elementary string functions
    u16_move4.3 Elementary string functions
    u16_next4.5 Elementary string functions on NUL terminated strings
    u16_normalize13.3 Normalization of strings
    u16_normcmp13.4 Normalizing comparisons
    u16_normcoll13.4 Normalizing comparisons
    u16_normxfrm13.4 Normalizing comparisons
    u16_possible_linebreaks12. Line breaking <unilbrk.h>
    u16_prev4.5 Elementary string functions on NUL terminated strings
    u16_set4.3 Elementary string functions
    u16_snprintf6. Output with Unicode strings <unistdio.h>
    u16_sprintf6. Output with Unicode strings <unistdio.h>
    u16_startswith4.5 Elementary string functions on NUL terminated strings
    u16_stpcpy4.5 Elementary string functions on NUL terminated strings
    u16_stpncpy4.5 Elementary string functions on NUL terminated strings
    u16_strcat4.5 Elementary string functions on NUL terminated strings
    u16_strchr4.5 Elementary string functions on NUL terminated strings
    u16_strcmp4.5 Elementary string functions on NUL terminated strings
    u16_strcoll4.5 Elementary string functions on NUL terminated strings
    u16_strconv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u16_strconv_from_locale5. Conversions between Unicode and encodings <uniconv.h>
    u16_strconv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u16_strconv_to_locale5. Conversions between Unicode and encodings <uniconv.h>
    u16_strcpy4.5 Elementary string functions on NUL terminated strings
    u16_strcspn4.5 Elementary string functions on NUL terminated strings
    u16_strdup4.5 Elementary string functions on NUL terminated strings
    u16_strlen4.5 Elementary string functions on NUL terminated strings
    u16_strmblen4.5 Elementary string functions on NUL terminated strings
    u16_strmbtouc4.5 Elementary string functions on NUL terminated strings
    u16_strncat4.5 Elementary string functions on NUL terminated strings
    u16_strncmp4.5 Elementary string functions on NUL terminated strings
    u16_strncpy4.5 Elementary string functions on NUL terminated strings
    u16_strnlen4.5 Elementary string functions on NUL terminated strings
    u16_strpbrk4.5 Elementary string functions on NUL terminated strings
    u16_strrchr4.5 Elementary string functions on NUL terminated strings
    u16_strspn4.5 Elementary string functions on NUL terminated strings
    u16_strstr4.5 Elementary string functions on NUL terminated strings
    u16_strtok4.5 Elementary string functions on NUL terminated strings
    u16_strwidth9. Display width <uniwidth.h>
    u16_to_u324.2 Elementary string conversions
    u16_to_u84.2 Elementary string conversions
    u16_tolower14.2 Case mappings of strings
    u16_totitle14.2 Case mappings of strings
    u16_toupper14.2 Case mappings of strings
    u16_u16_asnprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_asprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_snprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_sprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_vasnprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_vasprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_vsnprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_vsprintf6. Output with Unicode strings <unistdio.h>
    u16_uctomb4.3 Elementary string functions
    u16_vasnprintf6. Output with Unicode strings <unistdio.h>
    u16_vasprintf6. Output with Unicode strings <unistdio.h>
    u16_vsnprintf6. Output with Unicode strings <unistdio.h>
    u16_vsprintf6. Output with Unicode strings <unistdio.h>
    u16_width9. Display width <uniwidth.h>
    u16_width_linebreaks12. Line breaking <unilbrk.h>
    u16_wordbreaks11.1 Word breaks in a string
    u32_asnprintf6. Output with Unicode strings <unistdio.h>
    u32_asprintf6. Output with Unicode strings <unistdio.h>
    u32_casecmp14.4 Case insensitive comparison
    u32_casecoll14.4 Case insensitive comparison
    u32_casefold14.4 Case insensitive comparison
    u32_casexfrm14.4 Case insensitive comparison
    u32_casing_prefix_context14.3 Case mappings of substrings
    u32_casing_prefixes_context14.3 Case mappings of substrings
    u32_casing_suffix_context14.3 Case mappings of substrings
    u32_casing_suffixes_context14.3 Case mappings of substrings
    u32_check4.1 Elementary string checks
    u32_chr4.3 Elementary string functions
    u32_cmp4.3 Elementary string functions
    u32_cmp24.3 Elementary string functions
    u32_conv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u32_conv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u32_cpy4.3 Elementary string functions
    u32_cpy_alloc4.4 Elementary string functions with memory allocation
    u32_ct_casefold14.4 Case insensitive comparison
    u32_ct_tolower14.3 Case mappings of substrings
    u32_ct_totitle14.3 Case mappings of substrings
    u32_ct_toupper14.3 Case mappings of substrings
    u32_endswith4.5 Elementary string functions on NUL terminated strings
    u32_grapheme_breaks10.1 Grapheme cluster breaks in a string
    u32_grapheme_next10.1 Grapheme cluster breaks in a string
    u32_grapheme_prev10.1 Grapheme cluster breaks in a string
    u32_is_cased14.5 Case detection
    u32_is_casefolded14.5 Case detection
    u32_is_lowercase14.5 Case detection
    u32_is_titlecase14.5 Case detection
    u32_is_uppercase14.5 Case detection
    u32_mblen4.3 Elementary string functions
    u32_mbsnlen4.3 Elementary string functions
    u32_mbtouc4.3 Elementary string functions
    u32_mbtouc_unsafe4.3 Elementary string functions
    u32_mbtoucr4.3 Elementary string functions
    u32_move4.3 Elementary string functions
    u32_next4.5 Elementary string functions on NUL terminated strings
    u32_normalize13.3 Normalization of strings
    u32_normcmp13.4 Normalizing comparisons
    u32_normcoll13.4 Normalizing comparisons
    u32_normxfrm13.4 Normalizing comparisons
    u32_possible_linebreaks12. Line breaking <unilbrk.h>
    u32_prev4.5 Elementary string functions on NUL terminated strings
    u32_set4.3 Elementary string functions
    u32_snprintf6. Output with Unicode strings <unistdio.h>
    u32_sprintf6. Output with Unicode strings <unistdio.h>
    u32_startswith4.5 Elementary string functions on NUL terminated strings
    u32_stpcpy4.5 Elementary string functions on NUL terminated strings
    u32_stpncpy4.5 Elementary string functions on NUL terminated strings
    u32_strcat4.5 Elementary string functions on NUL terminated strings
    u32_strchr4.5 Elementary string functions on NUL terminated strings
    u32_strcmp4.5 Elementary string functions on NUL terminated strings
    u32_strcoll4.5 Elementary string functions on NUL terminated strings
    u32_strconv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u32_strconv_from_locale5. Conversions between Unicode and encodings <uniconv.h>
    u32_strconv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u32_strconv_to_locale5. Conversions between Unicode and encodings <uniconv.h>
    u32_strcpy4.5 Elementary string functions on NUL terminated strings
    u32_strcspn4.5 Elementary string functions on NUL terminated strings
    u32_strdup4.5 Elementary string functions on NUL terminated strings
    u32_strlen4.5 Elementary string functions on NUL terminated strings
    u32_strmblen4.5 Elementary string functions on NUL terminated strings
    u32_strmbtouc4.5 Elementary string functions on NUL terminated strings
    u32_strncat4.5 Elementary string functions on NUL terminated strings
    u32_strncmp4.5 Elementary string functions on NUL terminated strings
    u32_strncpy4.5 Elementary string functions on NUL terminated strings
    u32_strnlen4.5 Elementary string functions on NUL terminated strings
    u32_strpbrk4.5 Elementary string functions on NUL terminated strings
    u32_strrchr4.5 Elementary string functions on NUL terminated strings
    u32_strspn4.5 Elementary string functions on NUL terminated strings
    u32_strstr4.5 Elementary string functions on NUL terminated strings
    u32_strtok4.5 Elementary string functions on NUL terminated strings
    u32_strwidth9. Display width <uniwidth.h>
    u32_to_u164.2 Elementary string conversions
    u32_to_u84.2 Elementary string conversions
    u32_tolower14.2 Case mappings of strings
    u32_totitle14.2 Case mappings of strings
    u32_toupper14.2 Case mappings of strings
    u32_u32_asnprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_asprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_snprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_sprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_vasnprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_vasprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_vsnprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_vsprintf6. Output with Unicode strings <unistdio.h>
    u32_uctomb4.3 Elementary string functions
    u32_vasnprintf6. Output with Unicode strings <unistdio.h>
    u32_vasprintf6. Output with Unicode strings <unistdio.h>
    u32_vsnprintf6. Output with Unicode strings <unistdio.h>
    u32_vsprintf6. Output with Unicode strings <unistdio.h>
    u32_width9. Display width <uniwidth.h>
    u32_width_linebreaks12. Line breaking <unilbrk.h>
    u32_wordbreaks11.1 Word breaks in a string
    u8_asnprintf6. Output with Unicode strings <unistdio.h>
    u8_asprintf6. Output with Unicode strings <unistdio.h>
    u8_casecmp14.4 Case insensitive comparison
    u8_casecoll14.4 Case insensitive comparison
    u8_casefold14.4 Case insensitive comparison
    u8_casexfrm14.4 Case insensitive comparison
    u8_casing_prefix_context14.3 Case mappings of substrings
    u8_casing_prefixes_context14.3 Case mappings of substrings
    u8_casing_suffix_context14.3 Case mappings of substrings
    u8_casing_suffixes_context14.3 Case mappings of substrings
    u8_check4.1 Elementary string checks
    u8_chr4.3 Elementary string functions
    u8_cmp4.3 Elementary string functions
    u8_cmp24.3 Elementary string functions
    u8_conv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u8_conv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u8_cpy4.3 Elementary string functions
    u8_cpy_alloc4.4 Elementary string functions with memory allocation
    u8_ct_casefold14.4 Case insensitive comparison
    u8_ct_tolower14.3 Case mappings of substrings
    u8_ct_totitle14.3 Case mappings of substrings
    u8_ct_toupper14.3 Case mappings of substrings
    u8_endswith4.5 Elementary string functions on NUL terminated strings
    u8_grapheme_breaks10.1 Grapheme cluster breaks in a string
    u8_grapheme_next10.1 Grapheme cluster breaks in a string
    u8_grapheme_prev10.1 Grapheme cluster breaks in a string
    u8_is_cased14.5 Case detection
    u8_is_casefolded14.5 Case detection
    u8_is_lowercase14.5 Case detection
    u8_is_titlecase14.5 Case detection
    u8_is_uppercase14.5 Case detection
    u8_mblen4.3 Elementary string functions
    u8_mbsnlen4.3 Elementary string functions
    u8_mbtouc4.3 Elementary string functions
    u8_mbtouc_unsafe4.3 Elementary string functions
    u8_mbtoucr4.3 Elementary string functions
    u8_move4.3 Elementary string functions
    u8_next4.5 Elementary string functions on NUL terminated strings
    u8_normalize13.3 Normalization of strings
    u8_normcmp13.4 Normalizing comparisons
    u8_normcoll13.4 Normalizing comparisons
    u8_normxfrm13.4 Normalizing comparisons
    u8_possible_linebreaks12. Line breaking <unilbrk.h>
    u8_prev4.5 Elementary string functions on NUL terminated strings
    u8_set4.3 Elementary string functions
    u8_snprintf6. Output with Unicode strings <unistdio.h>
    u8_sprintf6. Output with Unicode strings <unistdio.h>
    u8_startswith4.5 Elementary string functions on NUL terminated strings
    u8_stpcpy4.5 Elementary string functions on NUL terminated strings
    u8_stpncpy4.5 Elementary string functions on NUL terminated strings
    u8_strcat4.5 Elementary string functions on NUL terminated strings
    u8_strchr4.5 Elementary string functions on NUL terminated strings
    u8_strcmp4.5 Elementary string functions on NUL terminated strings
    u8_strcoll4.5 Elementary string functions on NUL terminated strings
    u8_strconv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u8_strconv_from_locale5. Conversions between Unicode and encodings <uniconv.h>
    u8_strconv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u8_strconv_to_locale5. Conversions between Unicode and encodings <uniconv.h>
    u8_strcpy4.5 Elementary string functions on NUL terminated strings
    u8_strcspn4.5 Elementary string functions on NUL terminated strings
    u8_strdup4.5 Elementary string functions on NUL terminated strings
    u8_strlen4.5 Elementary string functions on NUL terminated strings
    u8_strmblen4.5 Elementary string functions on NUL terminated strings
    u8_strmbtouc4.5 Elementary string functions on NUL terminated strings
    u8_strncat4.5 Elementary string functions on NUL terminated strings
    u8_strncmp4.5 Elementary string functions on NUL terminated strings
    u8_strncpy4.5 Elementary string functions on NUL terminated strings
    u8_strnlen4.5 Elementary string functions on NUL terminated strings
    u8_strpbrk4.5 Elementary string functions on NUL terminated strings
    u8_strrchr4.5 Elementary string functions on NUL terminated strings
    u8_strspn4.5 Elementary string functions on NUL terminated strings
    u8_strstr4.5 Elementary string functions on NUL terminated strings
    u8_strtok4.5 Elementary string functions on NUL terminated strings
    u8_strwidth9. Display width <uniwidth.h>
    u8_to_u164.2 Elementary string conversions
    u8_to_u324.2 Elementary string conversions
    u8_tolower14.2 Case mappings of strings
    u8_totitle14.2 Case mappings of strings
    u8_toupper14.2 Case mappings of strings
    u8_u8_asnprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_asprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_snprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_sprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_vasnprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_vasprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_vsnprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_vsprintf6. Output with Unicode strings <unistdio.h>
    u8_uctomb4.3 Elementary string functions
    u8_vasnprintf6. Output with Unicode strings <unistdio.h>
    u8_vasprintf6. Output with Unicode strings <unistdio.h>
    u8_vsnprintf6. Output with Unicode strings <unistdio.h>
    u8_vsprintf6. Output with Unicode strings <unistdio.h>
    u8_width9. Display width <uniwidth.h>
    u8_width_linebreaks12. Line breaking <unilbrk.h>
    u8_wordbreaks11.1 Word breaks in a string
    uc_all_blocks8.11 Blocks
    uc_all_scripts8.10 Scripts
    uc_bidi_category8.3 Bidi class
    uc_bidi_category_byname8.3 Bidi class
    uc_bidi_category_name8.3 Bidi class
    uc_bidi_class8.3 Bidi class
    uc_bidi_class_byname8.3 Bidi class
    uc_bidi_class_long_name8.3 Bidi class
    uc_bidi_class_name8.3 Bidi class
    uc_block8.11 Blocks
    uc_block_t8.11 Blocks
    uc_c_ident_category8.12 ISO C and Java syntax
    uc_canonical_decomposition13.1 Decomposition of Unicode characters
    uc_combining_class8.2 Canonical combining class
    uc_combining_class_byname8.2 Canonical combining class
    uc_combining_class_long_name8.2 Canonical combining class
    uc_combining_class_name8.2 Canonical combining class
    uc_composition13.2 Composition of Unicode characters
    uc_decimal_value8.4 Decimal digit value
    uc_decomposition13.1 Decomposition of Unicode characters
    uc_digit_value8.5 Digit value
    uc_fraction_t8.6 Numeric value
    uc_general_category8.1.1 The object oriented API for general category
    uc_general_category_and8.1.1 The object oriented API for general category
    uc_general_category_and_not8.1.1 The object oriented API for general category
    uc_general_category_byname8.1.1 The object oriented API for general category
    uc_general_category_long_name8.1.1 The object oriented API for general category
    uc_general_category_name8.1.1 The object oriented API for general category
    uc_general_category_or8.1.1 The object oriented API for general category
    uc_general_category_t8.1.1 The object oriented API for general category
    uc_grapheme_breaks10.1 Grapheme cluster breaks in a string
    uc_graphemeclusterbreak_property10.2 Grapheme cluster break property
    uc_is_alnum8.13 Classifications like in ISO C
    uc_is_alpha8.13 Classifications like in ISO C
    uc_is_bidi_category8.3 Bidi class
    uc_is_bidi_class8.3 Bidi class
    uc_is_blank8.13 Classifications like in ISO C
    uc_is_block8.11 Blocks
    uc_is_c_whitespace8.12 ISO C and Java syntax
    uc_is_cntrl8.13 Classifications like in ISO C
    uc_is_digit8.13 Classifications like in ISO C
    uc_is_general_category8.1.1 The object oriented API for general category
    uc_is_general_category_withtable8.1.2 The bit mask API for general category
    uc_is_graph8.13 Classifications like in ISO C
    uc_is_grapheme_break10.2 Grapheme cluster break property
    uc_is_java_whitespace8.12 ISO C and Java syntax
    uc_is_lower8.13 Classifications like in ISO C
    uc_is_print8.13 Classifications like in ISO C
    uc_is_property8.9.1 Properties as objects – the object oriented API
    uc_is_property_alphabetic8.9.2 Properties as functions – the functional API
    uc_is_property_ascii_hex_digit8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_arabic_digit8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_arabic_right_to_left8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_block_separator8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_boundary_neutral8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_common_separator8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_control8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_embedding_or_override8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_eur_num_separator8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_eur_num_terminator8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_european_digit8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_hebrew_right_to_left8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_left_to_right8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_non_spacing_mark8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_other_neutral8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_pdf8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_segment_separator8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_whitespace8.9.2 Properties as functions – the functional API
    uc_is_property_case_ignorable8.9.2 Properties as functions – the functional API
    uc_is_property_cased8.9.2 Properties as functions – the functional API
    uc_is_property_changes_when_casefolded8.9.2 Properties as functions – the functional API
    uc_is_property_changes_when_casemapped8.9.2 Properties as functions – the functional API
    uc_is_property_changes_when_lowercased8.9.2 Properties as functions – the functional API
    uc_is_property_changes_when_titlecased8.9.2 Properties as functions – the functional API
    uc_is_property_changes_when_uppercased8.9.2 Properties as functions – the functional API
    uc_is_property_combining8.9.2 Properties as functions – the functional API
    uc_is_property_composite8.9.2 Properties as functions – the functional API
    uc_is_property_currency_symbol8.9.2 Properties as functions – the functional API
    uc_is_property_dash8.9.2 Properties as functions – the functional API
    uc_is_property_decimal_digit8.9.2 Properties as functions – the functional API
    uc_is_property_default_ignorable_code_point8.9.2 Properties as functions – the functional API
    uc_is_property_deprecated8.9.2 Properties as functions – the functional API
    uc_is_property_diacritic8.9.2 Properties as functions – the functional API
    uc_is_property_extender8.9.2 Properties as functions – the functional API
    uc_is_property_format_control8.9.2 Properties as functions – the functional API
    uc_is_property_grapheme_base8.9.2 Properties as functions – the functional API
    uc_is_property_grapheme_extend8.9.2 Properties as functions – the functional API
    uc_is_property_grapheme_link8.9.2 Properties as functions – the functional API
    uc_is_property_hex_digit8.9.2 Properties as functions – the functional API
    uc_is_property_hyphen8.9.2 Properties as functions – the functional API
    uc_is_property_id_continue8.9.2 Properties as functions – the functional API
    uc_is_property_id_start8.9.2 Properties as functions – the functional API
    uc_is_property_ideographic8.9.2 Properties as functions – the functional API
    uc_is_property_ids_binary_operator8.9.2 Properties as functions – the functional API
    uc_is_property_ids_trinary_operator8.9.2 Properties as functions – the functional API
    uc_is_property_ignorable_control8.9.2 Properties as functions – the functional API
    uc_is_property_iso_control8.9.2 Properties as functions – the functional API
    uc_is_property_join_control8.9.2 Properties as functions – the functional API
    uc_is_property_left_of_pair8.9.2 Properties as functions – the functional API
    uc_is_property_line_separator8.9.2 Properties as functions – the functional API
    uc_is_property_logical_order_exception8.9.2 Properties as functions – the functional API
    uc_is_property_lowercase8.9.2 Properties as functions – the functional API
    uc_is_property_math8.9.2 Properties as functions – the functional API
    uc_is_property_non_break8.9.2 Properties as functions – the functional API
    uc_is_property_not_a_character8.9.2 Properties as functions – the functional API
    uc_is_property_numeric8.9.2 Properties as functions – the functional API
    uc_is_property_other_alphabetic8.9.2 Properties as functions – the functional API
    uc_is_property_other_default_ignorable_code_point8.9.2 Properties as functions – the functional API
    uc_is_property_other_grapheme_extend8.9.2 Properties as functions – the functional API
    uc_is_property_other_id_continue8.9.2 Properties as functions – the functional API
    uc_is_property_other_id_start8.9.2 Properties as functions – the functional API
    uc_is_property_other_lowercase8.9.2 Properties as functions – the functional API
    uc_is_property_other_math8.9.2 Properties as functions – the functional API
    uc_is_property_other_uppercase8.9.2 Properties as functions – the functional API
    uc_is_property_paired_punctuation8.9.2 Properties as functions – the functional API
    uc_is_property_paragraph_separator8.9.2 Properties as functions – the functional API
    uc_is_property_pattern_syntax8.9.2 Properties as functions – the functional API
    uc_is_property_pattern_white_space8.9.2 Properties as functions – the functional API
    uc_is_property_private_use8.9.2 Properties as functions – the functional API
    uc_is_property_punctuation8.9.2 Properties as functions – the functional API
    uc_is_property_quotation_mark8.9.2 Properties as functions – the functional API
    uc_is_property_radical8.9.2 Properties as functions – the functional API
    uc_is_property_sentence_terminal8.9.2 Properties as functions – the functional API
    uc_is_property_soft_dotted8.9.2 Properties as functions – the functional API
    uc_is_property_space8.9.2 Properties as functions – the functional API
    uc_is_property_terminal_punctuation8.9.2 Properties as functions – the functional API
    uc_is_property_titlecase8.9.2 Properties as functions – the functional API
    uc_is_property_unassigned_code_value8.9.2 Properties as functions – the functional API
    uc_is_property_unified_ideograph8.9.2 Properties as functions – the functional API
    uc_is_property_uppercase8.9.2 Properties as functions – the functional API
    uc_is_property_variation_selector8.9.2 Properties as functions – the functional API
    uc_is_property_white_space8.9.2 Properties as functions – the functional API
    uc_is_property_xid_continue8.9.2 Properties as functions – the functional API
    uc_is_property_xid_start8.9.2 Properties as functions – the functional API
    uc_is_property_zero_width8.9.2 Properties as functions – the functional API
    uc_is_punct8.13 Classifications like in ISO C
    uc_is_script8.10 Scripts
    uc_is_space8.13 Classifications like in ISO C
    uc_is_upper8.13 Classifications like in ISO C
    uc_is_xdigit8.13 Classifications like in ISO C
    uc_java_ident_category8.12 ISO C and Java syntax
    uc_joining_group8.8.2 Joining group of Arabic characters
    uc_joining_group_byname8.8.2 Joining group of Arabic characters
    uc_joining_group_name8.8.2 Joining group of Arabic characters
    uc_joining_type8.8.1 Joining type of Arabic characters
    uc_joining_type_byname8.8.1 Joining type of Arabic characters
    uc_joining_type_long_name8.8.1 Joining type of Arabic characters
    uc_joining_type_name8.8.1 Joining type of Arabic characters
    uc_locale_language14.2 Case mappings of strings
    uc_mirror_char8.7 Mirrored character
    uc_numeric_value8.6 Numeric value
    uc_property_byname8.9.1 Properties as objects – the object oriented API
    uc_property_is_valid8.9.1 Properties as objects – the object oriented API
    uc_property_t8.9.1 Properties as objects – the object oriented API
    uc_script8.10 Scripts
    uc_script_byname8.10 Scripts
    uc_script_t8.10 Scripts
    uc_tolower14.1 Case mappings of characters
    uc_totitle14.1 Case mappings of characters
    uc_toupper14.1 Case mappings of characters
    uc_width9. Display width <uniwidth.h>
    uc_wordbreak_property11.2 Word break property
    UCS-41.1 Unicode
    ucs4_t3. Elementary types <unitypes.h>
    uint16_t3. Elementary types <unitypes.h>
    uint32_t3. Elementary types <unitypes.h>
    uint8_t3. Elementary types <unitypes.h>
    ulc_asnprintf6. Output with Unicode strings <unistdio.h>
    ulc_asprintf6. Output with Unicode strings <unistdio.h>
    ulc_casecmp14.4 Case insensitive comparison
    ulc_casecoll14.4 Case insensitive comparison
    ulc_casexfrm14.4 Case insensitive comparison
    ulc_fprintf6. Output with Unicode strings <unistdio.h>
    ulc_grapheme_breaks10.1 Grapheme cluster breaks in a string
    ulc_possible_linebreaks12. Line breaking <unilbrk.h>
    ulc_snprintf6. Output with Unicode strings <unistdio.h>
    ulc_sprintf6. Output with Unicode strings <unistdio.h>
    ulc_vasnprintf6. Output with Unicode strings <unistdio.h>
    ulc_vasprintf6. Output with Unicode strings <unistdio.h>
    ulc_vfprintf6. Output with Unicode strings <unistdio.h>
    ulc_vsnprintf6. Output with Unicode strings <unistdio.h>
    ulc_vsprintf6. Output with Unicode strings <unistdio.h>
    ulc_width_linebreaks12. Line breaking <unilbrk.h>
    ulc_wordbreaks11.1 Word breaks in a string
    Unicode1.1 Unicode
    Unicode character, bidi class8.3 Bidi class
    Unicode character, bidirectional category8.3 Bidi class
    Unicode character, block8.11 Blocks
    Unicode character, canonical combining class8.2 Canonical combining class
    Unicode character, case mappings14.1 Case mappings of characters
    Unicode character, classification8.1 General category
    Unicode character, classification like in C8.13 Classifications like in ISO C
    Unicode character, general category8.1 General category
    Unicode character, mirroring8.7 Mirrored character
    Unicode character, name7. Names of Unicode characters <uniname.h>
    Unicode character, properties8.9 Properties
    Unicode character, script8.10 Scripts
    Unicode character, validity in C identifiers8.12 ISO C and Java syntax
    Unicode character, validity in Java identifiers8.12 ISO C and Java syntax
    Unicode character, value8.4 Decimal digit value
    Unicode character, value8.5 Digit value
    Unicode character, value8.6 Numeric value
    Unicode character, width9. Display width <uniwidth.h>
    unicode_character_name7. Names of Unicode characters <uniname.h>
    unicode_name_character7. Names of Unicode characters <uniname.h>
    uninorm_decomposing_form13.3 Normalization of strings
    uninorm_filter_create13.5 Normalization of streams of Unicode characters
    uninorm_filter_flush13.5 Normalization of streams of Unicode characters
    uninorm_filter_free13.5 Normalization of streams of Unicode characters
    uninorm_filter_write13.5 Normalization of streams of Unicode characters
    uninorm_is_compat_decomposing13.3 Normalization of strings
    uninorm_is_composing13.3 Normalization of strings
    uninorm_t13.3 Normalization of strings
    uppercasing14.2 Case mappings of strings
    use cases1. Introduction
    UTF-161.1 Unicode
    UTF-16, strings1.7 Unicode strings
    UTF-321.1 Unicode
    UTF-32, strings1.7 Unicode strings
    UTF-81.1 Unicode
    UTF-8, strings1.7 Unicode strings

    -
    Jump to:   A -   -B -   -C -   -D -   -E -   -F -   -G -   -H -   -I -   -J -   -L -   -M -   -N -   -O -   -P -   -R -   -S -   -T -   -U -   -V -   -W -   -
    + + +

    B. Licenses

    + +

    The files of this package are covered by the licenses indicated in each +particular file or directory. Here is a summary: +

    +
      +
    • +The libunistring library and its header files are dual-licensed under +"the GNU LGPLv3+ or the GNU GPLv2". This means, you can use it under either +
        +
      • - +the terms of the GNU Lesser General Public License (LGPL) version 3 or +(at your option) any later version, or +
      • - +the terms of the GNU General Public License (GPL) version 2, or +
      • - +the same dual license "the GNU LGPLv3+ or the GNU GPLv2". +
      +

      You find the GNU LGPL version 3 in GNU LESSER GENERAL PUBLIC LICENSE. This license is +based on the GNU GPL version 3, see GNU GENERAL PUBLIC LICENSE. +
      +You can find the GNU GPL version 2 at +https://www.gnu.org/licenses/old-licenses/gpl-2.0.html. +
      +Note: This dual license makes it possible for the libunistring library +to be used by packages under GPLv2 or GPLv2+ licenses, in particular. See +the table in https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility. +

      + +
    • +This manual is free documentation. It is dually licensed under the +GNU FDL and the GNU GPL. This means that you can redistribute this +manual under either of these two licenses, at your choice. +
      +This manual is covered by the GNU FDL. Permission is granted to copy, +distribute and/or modify this document under the terms of the +GNU Free Documentation License (FDL), either version 1.2 of the +License, or (at your option) any later version published by the +Free Software Foundation (FSF); with no Invariant Sections, with no +Front-Cover Text, and with no Back-Cover Texts. +A copy of the license is included in GNU Free Documentation License. +
      +This manual is covered by the GNU GPL. You can redistribute it and/or +modify it under the terms of the GNU General Public License (GPL), either +version 3 of the License, or (at your option) any later version published +by the Free Software Foundation (FSF). +A copy of the license is included in GNU GENERAL PUBLIC LICENSE. +
    + + + +
    + + +

    B.1 GNU GENERAL PUBLIC LICENSE

    +

    Version 3, 29 June 2007 +

    + +
     
    Copyright © 2007 Free Software Foundation, Inc. http://fsf.org/
    +
    +Everyone is permitted to copy and distribute verbatim copies of this
    +license document, but changing it is not allowed.
    +
    + + +

    Preamble

    + +

    The GNU General Public License is a free, copyleft license for +software and other kinds of works. +

    +

    The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom +to share and change all versions of a program—to make sure it remains +free software for all its users. We, the Free Software Foundation, +use the GNU General Public License for most of our software; it +applies also to any other work released this way by its authors. You +can apply it to your programs, too. +

    +

    When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. +

    +

    To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you +have certain responsibilities if you distribute copies of the +software, or if you modify it: responsibilities to respect the freedom +of others. +

    +

    For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, +receive or can get the source code. And you must show them these +terms so they know their rights. +

    +

    Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. +

    +

    For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. +

    +

    Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the +manufacturer can do so. This is fundamentally incompatible with the +aim of protecting users' freedom to change the software. The +systematic pattern of such abuse occurs in the area of products for +individuals to use, which is precisely where it is most unacceptable. +Therefore, we have designed this version of the GPL to prohibit the +practice for those products. If such problems arise substantially in +other domains, we stand ready to extend this provision to those +domains in future versions of the GPL, as needed to protect the +freedom of users. +

    +

    Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish +to avoid the special danger that patents applied to a free program +could make it effectively proprietary. To prevent this, the GPL +assures that patents cannot be used to render the program non-free. +

    +

    The precise terms and conditions for copying, distribution and +modification follow. +

    + +

    TERMS AND CONDITIONS

    + +
      +
    1. Definitions. + +

      “This License” refers to version 3 of the GNU General Public License. +

      +

      “Copyright” also means copyright-like laws that apply to other kinds +of works, such as semiconductor masks. +

      +

      “The Program” refers to any copyrightable work licensed under this +License. Each licensee is addressed as “you”. “Licensees” and +“recipients” may be individuals or organizations. +

      +

      To “modify” a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of +an exact copy. The resulting work is called a “modified version” of +the earlier work or a work “based on” the earlier work. +

      +

      A “covered work” means either the unmodified Program or a work based +on the Program. +

      +

      To “propagate” a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. +

      +

      To “convey” a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user +through a computer network, with no transfer of a copy, is not +conveying. +

      +

      An interactive user interface displays “Appropriate Legal Notices” to +the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. +

      +
    2. Source Code. + +

      The “source code” for a work means the preferred form of the work for +making modifications to it. “Object code” means any non-source form +of a work. +

      +

      A “Standard Interface” means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. +

      +

      The “System Libraries” of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +“Major Component”, in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. +

      +

      The “Corresponding Source” for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. +

      +

      The Corresponding Source need not include anything that users can +regenerate automatically from other parts of the Corresponding Source. +

      +

      The Corresponding Source for a work in source code form is that same +work. +

      +
    3. Basic Permissions. + +

      All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. +

      +

      You may make, run and propagate covered works that you do not convey, +without conditions so long as your license otherwise remains in force. +You may convey covered works to others for the sole purpose of having +them make modifications exclusively for you, or provide you with +facilities for running those works, provided that you comply with the +terms of this License in conveying all material for which you do not +control copyright. Those thus making or running the covered works for +you must do so exclusively on your behalf, under your direction and +control, on terms that prohibit them from making any copies of your +copyrighted material outside their relationship with you. +

      +

      Conveying under any other circumstances is permitted solely under the +conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. +

      +
    4. Protecting Users' Legal Rights From Anti-Circumvention Law. + +

      No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. +

      +

      When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such +circumvention is effected by exercising rights under this License with +respect to the covered work, and you disclaim any intention to limit +operation or modification of the work as a means of enforcing, against +the work's users, your or third parties' legal rights to forbid +circumvention of technological measures. +

      +
    5. Conveying Verbatim Copies. + +

      You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. +

      +

      You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. +

      +
    6. Conveying Modified Source Versions. + +

      You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these +conditions: +

      +
        +
      1. +The work must carry prominent notices stating that you modified it, +and giving a relevant date. + +
      2. +The work must carry prominent notices stating that it is released +under this License and any conditions added under section 7. This +requirement modifies the requirement in section 4 to “keep intact all +notices”. + +
      3. +You must license the entire work, as a whole, under this License to +anyone who comes into possession of a copy. This License will +therefore apply, along with any applicable section 7 additional terms, +to the whole of the work, and all its parts, regardless of how they +are packaged. This License gives no permission to license the work in +any other way, but it does not invalidate such permission if you have +separately received it. + +
      4. +If the work has interactive user interfaces, each must display +Appropriate Legal Notices; however, if the Program has interactive +interfaces that do not display Appropriate Legal Notices, your work +need not make them do so. +
      + +

      A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +“aggregate” if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. +

      +
    7. Conveying Non-Source Forms. + +

      You may convey a covered work in object code form under the terms of +sections 4 and 5, provided that you also convey the machine-readable +Corresponding Source under the terms of this License, in one of these +ways: +

      +
        +
      1. +Convey the object code in, or embodied in, a physical product +(including a physical distribution medium), accompanied by the +Corresponding Source fixed on a durable physical medium customarily +used for software interchange. + +
      2. +Convey the object code in, or embodied in, a physical product +(including a physical distribution medium), accompanied by a written +offer, valid for at least three years and valid for as long as you +offer spare parts or customer support for that product model, to give +anyone who possesses the object code either (1) a copy of the +Corresponding Source for all the software in the product that is +covered by this License, on a durable physical medium customarily used +for software interchange, for a price no more than your reasonable +cost of physically performing this conveying of source, or (2) access +to copy the Corresponding Source from a network server at no charge. + +
      3. +Convey individual copies of the object code with a copy of the written +offer to provide the Corresponding Source. This alternative is +allowed only occasionally and noncommercially, and only if you +received the object code with such an offer, in accord with subsection +6b. + +
      4. +Convey the object code by offering access from a designated place +(gratis or for a charge), and offer equivalent access to the +Corresponding Source in the same way through the same place at no +further charge. You need not require recipients to copy the +Corresponding Source along with the object code. If the place to copy +the object code is a network server, the Corresponding Source may be +on a different server (operated by you or a third party) that supports +equivalent copying facilities, provided you maintain clear directions +next to the object code saying where to find the Corresponding Source. +Regardless of what server hosts the Corresponding Source, you remain +obligated to ensure that it is available for as long as needed to +satisfy these requirements. + +
      5. +Convey the object code using peer-to-peer transmission, provided you +inform other peers where the object code and Corresponding Source of +the work are being offered to the general public at no charge under +subsection 6d. + +
      + +

      A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. +

      +

      A “User Product” is either (1) a “consumer product”, which means any +tangible personal property which is normally used for personal, +family, or household purposes, or (2) anything designed or sold for +incorporation into a dwelling. In determining whether a product is a +consumer product, doubtful cases shall be resolved in favor of +coverage. For a particular product received by a particular user, +“normally used” refers to a typical or common use of that class of +product, regardless of the status of the particular user or of the way +in which the particular user actually uses, or expects or is expected +to use, the product. A product is a consumer product regardless of +whether the product has substantial commercial, industrial or +non-consumer uses, unless such uses represent the only significant +mode of use of the product. +

      +

      “Installation Information” for a User Product means any methods, +procedures, authorization keys, or other information required to +install and execute modified versions of a covered work in that User +Product from a modified version of its Corresponding Source. The +information must suffice to ensure that the continued functioning of +the modified object code is in no case prevented or interfered with +solely because modification has been made. +

      +

      If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). +

      +

      The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or +updates for a work that has been modified or installed by the +recipient, or for the User Product in which it has been modified or +installed. Access to a network may be denied when the modification +itself materially and adversely affects the operation of the network +or violates the rules and protocols for communication across the +network. +

      +

      Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. +

      +
    8. Additional Terms. + +

      “Additional permissions” are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. +

      +

      When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. +

      +

      Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders +of that material) supplement the terms of this License with terms: +

      +
        +
      1. +Disclaiming warranty or limiting liability differently from the terms +of sections 15 and 16 of this License; or + +
      2. +Requiring preservation of specified reasonable legal notices or author +attributions in that material or in the Appropriate Legal Notices +displayed by works containing it; or + +
      3. +Prohibiting misrepresentation of the origin of that material, or +requiring that modified versions of such material be marked in +reasonable ways as different from the original version; or + +
      4. +Limiting the use for publicity purposes of names of licensors or +authors of the material; or + +
      5. +Declining to grant rights under trademark law for use of some trade +names, trademarks, or service marks; or + +
      6. +Requiring indemnification of licensors and authors of that material by +anyone who conveys the material (or modified versions of it) with +contractual assumptions of liability to the recipient, for any +liability that these contractual assumptions directly impose on those +licensors and authors. +
      + +

      All other non-permissive additional terms are considered “further +restrictions” within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. +

      +

      If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. +

      +

      Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; the +above requirements apply either way. +

      +
    9. Termination. + +

      You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). +

      +

      However, if you cease all violation of this License, then your license +from a particular copyright holder is reinstated (a) provisionally, +unless and until the copyright holder explicitly and finally +terminates your license, and (b) permanently, if the copyright holder +fails to notify you of the violation by some reasonable means prior to +60 days after the cessation. +

      +

      Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. +

      +

      Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. +

      +
    10. Acceptance Not Required for Having Copies. + +

      You are not required to accept this License in order to receive or run +a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. +

      +
    11. Automatic Licensing of Downstream Recipients. + +

      Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. +

      +

      An “entity transaction” is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. +

      +

      You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. +

      +
    12. Patents. + +

      A “contributor” is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's “contributor version”. +

      +

      A contributor's “essential patent claims” are all patent claims owned +or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, “control” includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. +

      +

      Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. +

      +

      In the following three paragraphs, a “patent license” is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To “grant” such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. +

      +

      If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. “Knowingly relying” means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. +

      +

      If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. +

      +

      A patent license is “discriminatory” if it does not include within the +scope of its coverage, prohibits the exercise of, or is conditioned on +the non-exercise of one or more of the rights that are specifically +granted under this License. You may not convey a covered work if you +are a party to an arrangement with a third party that is in the +business of distributing software, under which you make payment to the +third party based on the extent of your activity of conveying the +work, and under which the third party grants, to any of the parties +who would receive the covered work from you, a discriminatory patent +license (a) in connection with copies of the covered work conveyed by +you (or copies made from those copies), or (b) primarily for and in +connection with specific products or compilations that contain the +covered work, unless you entered into that arrangement, or that patent +license was granted, prior to 28 March 2007. +

      +

      Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. +

      +
    13. No Surrender of Others' Freedom. + +

      If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey +a covered work so as to satisfy simultaneously your obligations under +this License and any other pertinent obligations, then as a +consequence you may not convey it at all. For example, if you agree +to terms that obligate you to collect a royalty for further conveying +from those to whom you convey the Program, the only way you could +satisfy both those terms and this License would be to refrain entirely +from conveying the Program. +

      +
    14. Use with the GNU Affero General Public License. + +

      Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. +

      +
    15. Revised Versions of this License. + +

      The Free Software Foundation may publish revised and/or new versions +of the GNU General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. +

      +

      Each version is given a distinguishing version number. If the Program +specifies that a certain numbered version of the GNU General Public +License “or any later version” applies to it, you have the option of +following the terms and conditions either of that numbered version or +of any later version published by the Free Software Foundation. If +the Program does not specify a version number of the GNU General +Public License, you may choose any version ever published by the Free +Software Foundation. +

      +

      If the Program specifies that a proxy can decide which future versions +of the GNU General Public License can be used, that proxy's public +statement of acceptance of a version permanently authorizes you to +choose that version for the Program. +

      +

      Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. +

      +
    16. Disclaimer of Warranty. + +

      THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT +WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND +PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE +DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR +CORRECTION. +

      +
    17. Limitation of Liability. + +

      IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR +CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT +NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR +LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM +TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER +PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +

      +
    18. Interpretation of Sections 15 and 16. + +

      If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. +

      +
    + + +

    END OF TERMS AND CONDITIONS

    + + +

    How to Apply These Terms to Your New Programs

    + +

    If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these +terms. +

    +

    To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the “copyright” line and a pointer to where the full notice is found. +

    +
     
    one line to give the program's name and a brief idea of what it does.
    +Copyright (C) year name of author
    +
    +This program is free software: you can redistribute it and/or modify
    +it under the terms of the GNU General Public License as published by
    +the Free Software Foundation, either version 3 of the License, or (at
    +your option) any later version.
    +
    +This program is distributed in the hope that it will be useful, but
    +WITHOUT ANY WARRANTY; without even the implied warranty of
    +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    +General Public License for more details.
    +
    +You should have received a copy of the GNU General Public License
    +along with this program.  If not, see http://www.gnu.org/licenses/.
    +
    + +

    Also add information on how to contact you by electronic and paper mail. +

    +

    If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: +

    +
     
    program Copyright (C) year name of author
    +This program comes with ABSOLUTELY NO WARRANTY; for details type ‘show w’.
    +This is free software, and you are welcome to redistribute it
    +under certain conditions; type ‘show c’ for details.
    +
    + +

    The hypothetical commands ‘show w’ and ‘show c’ should show +the appropriate parts of the General Public License. Of course, your +program's commands might be different; for a GUI interface, you would +use an “about box”. +

    +

    You should also get your employer (if you work as a programmer) or school, +if any, to sign a “copyright disclaimer” for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +http://www.gnu.org/licenses/. +

    +

    The GNU General Public License does not permit incorporating your +program into proprietary programs. If your program is a subroutine +library, you may consider it more useful to permit linking proprietary +applications with the library. If this is what you want to do, use +the GNU Lesser General Public License instead of this License. But +first, please read http://www.gnu.org/philosophy/why-not-lgpl.html. + +


    + + +

    B.2 GNU LESSER GENERAL PUBLIC LICENSE

    +

    Version 3, 29 June 2007 +

    + +
     
    Copyright © 2007 Free Software Foundation, Inc. http://fsf.org/
    +
    +Everyone is permitted to copy and distribute verbatim copies of this
    +license document, but changing it is not allowed.
    +
    + +

    This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. +

    +
      +
    1. Additional Definitions. + +

      As used herein, “this License” refers to version 3 of the GNU Lesser +General Public License, and the “GNU GPL” refers to version 3 of the GNU +General Public License. +

      +

      “The Library” refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. +

      +

      An “Application” is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. +

      +

      A “Combined Work” is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the “Linked +Version”. +

      +

      The “Minimal Corresponding Source” for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. +

      +

      The “Corresponding Application Code” for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. +

      +
    2. Exception to Section 3 of the GNU GPL. + +

      You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. +

      +
    3. Conveying Modified Versions. + +

      If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: +

      +
        +
      1. +under this License, provided that you make a good faith effort to +ensure that, in the event an Application does not supply the +function or data, the facility still operates, and performs +whatever part of its purpose remains meaningful, or + +
      2. +under the GNU GPL, with none of the additional permissions of +this License applicable to that copy. +
      + +
    4. Object Code Incorporating Material from Library Header Files. + +

      The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: +

      +
        +
      1. +Give prominent notice with each copy of the object code that the +Library is used in it and that the Library and its use are +covered by this License. +
      2. +Accompany the object code with a copy of the GNU GPL and this license +document. +
      + +
    5. Combined Works. + +

      You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: +

      +
        +
      1. +Give prominent notice with each copy of the Combined Work that +the Library is used in it and that the Library and its use are +covered by this License. +
      2. +Accompany the Combined Work with a copy of the GNU GPL and this license +document. +
      3. +For a Combined Work that displays copyright notices during +execution, include the copyright notice for the Library among +these notices, as well as a reference directing the user to the +copies of the GNU GPL and this license document. +
      4. +Do one of the following: + +
          +
        1. +Convey the Minimal Corresponding Source under the terms of this +License, and the Corresponding Application Code in a form +suitable for, and under terms that permit, the user to +recombine or relink the Application with a modified version of +the Linked Version to produce a modified Combined Work, in the +manner specified by section 6 of the GNU GPL for conveying +Corresponding Source. +
        2. +Use a suitable shared library mechanism for linking with the +Library. A suitable mechanism is one that (a) uses at run time +a copy of the Library already present on the user's computer +system, and (b) will operate properly with a modified version +of the Library that is interface-compatible with the Linked +Version. +
        + +
      5. +Provide Installation Information, but only if you would otherwise +be required to provide such information under section 6 of the +GNU GPL, and only to the extent that such information is +necessary to install and execute a modified version of the +Combined Work produced by recombining or relinking the +Application with a modified version of the Linked Version. (If +you use option 4d0, the Installation Information must accompany +the Minimal Corresponding Source and Corresponding Application +Code. If you use option 4d1, you must provide the Installation +Information in the manner specified by section 6 of the GNU GPL +for conveying Corresponding Source.) +
      + +
    6. Combined Libraries. + +

      You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: +

      +
        +
      1. +Accompany the combined library with a copy of the same work based +on the Library, uncombined with any other library facilities, +conveyed under the terms of this License. +
      2. +Give prominent notice with the combined library that part of it +is a work based on the Library, and explaining where to find the +accompanying uncombined form of the same work. +
      + +
    7. Revised Versions of the GNU Lesser General Public License. + +

      The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. +

      +

      Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License “or any later version” +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. +

      +

      If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. +

      +
    + +
    + + +

    B.3 GNU Free Documentation License

    +

    Version 1.3, 3 November 2008 +

    + +
     
    Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
    +http://fsf.org/
    +
    +Everyone is permitted to copy and distribute verbatim copies
    +of this license document, but changing it is not allowed.
    +
    + +
      +
    1. +PREAMBLE + +

      The purpose of this License is to make a manual, textbook, or other +functional and useful document free in the sense of freedom: to +assure everyone the effective freedom to copy and redistribute it, +with or without modifying it, either commercially or noncommercially. +Secondarily, this License preserves for the author and publisher a way +to get credit for their work, while not being considered responsible +for modifications made by others. +

      +

      This License is a kind of “copyleft”, which means that derivative +works of the document must themselves be free in the same sense. It +complements the GNU General Public License, which is a copyleft +license designed for free software. +

      +

      We have designed this License in order to use it for manuals for free +software, because free software needs free documentation: a free +program should come with manuals providing the same freedoms that the +software does. But this License is not limited to software manuals; +it can be used for any textual work, regardless of subject matter or +whether it is published as a printed book. We recommend this License +principally for works whose purpose is instruction or reference. +

      +
    2. +APPLICABILITY AND DEFINITIONS + +

      This License applies to any manual or other work, in any medium, that +contains a notice placed by the copyright holder saying it can be +distributed under the terms of this License. Such a notice grants a +world-wide, royalty-free license, unlimited in duration, to use that +work under the conditions stated herein. The “Document”, below, +refers to any such manual or work. Any member of the public is a +licensee, and is addressed as “you”. You accept the license if you +copy, modify or distribute the work in a way requiring permission +under copyright law. +

      +

      A “Modified Version” of the Document means any work containing the +Document or a portion of it, either copied verbatim, or with +modifications and/or translated into another language. +

      +

      A “Secondary Section” is a named appendix or a front-matter section +of the Document that deals exclusively with the relationship of the +publishers or authors of the Document to the Document's overall +subject (or to related matters) and contains nothing that could fall +directly within that overall subject. (Thus, if the Document is in +part a textbook of mathematics, a Secondary Section may not explain +any mathematics.) The relationship could be a matter of historical +connection with the subject or with related matters, or of legal, +commercial, philosophical, ethical or political position regarding +them. +

      +

      The “Invariant Sections” are certain Secondary Sections whose titles +are designated, as being those of Invariant Sections, in the notice +that says that the Document is released under this License. If a +section does not fit the above definition of Secondary then it is not +allowed to be designated as Invariant. The Document may contain zero +Invariant Sections. If the Document does not identify any Invariant +Sections then there are none. +

      +

      The “Cover Texts” are certain short passages of text that are listed, +as Front-Cover Texts or Back-Cover Texts, in the notice that says that +the Document is released under this License. A Front-Cover Text may +be at most 5 words, and a Back-Cover Text may be at most 25 words. +

      +

      A “Transparent” copy of the Document means a machine-readable copy, +represented in a format whose specification is available to the +general public, that is suitable for revising the document +straightforwardly with generic text editors or (for images composed of +pixels) generic paint programs or (for drawings) some widely available +drawing editor, and that is suitable for input to text formatters or +for automatic translation to a variety of formats suitable for input +to text formatters. A copy made in an otherwise Transparent file +format whose markup, or absence of markup, has been arranged to thwart +or discourage subsequent modification by readers is not Transparent. +An image format is not Transparent if used for any substantial amount +of text. A copy that is not “Transparent” is called “Opaque”. +

      +

      Examples of suitable formats for Transparent copies include plain +ASCII without markup, Texinfo input format, LaTeX input +format, SGML or XML using a publicly available +DTD, and standard-conforming simple HTML, +PostScript or PDF designed for human modification. Examples +of transparent image formats include PNG, XCF and +JPG. Opaque formats include proprietary formats that can be +read and edited only by proprietary word processors, SGML or +XML for which the DTD and/or processing tools are +not generally available, and the machine-generated HTML, +PostScript or PDF produced by some word processors for +output purposes only. +

      +

      The “Title Page” means, for a printed book, the title page itself, +plus such following pages as are needed to hold, legibly, the material +this License requires to appear in the title page. For works in +formats which do not have any title page as such, “Title Page” means +the text near the most prominent appearance of the work's title, +preceding the beginning of the body of the text. +

      +

      The “publisher” means any person or entity that distributes copies +of the Document to the public. +

      +

      A section “Entitled XYZ” means a named subunit of the Document whose +title either is precisely XYZ or contains XYZ in parentheses following +text that translates XYZ in another language. (Here XYZ stands for a +specific section name mentioned below, such as “Acknowledgements”, +“Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” +of such a section when you modify the Document means that it remains a +section “Entitled XYZ” according to this definition. +

      +

      The Document may include Warranty Disclaimers next to the notice which +states that this License applies to the Document. These Warranty +Disclaimers are considered to be included by reference in this +License, but only as regards disclaiming warranties: any other +implication that these Warranty Disclaimers may have is void and has +no effect on the meaning of this License. +

      +
    3. +VERBATIM COPYING + +

      You may copy and distribute the Document in any medium, either +commercially or noncommercially, provided that this License, the +copyright notices, and the license notice saying this License applies +to the Document are reproduced in all copies, and that you add no other +conditions whatsoever to those of this License. You may not use +technical measures to obstruct or control the reading or further +copying of the copies you make or distribute. However, you may accept +compensation in exchange for copies. If you distribute a large enough +number of copies you must also follow the conditions in section 3. +

      +

      You may also lend copies, under the same conditions stated above, and +you may publicly display copies. +

      +
    4. +COPYING IN QUANTITY + +

      If you publish printed copies (or copies in media that commonly have +printed covers) of the Document, numbering more than 100, and the +Document's license notice requires Cover Texts, you must enclose the +copies in covers that carry, clearly and legibly, all these Cover +Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on +the back cover. Both covers must also clearly and legibly identify +you as the publisher of these copies. The front cover must present +the full title with all words of the title equally prominent and +visible. You may add other material on the covers in addition. +Copying with changes limited to the covers, as long as they preserve +the title of the Document and satisfy these conditions, can be treated +as verbatim copying in other respects. +

      +

      If the required texts for either cover are too voluminous to fit +legibly, you should put the first ones listed (as many as fit +reasonably) on the actual cover, and continue the rest onto adjacent +pages. +

      +

      If you publish or distribute Opaque copies of the Document numbering +more than 100, you must either include a machine-readable Transparent +copy along with each Opaque copy, or state in or with each Opaque copy +a computer-network location from which the general network-using +public has access to download using public-standard network protocols +a complete Transparent copy of the Document, free of added material. +If you use the latter option, you must take reasonably prudent steps, +when you begin distribution of Opaque copies in quantity, to ensure +that this Transparent copy will remain thus accessible at the stated +location until at least one year after the last time you distribute an +Opaque copy (directly or through your agents or retailers) of that +edition to the public. +

      +

      It is requested, but not required, that you contact the authors of the +Document well before redistributing any large number of copies, to give +them a chance to provide you with an updated version of the Document. +

      +
    5. +MODIFICATIONS + +

      You may copy and distribute a Modified Version of the Document under +the conditions of sections 2 and 3 above, provided that you release +the Modified Version under precisely this License, with the Modified +Version filling the role of the Document, thus licensing distribution +and modification of the Modified Version to whoever possesses a copy +of it. In addition, you must do these things in the Modified Version: +

      +
        +
      1. +Use in the Title Page (and on the covers, if any) a title distinct +from that of the Document, and from those of previous versions +(which should, if there were any, be listed in the History section +of the Document). You may use the same title as a previous version +if the original publisher of that version gives permission. + +
      2. +List on the Title Page, as authors, one or more persons or entities +responsible for authorship of the modifications in the Modified +Version, together with at least five of the principal authors of the +Document (all of its principal authors, if it has fewer than five), +unless they release you from this requirement. + +
      3. +State on the Title page the name of the publisher of the +Modified Version, as the publisher. + +
      4. +Preserve all the copyright notices of the Document. + +
      5. +Add an appropriate copyright notice for your modifications +adjacent to the other copyright notices. + +
      6. +Include, immediately after the copyright notices, a license notice +giving the public permission to use the Modified Version under the +terms of this License, in the form shown in the Addendum below. + +
      7. +Preserve in that license notice the full lists of Invariant Sections +and required Cover Texts given in the Document's license notice. + +
      8. +Include an unaltered copy of this License. + +
      9. +Preserve the section Entitled “History”, Preserve its Title, and add +to it an item stating at least the title, year, new authors, and +publisher of the Modified Version as given on the Title Page. If +there is no section Entitled “History” in the Document, create one +stating the title, year, authors, and publisher of the Document as +given on its Title Page, then add an item describing the Modified +Version as stated in the previous sentence. + +
      10. +Preserve the network location, if any, given in the Document for +public access to a Transparent copy of the Document, and likewise +the network locations given in the Document for previous versions +it was based on. These may be placed in the “History” section. +You may omit a network location for a work that was published at +least four years before the Document itself, or if the original +publisher of the version it refers to gives permission. + +
      11. +For any section Entitled “Acknowledgements” or “Dedications”, Preserve +the Title of the section, and preserve in the section all the +substance and tone of each of the contributor acknowledgements and/or +dedications given therein. + +
      12. +Preserve all the Invariant Sections of the Document, +unaltered in their text and in their titles. Section numbers +or the equivalent are not considered part of the section titles. + +
      13. +Delete any section Entitled “Endorsements”. Such a section +may not be included in the Modified Version. + +
      14. +Do not retitle any existing section to be Entitled “Endorsements” or +to conflict in title with any Invariant Section. + +
      15. +Preserve any Warranty Disclaimers. +
      + +

      If the Modified Version includes new front-matter sections or +appendices that qualify as Secondary Sections and contain no material +copied from the Document, you may at your option designate some or all +of these sections as invariant. To do this, add their titles to the +list of Invariant Sections in the Modified Version's license notice. +These titles must be distinct from any other section titles. +

      +

      You may add a section Entitled “Endorsements”, provided it contains +nothing but endorsements of your Modified Version by various +parties—for example, statements of peer review or that the text has +been approved by an organization as the authoritative definition of a +standard. +

      +

      You may add a passage of up to five words as a Front-Cover Text, and a +passage of up to 25 words as a Back-Cover Text, to the end of the list +of Cover Texts in the Modified Version. Only one passage of +Front-Cover Text and one of Back-Cover Text may be added by (or +through arrangements made by) any one entity. If the Document already +includes a cover text for the same cover, previously added by you or +by arrangement made by the same entity you are acting on behalf of, +you may not add another; but you may replace the old one, on explicit +permission from the previous publisher that added the old one. +

      +

      The author(s) and publisher(s) of the Document do not by this License +give permission to use their names for publicity for or to assert or +imply endorsement of any Modified Version. +

      +
    6. +COMBINING DOCUMENTS + +

      You may combine the Document with other documents released under this +License, under the terms defined in section 4 above for modified +versions, provided that you include in the combination all of the +Invariant Sections of all of the original documents, unmodified, and +list them all as Invariant Sections of your combined work in its +license notice, and that you preserve all their Warranty Disclaimers. +

      +

      The combined work need only contain one copy of this License, and +multiple identical Invariant Sections may be replaced with a single +copy. If there are multiple Invariant Sections with the same name but +different contents, make the title of each such section unique by +adding at the end of it, in parentheses, the name of the original +author or publisher of that section if known, or else a unique number. +Make the same adjustment to the section titles in the list of +Invariant Sections in the license notice of the combined work. +

      +

      In the combination, you must combine any sections Entitled “History” +in the various original documents, forming one section Entitled +“History”; likewise combine any sections Entitled “Acknowledgements”, +and any sections Entitled “Dedications”. You must delete all +sections Entitled “Endorsements.” +

      +
    7. +COLLECTIONS OF DOCUMENTS + +

      You may make a collection consisting of the Document and other documents +released under this License, and replace the individual copies of this +License in the various documents with a single copy that is included in +the collection, provided that you follow the rules of this License for +verbatim copying of each of the documents in all other respects. +

      +

      You may extract a single document from such a collection, and distribute +it individually under this License, provided you insert a copy of this +License into the extracted document, and follow this License in all +other respects regarding verbatim copying of that document. +

      +
    8. +AGGREGATION WITH INDEPENDENT WORKS + +

      A compilation of the Document or its derivatives with other separate +and independent documents or works, in or on a volume of a storage or +distribution medium, is called an “aggregate” if the copyright +resulting from the compilation is not used to limit the legal rights +of the compilation's users beyond what the individual works permit. +When the Document is included in an aggregate, this License does not +apply to the other works in the aggregate which are not themselves +derivative works of the Document. +

      +

      If the Cover Text requirement of section 3 is applicable to these +copies of the Document, then if the Document is less than one half of +the entire aggregate, the Document's Cover Texts may be placed on +covers that bracket the Document within the aggregate, or the +electronic equivalent of covers if the Document is in electronic form. +Otherwise they must appear on printed covers that bracket the whole +aggregate. +

      +
    9. +TRANSLATION + +

      Translation is considered a kind of modification, so you may +distribute translations of the Document under the terms of section 4. +Replacing Invariant Sections with translations requires special +permission from their copyright holders, but you may include +translations of some or all Invariant Sections in addition to the +original versions of these Invariant Sections. You may include a +translation of this License, and all the license notices in the +Document, and any Warranty Disclaimers, provided that you also include +the original English version of this License and the original versions +of those notices and disclaimers. In case of a disagreement between +the translation and the original version of this License or a notice +or disclaimer, the original version will prevail. +

      +

      If a section in the Document is Entitled “Acknowledgements”, +“Dedications”, or “History”, the requirement (section 4) to Preserve +its Title (section 1) will typically require changing the actual +title. +

      +
    10. +TERMINATION + +

      You may not copy, modify, sublicense, or distribute the Document +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense, or distribute it is void, and +will automatically terminate your rights under this License. +

      +

      However, if you cease all violation of this License, then your license +from a particular copyright holder is reinstated (a) provisionally, +unless and until the copyright holder explicitly and finally +terminates your license, and (b) permanently, if the copyright holder +fails to notify you of the violation by some reasonable means prior to +60 days after the cessation. +

      +

      Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. +

      +

      Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, receipt of a copy of some or all of the same material does +not give you any rights to use it. +

      +
    11. +FUTURE REVISIONS OF THIS LICENSE + +

      The Free Software Foundation may publish new, revised versions +of the GNU Free Documentation License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. See +http://www.gnu.org/copyleft/. +

      +

      Each version of the License is given a distinguishing version number. +If the Document specifies that a particular numbered version of this +License “or any later version” applies to it, you have the option of +following the terms and conditions either of that specified version or +of any later version that has been published (not as a draft) by the +Free Software Foundation. If the Document does not specify a version +number of this License, you may choose any version ever published (not +as a draft) by the Free Software Foundation. If the Document +specifies that a proxy can decide which future versions of this +License can be used, that proxy's public statement of acceptance of a +version permanently authorizes you to choose that version for the +Document. +

      +
    12. +RELICENSING + +

      “Massive Multiauthor Collaboration Site” (or “MMC Site”) means any +World Wide Web server that publishes copyrightable works and also +provides prominent facilities for anybody to edit those works. A +public wiki that anybody can edit is an example of such a server. A +“Massive Multiauthor Collaboration” (or “MMC”) contained in the +site means any set of copyrightable works thus published on the MMC +site. +

      +

      “CC-BY-SA” means the Creative Commons Attribution-Share Alike 3.0 +license published by Creative Commons Corporation, a not-for-profit +corporation with a principal place of business in San Francisco, +California, as well as future copyleft versions of that license +published by that same organization. +

      +

      “Incorporate” means to publish or republish a Document, in whole or +in part, as part of another Document. +

      +

      An MMC is “eligible for relicensing” if it is licensed under this +License, and if all works that were first published under this License +somewhere other than this MMC, and subsequently incorporated in whole +or in part into the MMC, (1) had no cover texts or invariant sections, +and (2) were thus incorporated prior to November 1, 2008. +

      +

      The operator of an MMC Site may republish an MMC contained in the site +under CC-BY-SA on the same site at any time before August 1, 2009, +provided the MMC is eligible for relicensing. +

      +
    + + + +

    ADDENDUM: How to use this License for your documents

    + +

    To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and +license notices just after the title page: +

    +
     
      Copyright (C)  year  your name.
    +  Permission is granted to copy, distribute and/or modify this document
    +  under the terms of the GNU Free Documentation License, Version 1.3
    +  or any later version published by the Free Software Foundation;
    +  with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
    +  Texts.  A copy of the license is included in the section entitled ``GNU
    +  Free Documentation License''.
    +
    + +

    If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, +replace the “with…Texts.” line with this: +

    +
     
        with the Invariant Sections being list their titles, with
    +    the Front-Cover Texts being list, and with the Back-Cover Texts
    +    being list.
    +
    + +

    If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. +

    +

    If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of +free software license, such as the GNU General Public License, +to permit their use in free software. +

    + +
    - - + + @@ -803,12 +1530,12 @@ ul.toc {list-style: none} - +
    [ << ][ >> ]
    [ << ][ >> ]         [Top] [Contents][Index][Index] [ ? ]

    - This document was generated by Daiki Ueno on November, 30 2017 using texi2html 1.78a. + This document was generated by Daiki Ueno on February, 28 2018 using texi2html 1.78a.
    diff --git a/doc/libunistring_2.html b/doc/libunistring_2.html index e02999b..d9ff9dd 100644 --- a/doc/libunistring_2.html +++ b/doc/libunistring_2.html @@ -1,6 +1,6 @@ - + + -GNU libunistring: Index: V – W +GNU libunistring: Index - - + + @@ -42,8 +42,8 @@ ul.toc {list-style: none} - - + + @@ -51,124 +51,751 @@ ul.toc {list-style: none} - +
    [ << ][ >> ]
    [ << ][ >> ]         [Top] [Contents][Index][Index] [ ? ]


    - -

    Index: V – W

    -
    Jump to:   A + + +

    Index

    + +
    Jump to:   A   -B +B   -C +C   -D +D   -E +E   -F +F   -G +G   -H +H   -I +I   -J +J   -L +L   -M +M   -N +N   -O +O   -P +P   -R +R   -S +S   -T +T   -U +U   -V +V   -W +W  
    - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Index Entry Section

    V
    validity4.1 Elementary string checks
    value, of libunistring1. Introduction
    value, of Unicode character8.4 Decimal digit value
    value, of Unicode character8.5 Digit value
    value, of Unicode character8.6 Numeric value
    verification4.1 Elementary string checks

    W
    wchar_t, type1.6 The wchar_t mess
    well-formed4.1 Elementary string checks
    width9. Display width <uniwidth.h>
    word boundaries11. Word breaks in strings <uniwbrk.h>
    word breaks11. Word breaks in strings <uniwbrk.h>
    wrapping12. Line breaking <unilbrk.h>
    A
    ambiguous width9. Display width <uniwidth.h>
    Arabic shaping8.8 Arabic shaping
    argument conventions2. Conventions
    autoconf macro16.4 Autoconf macro

    B
    bidi class8.3 Bidi class
    bidirectional category8.3 Bidi class
    bidirectional reordering17. More advanced functionality
    block8.11 Blocks
    boundaries, between grapheme clusters10. Grapheme cluster breaks in strings <unigbrk.h>
    boundaries, between words11. Word breaks in strings <uniwbrk.h>
    breaks, grapheme cluster10. Grapheme cluster breaks in strings <unigbrk.h>
    breaks, line12. Line breaking <unilbrk.h>
    breaks, word11. Word breaks in strings <uniwbrk.h>
    bug reports16.5 Reporting problems
    bug tracker16.5 Reporting problems

    C
    C string functions1.5 ‘char *’ strings
    C, programming language8.12 ISO C and Java syntax
    C-like API8.13 Classifications like in ISO C
    canonical combining class8.2 Canonical combining class
    case detection14.5 Case detection
    case mappings14.2 Case mappings of strings
    casing_prefix_context_t14.3 Case mappings of substrings
    casing_suffix_context_t14.3 Case mappings of substrings
    char, type1.5 ‘char *’ strings
    combining, Unicode characters13.2 Composition of Unicode characters
    comparing4.3.4 Comparing Unicode strings
    comparing4.5.4 Comparing NUL terminated Unicode strings
    comparing, ignoring case14.4 Case insensitive comparison
    comparing, ignoring case, with collation rules14.4 Case insensitive comparison
    comparing, ignoring normalization13.4 Normalizing comparisons
    comparing, ignoring normalization and case14.4 Case insensitive comparison
    comparing, ignoring normalization and case, with collation rules14.4 Case insensitive comparison
    comparing, ignoring normalization, with collation rules13.4 Normalizing comparisons
    comparing, with collation rules4.5.4 Comparing NUL terminated Unicode strings
    comparing, with collation rules, ignoring case14.4 Case insensitive comparison
    comparing, with collation rules, ignoring normalization13.4 Normalizing comparisons
    comparing, with collation rules, ignoring normalization and case14.4 Case insensitive comparison
    compiler options16.2 Compiler options
    composing, Unicode characters13.2 Composition of Unicode characters
    converting4.2 Elementary string conversions
    converting5. Conversions between Unicode and encodings <uniconv.h>
    copying4.3.3 Copying Unicode strings
    copying4.5.3 Copying a NUL terminated Unicode string
    counting4.3.6 Counting the characters in a Unicode string

    D
    decomposing13.1 Decomposition of Unicode characters
    dependencies16.1 Installation
    detecting case14.5 Case detection
    duplicating4.4 Elementary string functions with memory allocation
    duplicating4.5.5 Duplicating a NUL terminated Unicode string

    E
    enum iconv_ilseq_handler5. Conversions between Unicode and encodings <uniconv.h>

    F
    FDL, GNU Free Documentation LicenseB.3 GNU Free Documentation License
    formatted output6. Output with Unicode strings <unistdio.h>
    fullwidth9. Display width <uniwidth.h>

    G
    general category8.1 General category
    gl_LIBUNISTRING16.4 Autoconf macro
    GPL, GNU General Public LicenseB.1 GNU GENERAL PUBLIC LICENSE
    grapheme cluster boundaries10. Grapheme cluster breaks in strings <unigbrk.h>
    grapheme cluster breaks10. Grapheme cluster breaks in strings <unigbrk.h>

    H
    halfwidth9. Display width <uniwidth.h>

    I
    identifiers8.12 ISO C and Java syntax
    installation16.1 Installation
    internationalization1.2 Unicode and Internationalization
    iterating4.3.1 Iterating over a Unicode string
    iterating4.5.1 Iterating over a NUL terminated Unicode string

    J
    Java, programming language8.12 ISO C and Java syntax
    joining group8.8.2 Joining group of Arabic characters
    joining of Arabic characters8.8 Arabic shaping
    joining type8.8.1 Joining type of Arabic characters

    L
    LGPL, GNU Lesser General Public LicenseB.2 GNU LESSER GENERAL PUBLIC LICENSE
    License, GNU FDLB.3 GNU Free Documentation License
    License, GNU GPLB.1 GNU GENERAL PUBLIC LICENSE
    License, GNU LGPLB.2 GNU LESSER GENERAL PUBLIC LICENSE
    LicensesB. Licenses
    line breaks12. Line breaking <unilbrk.h>
    locale1.3 Locale encodings
    locale categories1.3 Locale encodings
    locale encoding1.3 Locale encodings
    locale encoding5. Conversions between Unicode and encodings <uniconv.h>
    locale language14.2 Case mappings of strings
    locale, multibyte1.5 ‘char *’ strings
    locale_charset5. Conversions between Unicode and encodings <uniconv.h>
    lowercasing14.2 Case mappings of strings

    M
    mailing list16.5 Reporting problems
    mirroring, of Unicode character8.7 Mirrored character

    N
    normal forms13. Normalization forms (composition and decomposition) <uninorm.h>
    normalizing13. Normalization forms (composition and decomposition) <uninorm.h>

    O
    output, formatted6. Output with Unicode strings <unistdio.h>

    P
    properties, of Unicode character8.9 Properties

    R
    regular expression15. Regular expressions <uniregex.h>
    rendering17. More advanced functionality
    return value conventions2. Conventions

    S
    scripts8.10 Scripts
    searching, for a character4.3.5 Searching for a character in a Unicode string
    searching, for a character4.5.6 Searching for a character in a NUL terminated Unicode string
    searching, for a substring4.5.7 Searching for a substring in a NUL terminated Unicode string
    stream, normalizing a13.5 Normalization of streams of Unicode characters
    struct uninorm_filter13.5 Normalization of streams of Unicode characters

    T
    titlecasing14.2 Case mappings of strings

    U
    u16_asnprintf6. Output with Unicode strings <unistdio.h>
    u16_asprintf6. Output with Unicode strings <unistdio.h>
    u16_casecmp14.4 Case insensitive comparison
    u16_casecoll14.4 Case insensitive comparison
    u16_casefold14.4 Case insensitive comparison
    u16_casexfrm14.4 Case insensitive comparison
    u16_casing_prefix_context14.3 Case mappings of substrings
    u16_casing_prefixes_context14.3 Case mappings of substrings
    u16_casing_suffix_context14.3 Case mappings of substrings
    u16_casing_suffixes_context14.3 Case mappings of substrings
    u16_check4.1 Elementary string checks
    u16_chr4.3.5 Searching for a character in a Unicode string
    u16_cmp4.3.4 Comparing Unicode strings
    u16_cmp24.3.4 Comparing Unicode strings
    u16_conv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u16_conv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u16_cpy4.3.3 Copying Unicode strings
    u16_cpy_alloc4.4 Elementary string functions with memory allocation
    u16_ct_casefold14.4 Case insensitive comparison
    u16_ct_tolower14.3 Case mappings of substrings
    u16_ct_totitle14.3 Case mappings of substrings
    u16_ct_toupper14.3 Case mappings of substrings
    u16_endswith4.5.7 Searching for a substring in a NUL terminated Unicode string
    u16_grapheme_breaks10.1 Grapheme cluster breaks in a string
    u16_grapheme_next10.1 Grapheme cluster breaks in a string
    u16_grapheme_prev10.1 Grapheme cluster breaks in a string
    u16_is_cased14.5 Case detection
    u16_is_casefolded14.5 Case detection
    u16_is_lowercase14.5 Case detection
    u16_is_titlecase14.5 Case detection
    u16_is_uppercase14.5 Case detection
    u16_mblen4.3.1 Iterating over a Unicode string
    u16_mbsnlen4.3.6 Counting the characters in a Unicode string
    u16_mbtouc4.3.1 Iterating over a Unicode string
    u16_mbtouc_unsafe4.3.1 Iterating over a Unicode string
    u16_mbtoucr4.3.1 Iterating over a Unicode string
    u16_move4.3.3 Copying Unicode strings
    u16_next4.5.1 Iterating over a NUL terminated Unicode string
    u16_normalize13.3 Normalization of strings
    u16_normcmp13.4 Normalizing comparisons
    u16_normcoll13.4 Normalizing comparisons
    u16_normxfrm13.4 Normalizing comparisons
    u16_possible_linebreaks12. Line breaking <unilbrk.h>
    u16_prev4.5.1 Iterating over a NUL terminated Unicode string
    u16_set4.3.3 Copying Unicode strings
    u16_snprintf6. Output with Unicode strings <unistdio.h>
    u16_sprintf6. Output with Unicode strings <unistdio.h>
    u16_startswith4.5.7 Searching for a substring in a NUL terminated Unicode string
    u16_stpcpy4.5.3 Copying a NUL terminated Unicode string
    u16_stpncpy4.5.3 Copying a NUL terminated Unicode string
    u16_strcat4.5.3 Copying a NUL terminated Unicode string
    u16_strchr4.5.6 Searching for a character in a NUL terminated Unicode string
    u16_strcmp4.5.4 Comparing NUL terminated Unicode strings
    u16_strcoll4.5.4 Comparing NUL terminated Unicode strings
    u16_strconv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u16_strconv_from_locale5. Conversions between Unicode and encodings <uniconv.h>
    u16_strconv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u16_strconv_to_locale5. Conversions between Unicode and encodings <uniconv.h>
    u16_strcpy4.5.3 Copying a NUL terminated Unicode string
    u16_strcspn4.5.6 Searching for a character in a NUL terminated Unicode string
    u16_strdup4.5.5 Duplicating a NUL terminated Unicode string
    u16_strlen4.5.2 Length of a NUL terminated Unicode string
    u16_strmblen4.5.1 Iterating over a NUL terminated Unicode string
    u16_strmbtouc4.5.1 Iterating over a NUL terminated Unicode string
    u16_strncat4.5.3 Copying a NUL terminated Unicode string
    u16_strncmp4.5.4 Comparing NUL terminated Unicode strings
    u16_strncpy4.5.3 Copying a NUL terminated Unicode string
    u16_strnlen4.5.2 Length of a NUL terminated Unicode string
    u16_strpbrk4.5.6 Searching for a character in a NUL terminated Unicode string
    u16_strrchr4.5.6 Searching for a character in a NUL terminated Unicode string
    u16_strspn4.5.6 Searching for a character in a NUL terminated Unicode string
    u16_strstr4.5.7 Searching for a substring in a NUL terminated Unicode string
    u16_strtok4.5.8 Tokenizing a NUL terminated Unicode string
    u16_strwidth9. Display width <uniwidth.h>
    u16_to_u324.2 Elementary string conversions
    u16_to_u84.2 Elementary string conversions
    u16_tolower14.2 Case mappings of strings
    u16_totitle14.2 Case mappings of strings
    u16_toupper14.2 Case mappings of strings
    u16_u16_asnprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_asprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_snprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_sprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_vasnprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_vasprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_vsnprintf6. Output with Unicode strings <unistdio.h>
    u16_u16_vsprintf6. Output with Unicode strings <unistdio.h>
    u16_uctomb4.3.2 Creating Unicode strings one character at a time
    u16_vasnprintf6. Output with Unicode strings <unistdio.h>
    u16_vasprintf6. Output with Unicode strings <unistdio.h>
    u16_vsnprintf6. Output with Unicode strings <unistdio.h>
    u16_vsprintf6. Output with Unicode strings <unistdio.h>
    u16_width9. Display width <uniwidth.h>
    u16_width_linebreaks12. Line breaking <unilbrk.h>
    u16_wordbreaks11.1 Word breaks in a string
    u32_asnprintf6. Output with Unicode strings <unistdio.h>
    u32_asprintf6. Output with Unicode strings <unistdio.h>
    u32_casecmp14.4 Case insensitive comparison
    u32_casecoll14.4 Case insensitive comparison
    u32_casefold14.4 Case insensitive comparison
    u32_casexfrm14.4 Case insensitive comparison
    u32_casing_prefix_context14.3 Case mappings of substrings
    u32_casing_prefixes_context14.3 Case mappings of substrings
    u32_casing_suffix_context14.3 Case mappings of substrings
    u32_casing_suffixes_context14.3 Case mappings of substrings
    u32_check4.1 Elementary string checks
    u32_chr4.3.5 Searching for a character in a Unicode string
    u32_cmp4.3.4 Comparing Unicode strings
    u32_cmp24.3.4 Comparing Unicode strings
    u32_conv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u32_conv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u32_cpy4.3.3 Copying Unicode strings
    u32_cpy_alloc4.4 Elementary string functions with memory allocation
    u32_ct_casefold14.4 Case insensitive comparison
    u32_ct_tolower14.3 Case mappings of substrings
    u32_ct_totitle14.3 Case mappings of substrings
    u32_ct_toupper14.3 Case mappings of substrings
    u32_endswith4.5.7 Searching for a substring in a NUL terminated Unicode string
    u32_grapheme_breaks10.1 Grapheme cluster breaks in a string
    u32_grapheme_next10.1 Grapheme cluster breaks in a string
    u32_grapheme_prev10.1 Grapheme cluster breaks in a string
    u32_is_cased14.5 Case detection
    u32_is_casefolded14.5 Case detection
    u32_is_lowercase14.5 Case detection
    u32_is_titlecase14.5 Case detection
    u32_is_uppercase14.5 Case detection
    u32_mblen4.3.1 Iterating over a Unicode string
    u32_mbsnlen4.3.6 Counting the characters in a Unicode string
    u32_mbtouc4.3.1 Iterating over a Unicode string
    u32_mbtouc_unsafe4.3.1 Iterating over a Unicode string
    u32_mbtoucr4.3.1 Iterating over a Unicode string
    u32_move4.3.3 Copying Unicode strings
    u32_next4.5.1 Iterating over a NUL terminated Unicode string
    u32_normalize13.3 Normalization of strings
    u32_normcmp13.4 Normalizing comparisons
    u32_normcoll13.4 Normalizing comparisons
    u32_normxfrm13.4 Normalizing comparisons
    u32_possible_linebreaks12. Line breaking <unilbrk.h>
    u32_prev4.5.1 Iterating over a NUL terminated Unicode string
    u32_set4.3.3 Copying Unicode strings
    u32_snprintf6. Output with Unicode strings <unistdio.h>
    u32_sprintf6. Output with Unicode strings <unistdio.h>
    u32_startswith4.5.7 Searching for a substring in a NUL terminated Unicode string
    u32_stpcpy4.5.3 Copying a NUL terminated Unicode string
    u32_stpncpy4.5.3 Copying a NUL terminated Unicode string
    u32_strcat4.5.3 Copying a NUL terminated Unicode string
    u32_strchr4.5.6 Searching for a character in a NUL terminated Unicode string
    u32_strcmp4.5.4 Comparing NUL terminated Unicode strings
    u32_strcoll4.5.4 Comparing NUL terminated Unicode strings
    u32_strconv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u32_strconv_from_locale5. Conversions between Unicode and encodings <uniconv.h>
    u32_strconv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u32_strconv_to_locale5. Conversions between Unicode and encodings <uniconv.h>
    u32_strcpy4.5.3 Copying a NUL terminated Unicode string
    u32_strcspn4.5.6 Searching for a character in a NUL terminated Unicode string
    u32_strdup4.5.5 Duplicating a NUL terminated Unicode string
    u32_strlen4.5.2 Length of a NUL terminated Unicode string
    u32_strmblen4.5.1 Iterating over a NUL terminated Unicode string
    u32_strmbtouc4.5.1 Iterating over a NUL terminated Unicode string
    u32_strncat4.5.3 Copying a NUL terminated Unicode string
    u32_strncmp4.5.4 Comparing NUL terminated Unicode strings
    u32_strncpy4.5.3 Copying a NUL terminated Unicode string
    u32_strnlen4.5.2 Length of a NUL terminated Unicode string
    u32_strpbrk4.5.6 Searching for a character in a NUL terminated Unicode string
    u32_strrchr4.5.6 Searching for a character in a NUL terminated Unicode string
    u32_strspn4.5.6 Searching for a character in a NUL terminated Unicode string
    u32_strstr4.5.7 Searching for a substring in a NUL terminated Unicode string
    u32_strtok4.5.8 Tokenizing a NUL terminated Unicode string
    u32_strwidth9. Display width <uniwidth.h>
    u32_to_u164.2 Elementary string conversions
    u32_to_u84.2 Elementary string conversions
    u32_tolower14.2 Case mappings of strings
    u32_totitle14.2 Case mappings of strings
    u32_toupper14.2 Case mappings of strings
    u32_u32_asnprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_asprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_snprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_sprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_vasnprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_vasprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_vsnprintf6. Output with Unicode strings <unistdio.h>
    u32_u32_vsprintf6. Output with Unicode strings <unistdio.h>
    u32_uctomb4.3.2 Creating Unicode strings one character at a time
    u32_vasnprintf6. Output with Unicode strings <unistdio.h>
    u32_vasprintf6. Output with Unicode strings <unistdio.h>
    u32_vsnprintf6. Output with Unicode strings <unistdio.h>
    u32_vsprintf6. Output with Unicode strings <unistdio.h>
    u32_width9. Display width <uniwidth.h>
    u32_width_linebreaks12. Line breaking <unilbrk.h>
    u32_wordbreaks11.1 Word breaks in a string
    u8_asnprintf6. Output with Unicode strings <unistdio.h>
    u8_asprintf6. Output with Unicode strings <unistdio.h>
    u8_casecmp14.4 Case insensitive comparison
    u8_casecoll14.4 Case insensitive comparison
    u8_casefold14.4 Case insensitive comparison
    u8_casexfrm14.4 Case insensitive comparison
    u8_casing_prefix_context14.3 Case mappings of substrings
    u8_casing_prefixes_context14.3 Case mappings of substrings
    u8_casing_suffix_context14.3 Case mappings of substrings
    u8_casing_suffixes_context14.3 Case mappings of substrings
    u8_check4.1 Elementary string checks
    u8_chr4.3.5 Searching for a character in a Unicode string
    u8_cmp4.3.4 Comparing Unicode strings
    u8_cmp24.3.4 Comparing Unicode strings
    u8_conv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u8_conv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u8_cpy4.3.3 Copying Unicode strings
    u8_cpy_alloc4.4 Elementary string functions with memory allocation
    u8_ct_casefold14.4 Case insensitive comparison
    u8_ct_tolower14.3 Case mappings of substrings
    u8_ct_totitle14.3 Case mappings of substrings
    u8_ct_toupper14.3 Case mappings of substrings
    u8_endswith4.5.7 Searching for a substring in a NUL terminated Unicode string
    u8_grapheme_breaks10.1 Grapheme cluster breaks in a string
    u8_grapheme_next10.1 Grapheme cluster breaks in a string
    u8_grapheme_prev10.1 Grapheme cluster breaks in a string
    u8_is_cased14.5 Case detection
    u8_is_casefolded14.5 Case detection
    u8_is_lowercase14.5 Case detection
    u8_is_titlecase14.5 Case detection
    u8_is_uppercase14.5 Case detection
    u8_mblen4.3.1 Iterating over a Unicode string
    u8_mbsnlen4.3.6 Counting the characters in a Unicode string
    u8_mbtouc4.3.1 Iterating over a Unicode string
    u8_mbtouc_unsafe4.3.1 Iterating over a Unicode string
    u8_mbtoucr4.3.1 Iterating over a Unicode string
    u8_move4.3.3 Copying Unicode strings
    u8_next4.5.1 Iterating over a NUL terminated Unicode string
    u8_normalize13.3 Normalization of strings
    u8_normcmp13.4 Normalizing comparisons
    u8_normcoll13.4 Normalizing comparisons
    u8_normxfrm13.4 Normalizing comparisons
    u8_possible_linebreaks12. Line breaking <unilbrk.h>
    u8_prev4.5.1 Iterating over a NUL terminated Unicode string
    u8_set4.3.3 Copying Unicode strings
    u8_snprintf6. Output with Unicode strings <unistdio.h>
    u8_sprintf6. Output with Unicode strings <unistdio.h>
    u8_startswith4.5.7 Searching for a substring in a NUL terminated Unicode string
    u8_stpcpy4.5.3 Copying a NUL terminated Unicode string
    u8_stpncpy4.5.3 Copying a NUL terminated Unicode string
    u8_strcat4.5.3 Copying a NUL terminated Unicode string
    u8_strchr4.5.6 Searching for a character in a NUL terminated Unicode string
    u8_strcmp4.5.4 Comparing NUL terminated Unicode strings
    u8_strcoll4.5.4 Comparing NUL terminated Unicode strings
    u8_strconv_from_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u8_strconv_from_locale5. Conversions between Unicode and encodings <uniconv.h>
    u8_strconv_to_encoding5. Conversions between Unicode and encodings <uniconv.h>
    u8_strconv_to_locale5. Conversions between Unicode and encodings <uniconv.h>
    u8_strcpy4.5.3 Copying a NUL terminated Unicode string
    u8_strcspn4.5.6 Searching for a character in a NUL terminated Unicode string
    u8_strdup4.5.5 Duplicating a NUL terminated Unicode string
    u8_strlen4.5.2 Length of a NUL terminated Unicode string
    u8_strmblen4.5.1 Iterating over a NUL terminated Unicode string
    u8_strmbtouc4.5.1 Iterating over a NUL terminated Unicode string
    u8_strncat4.5.3 Copying a NUL terminated Unicode string
    u8_strncmp4.5.4 Comparing NUL terminated Unicode strings
    u8_strncpy4.5.3 Copying a NUL terminated Unicode string
    u8_strnlen4.5.2 Length of a NUL terminated Unicode string
    u8_strpbrk4.5.6 Searching for a character in a NUL terminated Unicode string
    u8_strrchr4.5.6 Searching for a character in a NUL terminated Unicode string
    u8_strspn4.5.6 Searching for a character in a NUL terminated Unicode string
    u8_strstr4.5.7 Searching for a substring in a NUL terminated Unicode string
    u8_strtok4.5.8 Tokenizing a NUL terminated Unicode string
    u8_strwidth9. Display width <uniwidth.h>
    u8_to_u164.2 Elementary string conversions
    u8_to_u324.2 Elementary string conversions
    u8_tolower14.2 Case mappings of strings
    u8_totitle14.2 Case mappings of strings
    u8_toupper14.2 Case mappings of strings
    u8_u8_asnprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_asprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_snprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_sprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_vasnprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_vasprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_vsnprintf6. Output with Unicode strings <unistdio.h>
    u8_u8_vsprintf6. Output with Unicode strings <unistdio.h>
    u8_uctomb4.3.2 Creating Unicode strings one character at a time
    u8_vasnprintf6. Output with Unicode strings <unistdio.h>
    u8_vasprintf6. Output with Unicode strings <unistdio.h>
    u8_vsnprintf6. Output with Unicode strings <unistdio.h>
    u8_vsprintf6. Output with Unicode strings <unistdio.h>
    u8_width9. Display width <uniwidth.h>
    u8_width_linebreaks12. Line breaking <unilbrk.h>
    u8_wordbreaks11.1 Word breaks in a string
    uc_all_blocks8.11 Blocks
    uc_all_scripts8.10 Scripts
    uc_bidi_category8.3 Bidi class
    uc_bidi_category_byname8.3 Bidi class
    uc_bidi_category_name8.3 Bidi class
    uc_bidi_class8.3 Bidi class
    uc_bidi_class_byname8.3 Bidi class
    uc_bidi_class_long_name8.3 Bidi class
    uc_bidi_class_name8.3 Bidi class
    uc_block8.11 Blocks
    uc_block_t8.11 Blocks
    uc_c_ident_category8.12 ISO C and Java syntax
    uc_canonical_decomposition13.1 Decomposition of Unicode characters
    uc_combining_class8.2 Canonical combining class
    uc_combining_class_byname8.2 Canonical combining class
    uc_combining_class_long_name8.2 Canonical combining class
    uc_combining_class_name8.2 Canonical combining class
    uc_composition13.2 Composition of Unicode characters
    uc_decimal_value8.4 Decimal digit value
    uc_decomposition13.1 Decomposition of Unicode characters
    uc_digit_value8.5 Digit value
    uc_fraction_t8.6 Numeric value
    uc_general_category8.1.1 The object oriented API for general category
    uc_general_category_and8.1.1 The object oriented API for general category
    uc_general_category_and_not8.1.1 The object oriented API for general category
    uc_general_category_byname8.1.1 The object oriented API for general category
    uc_general_category_long_name8.1.1 The object oriented API for general category
    uc_general_category_name8.1.1 The object oriented API for general category
    uc_general_category_or8.1.1 The object oriented API for general category
    uc_general_category_t8.1.1 The object oriented API for general category
    uc_grapheme_breaks10.1 Grapheme cluster breaks in a string
    uc_graphemeclusterbreak_property10.2 Grapheme cluster break property
    uc_is_alnum8.13 Classifications like in ISO C
    uc_is_alpha8.13 Classifications like in ISO C
    uc_is_bidi_category8.3 Bidi class
    uc_is_bidi_class8.3 Bidi class
    uc_is_blank8.13 Classifications like in ISO C
    uc_is_block8.11 Blocks
    uc_is_c_whitespace8.12 ISO C and Java syntax
    uc_is_cntrl8.13 Classifications like in ISO C
    uc_is_digit8.13 Classifications like in ISO C
    uc_is_general_category8.1.1 The object oriented API for general category
    uc_is_general_category_withtable8.1.2 The bit mask API for general category
    uc_is_graph8.13 Classifications like in ISO C
    uc_is_grapheme_break10.2 Grapheme cluster break property
    uc_is_java_whitespace8.12 ISO C and Java syntax
    uc_is_lower8.13 Classifications like in ISO C
    uc_is_print8.13 Classifications like in ISO C
    uc_is_property8.9.1 Properties as objects – the object oriented API
    uc_is_property_alphabetic8.9.2 Properties as functions – the functional API
    uc_is_property_ascii_hex_digit8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_arabic_digit8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_arabic_right_to_left8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_block_separator8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_boundary_neutral8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_common_separator8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_control8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_embedding_or_override8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_eur_num_separator8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_eur_num_terminator8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_european_digit8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_hebrew_right_to_left8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_left_to_right8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_non_spacing_mark8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_other_neutral8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_pdf8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_segment_separator8.9.2 Properties as functions – the functional API
    uc_is_property_bidi_whitespace8.9.2 Properties as functions – the functional API
    uc_is_property_case_ignorable8.9.2 Properties as functions – the functional API
    uc_is_property_cased8.9.2 Properties as functions – the functional API
    uc_is_property_changes_when_casefolded8.9.2 Properties as functions – the functional API
    uc_is_property_changes_when_casemapped8.9.2 Properties as functions – the functional API
    uc_is_property_changes_when_lowercased8.9.2 Properties as functions – the functional API
    uc_is_property_changes_when_titlecased8.9.2 Properties as functions – the functional API
    uc_is_property_changes_when_uppercased8.9.2 Properties as functions – the functional API
    uc_is_property_combining8.9.2 Properties as functions – the functional API
    uc_is_property_composite8.9.2 Properties as functions – the functional API
    uc_is_property_currency_symbol8.9.2 Properties as functions – the functional API
    uc_is_property_dash8.9.2 Properties as functions – the functional API
    uc_is_property_decimal_digit8.9.2 Properties as functions – the functional API
    uc_is_property_default_ignorable_code_point8.9.2 Properties as functions – the functional API
    uc_is_property_deprecated8.9.2 Properties as functions – the functional API
    uc_is_property_diacritic8.9.2 Properties as functions – the functional API
    uc_is_property_extender8.9.2 Properties as functions – the functional API
    uc_is_property_format_control8.9.2 Properties as functions – the functional API
    uc_is_property_grapheme_base8.9.2 Properties as functions – the functional API
    uc_is_property_grapheme_extend8.9.2 Properties as functions – the functional API
    uc_is_property_grapheme_link8.9.2 Properties as functions – the functional API
    uc_is_property_hex_digit8.9.2 Properties as functions – the functional API
    uc_is_property_hyphen8.9.2 Properties as functions – the functional API
    uc_is_property_id_continue8.9.2 Properties as functions – the functional API
    uc_is_property_id_start8.9.2 Properties as functions – the functional API
    uc_is_property_ideographic8.9.2 Properties as functions – the functional API
    uc_is_property_ids_binary_operator8.9.2 Properties as functions – the functional API
    uc_is_property_ids_trinary_operator8.9.2 Properties as functions – the functional API
    uc_is_property_ignorable_control8.9.2 Properties as functions – the functional API
    uc_is_property_iso_control8.9.2 Properties as functions – the functional API
    uc_is_property_join_control8.9.2 Properties as functions – the functional API
    uc_is_property_left_of_pair8.9.2 Properties as functions – the functional API
    uc_is_property_line_separator8.9.2 Properties as functions – the functional API
    uc_is_property_logical_order_exception8.9.2 Properties as functions – the functional API
    uc_is_property_lowercase8.9.2 Properties as functions – the functional API
    uc_is_property_math8.9.2 Properties as functions – the functional API
    uc_is_property_non_break8.9.2 Properties as functions – the functional API
    uc_is_property_not_a_character8.9.2 Properties as functions – the functional API
    uc_is_property_numeric8.9.2 Properties as functions – the functional API
    uc_is_property_other_alphabetic8.9.2 Properties as functions – the functional API
    uc_is_property_other_default_ignorable_code_point8.9.2 Properties as functions – the functional API
    uc_is_property_other_grapheme_extend8.9.2 Properties as functions – the functional API
    uc_is_property_other_id_continue8.9.2 Properties as functions – the functional API
    uc_is_property_other_id_start8.9.2 Properties as functions – the functional API
    uc_is_property_other_lowercase8.9.2 Properties as functions – the functional API
    uc_is_property_other_math8.9.2 Properties as functions – the functional API
    uc_is_property_other_uppercase8.9.2 Properties as functions – the functional API
    uc_is_property_paired_punctuation8.9.2 Properties as functions – the functional API
    uc_is_property_paragraph_separator8.9.2 Properties as functions – the functional API
    uc_is_property_pattern_syntax8.9.2 Properties as functions – the functional API
    uc_is_property_pattern_white_space8.9.2 Properties as functions – the functional API
    uc_is_property_private_use8.9.2 Properties as functions – the functional API
    uc_is_property_punctuation8.9.2 Properties as functions – the functional API
    uc_is_property_quotation_mark8.9.2 Properties as functions – the functional API
    uc_is_property_radical8.9.2 Properties as functions – the functional API
    uc_is_property_sentence_terminal8.9.2 Properties as functions – the functional API
    uc_is_property_soft_dotted8.9.2 Properties as functions – the functional API
    uc_is_property_space8.9.2 Properties as functions – the functional API
    uc_is_property_terminal_punctuation8.9.2 Properties as functions – the functional API
    uc_is_property_titlecase8.9.2 Properties as functions – the functional API
    uc_is_property_unassigned_code_value8.9.2 Properties as functions – the functional API
    uc_is_property_unified_ideograph8.9.2 Properties as functions – the functional API
    uc_is_property_uppercase8.9.2 Properties as functions – the functional API
    uc_is_property_variation_selector8.9.2 Properties as functions – the functional API
    uc_is_property_white_space8.9.2 Properties as functions – the functional API
    uc_is_property_xid_continue8.9.2 Properties as functions – the functional API
    uc_is_property_xid_start8.9.2 Properties as functions – the functional API
    uc_is_property_zero_width8.9.2 Properties as functions – the functional API
    uc_is_punct8.13 Classifications like in ISO C
    uc_is_script8.10 Scripts
    uc_is_space8.13 Classifications like in ISO C
    uc_is_upper8.13 Classifications like in ISO C
    uc_is_xdigit8.13 Classifications like in ISO C
    uc_java_ident_category8.12 ISO C and Java syntax
    uc_joining_group8.8.2 Joining group of Arabic characters
    uc_joining_group_byname8.8.2 Joining group of Arabic characters
    uc_joining_group_name8.8.2 Joining group of Arabic characters
    uc_joining_type8.8.1 Joining type of Arabic characters
    uc_joining_type_byname8.8.1 Joining type of Arabic characters
    uc_joining_type_long_name8.8.1 Joining type of Arabic characters
    uc_joining_type_name8.8.1 Joining type of Arabic characters
    uc_locale_language14.2 Case mappings of strings
    uc_mirror_char8.7 Mirrored character
    uc_numeric_value8.6 Numeric value
    uc_property_byname8.9.1 Properties as objects – the object oriented API
    uc_property_is_valid8.9.1 Properties as objects – the object oriented API
    uc_property_t8.9.1 Properties as objects – the object oriented API
    uc_script8.10 Scripts
    uc_script_byname8.10 Scripts
    uc_script_t8.10 Scripts
    uc_tolower14.1 Case mappings of characters
    uc_totitle14.1 Case mappings of characters
    uc_toupper14.1 Case mappings of characters
    uc_width9. Display width <uniwidth.h>
    uc_wordbreak_property11.2 Word break property
    UCS-41.1 Unicode
    ucs4_t3. Elementary types <unitypes.h>
    uint16_t3. Elementary types <unitypes.h>
    uint32_t3. Elementary types <unitypes.h>
    uint8_t3. Elementary types <unitypes.h>
    ulc_asnprintf6. Output with Unicode strings <unistdio.h>
    ulc_asprintf6. Output with Unicode strings <unistdio.h>
    ulc_casecmp14.4 Case insensitive comparison
    ulc_casecoll14.4 Case insensitive comparison
    ulc_casexfrm14.4 Case insensitive comparison
    ulc_fprintf6. Output with Unicode strings <unistdio.h>
    ulc_grapheme_breaks10.1 Grapheme cluster breaks in a string
    ulc_possible_linebreaks12. Line breaking <unilbrk.h>
    ulc_snprintf6. Output with Unicode strings <unistdio.h>
    ulc_sprintf6. Output with Unicode strings <unistdio.h>
    ulc_vasnprintf6. Output with Unicode strings <unistdio.h>
    ulc_vasprintf6. Output with Unicode strings <unistdio.h>
    ulc_vfprintf6. Output with Unicode strings <unistdio.h>
    ulc_vsnprintf6. Output with Unicode strings <unistdio.h>
    ulc_vsprintf6. Output with Unicode strings <unistdio.h>
    ulc_width_linebreaks12. Line breaking <unilbrk.h>
    ulc_wordbreaks11.1 Word breaks in a string
    Unicode1.1 Unicode
    Unicode character, bidi class8.3 Bidi class
    Unicode character, bidirectional category8.3 Bidi class
    Unicode character, block8.11 Blocks
    Unicode character, canonical combining class8.2 Canonical combining class
    Unicode character, case mappings14.1 Case mappings of characters
    Unicode character, classification8.1 General category
    Unicode character, classification like in C8.13 Classifications like in ISO C
    Unicode character, general category8.1 General category
    Unicode character, mirroring8.7 Mirrored character
    Unicode character, name7. Names of Unicode characters <uniname.h>
    Unicode character, properties8.9 Properties
    Unicode character, script8.10 Scripts
    Unicode character, validity in C identifiers8.12 ISO C and Java syntax
    Unicode character, validity in Java identifiers8.12 ISO C and Java syntax
    Unicode character, value8.4 Decimal digit value
    Unicode character, value8.5 Digit value
    Unicode character, value8.6 Numeric value
    Unicode character, width9. Display width <uniwidth.h>
    unicode_character_name7. Names of Unicode characters <uniname.h>
    unicode_name_character7. Names of Unicode characters <uniname.h>
    uninorm_decomposing_form13.3 Normalization of strings
    uninorm_filter_create13.5 Normalization of streams of Unicode characters
    uninorm_filter_flush13.5 Normalization of streams of Unicode characters
    uninorm_filter_free13.5 Normalization of streams of Unicode characters
    uninorm_filter_write13.5 Normalization of streams of Unicode characters
    uninorm_is_compat_decomposing13.3 Normalization of strings
    uninorm_is_composing13.3 Normalization of strings
    uninorm_t13.3 Normalization of strings
    uppercasing14.2 Case mappings of strings
    use cases1. Introduction
    UTF-161.1 Unicode
    UTF-16, strings1.6 Unicode strings
    UTF-321.1 Unicode
    UTF-32, strings1.6 Unicode strings
    UTF-81.1 Unicode
    UTF-8, strings1.6 Unicode strings

    -
    Jump to:   A +
    Jump to:   A   -B +B   -C +C   -D +D   -E +E   -F +F   -G +G   -H +H   -I +I   -J +J   -L +L   -M +M   -N +N   -O +O   -P +P   -R +R   -S +S   -T +T   -U +U   -V +V   -W +W  
    -
    - - + + @@ -176,12 +803,12 @@ ul.toc {list-style: none} - +
    [ << ][ >> ]
    [ << ][ >> ]         [Top] [Contents][Index][Index] [ ? ]

    - This document was generated by Daiki Ueno on November, 30 2017 using texi2html 1.78a. + This document was generated by Daiki Ueno on February, 28 2018 using texi2html 1.78a.
    diff --git a/doc/libunistring_21.html b/doc/libunistring_21.html new file mode 100644 index 0000000..3e4eb3a --- /dev/null +++ b/doc/libunistring_21.html @@ -0,0 +1,190 @@ + + + + + +GNU libunistring: Index: V – W + + + + + + + + + + + + + + + + + + + + + + + + + + +
    [ << ][ >> ]           [Top][Contents][Index][ ? ]
    + +


    + +

    Index: V – W

    +
    Jump to:   A +   +B +   +C +   +D +   +E +   +F +   +G +   +H +   +I +   +J +   +L +   +M +   +N +   +O +   +P +   +R +   +S +   +T +   +U +   +V +   +W +   +
    + + + + + + + + + + + + + + + + + + + +
    Index Entry Section

    V
    validity4.1 Elementary string checks
    value, of libunistring1. Introduction
    value, of Unicode character8.4 Decimal digit value
    value, of Unicode character8.5 Digit value
    value, of Unicode character8.6 Numeric value
    verification4.1 Elementary string checks

    W
    wchar_t, typeA. The wchar_t mess
    well-formed4.1 Elementary string checks
    width9. Display width <uniwidth.h>
    word boundaries11. Word breaks in strings <uniwbrk.h>
    word breaks11. Word breaks in strings <uniwbrk.h>
    wrapping12. Line breaking <unilbrk.h>

    +
    Jump to:   A +   +B +   +C +   +D +   +E +   +F +   +G +   +H +   +I +   +J +   +L +   +M +   +N +   +O +   +P +   +R +   +S +   +T +   +U +   +V +   +W +   +
    + +
    + + + + + + + + + + + + +
    [ << ][ >> ]           [Top][Contents][Index][ ? ]
    +

    + + This document was generated by Daiki Ueno on February, 28 2018 using texi2html 1.78a. + +
    + +

    + + diff --git a/doc/libunistring_3.html b/doc/libunistring_3.html index b67ac90..8ea8a26 100644 --- a/doc/libunistring_3.html +++ b/doc/libunistring_3.html @@ -1,6 +1,6 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +