diff options
author | Bruno Haible <bruno@clisp.org> | 2010-11-13 17:59:59 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-11-13 17:59:59 +0100 |
commit | fef20b57aa48dfcfbaac38ae982acbe79b9fe492 (patch) | |
tree | 2a8031f7069a9e82a7e6210caafe3f9b9af4b35f | |
parent | 4ca53a3e0b9f903280577c0d440cd52f16e8a99b (diff) | |
download | libunistring-fef20b57aa48dfcfbaac38ae982acbe79b9fe492.tar.gz |
Improve documentation.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | doc/unistr.texi | 5 |
2 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,11 @@ +2010-11-13 Bruno Haible <bruno@clisp.org> + + Improve documentation. + * doc/unistr.texi (Elementary string checks): Add an index entry. + (Elementary string functions on NUL terminated strings): Enhance doc + about uN_prev. + Reported by Ben Pfaff <blp@cs.stanford.edu>. + 2010-10-04 Bruno Haible <bruno@clisp.org> Update after gnulib changed. diff --git a/doc/unistr.texi b/doc/unistr.texi index ad04f42..60f1daa 100644 --- a/doc/unistr.texi +++ b/doc/unistr.texi @@ -17,6 +17,7 @@ essentially the equivalent of what @code{<string.h>} is for C strings. @cindex validity @cindex verification +@cindex well-formed The following function is available to verify the integrity of a Unicode string. @deftypefun {const uint8_t *} u8_check (const uint8_t *@var{s}, size_t @var{n}) @@ -266,8 +267,10 @@ character in a Unicode string. @deftypefunx {const uint16_t *} u16_prev (ucs4_t *@var{puc}, const uint16_t *@var{s}, const uint16_t *@var{start}) @deftypefunx {const uint32_t *} u32_prev (ucs4_t *@var{puc}, const uint32_t *@var{s}, const uint32_t *@var{start}) Backward iteration step. Advances the pointer to point to the previous -character, or returns NULL if the beginning of the string had been reached. +character (the one that ends at @code{@var{s}}), or returns NULL if the +beginning of the string (specified by @code{@var{start}}) had been reached. Puts the character's @code{ucs4_t} representation in @code{*@var{puc}}. +Note that this function works only on well-formed Unicode strings. @end deftypefun The following functions determine the length of a Unicode string. |