+2007-02-11 Bruno Haible <bruno@clisp.org>
+
+ * lib/mbschr.c (mbschr): Fix bug.
+
+ * modules/mbschr-tests: New file.
+ * tests/test-mbschr.sh: New file.
+ * tests/test-mbschr.c: New file.
+ * m4/locale-zh.m4: New file.
+
2007-02-11 Bruno Haible <bruno@clisp.org>
Support for copying multibyte string iterators.
for (mbui_init (iter, string);; mbui_advance (iter))
{
+ if (!mbui_avail (iter))
+ goto notfound;
if (mb_len (mbui_cur (iter)) == 1
&& (unsigned char) * mbui_cur_ptr (iter) == (unsigned char) c)
break;
- if (!mbui_avail (iter))
- goto notfound;
}
return (char *) mbui_cur_ptr (iter);
notfound: