+2007-01-27 Bruno Haible <bruno@clisp.org>
+
+ Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
+ u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
+ * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
+ * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
+ * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
+ * modules/unistr/u16-mbtouc-unsafe: Renamed from
+ modules/unistr/u16-mbtouc.
+ * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
+ * lib/unistr.h: Update.
+ * lib/linebreak.c: Update.
+ * modules/linebreak: Update.
+
2007-01-27 Bruno Haible <bruno@clisp.org>
Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
#include "utf8-ucs4-unsafe.h"
-#include "utf16-ucs4.h"
+#include "utf16-ucs4-unsafe.h"
#ifdef unused
static inline int
unsigned int uc;
int w;
- s += u16_mbtouc (&uc, s, s_end - s);
+ s += u16_mbtouc_unsafe (&uc, s, s_end - s);
if (uc == 0)
break; /* end of string reached */
while (s < s_end)
{
unsigned int uc;
- int count = u16_mbtouc (&uc, s, s_end - s);
+ int count = u16_mbtouc_unsafe (&uc, s, s_end - s);
int prop = lbrkprop_lookup (uc);
if (prop == LBP_BK)
while (s < s_end)
{
unsigned int uc;
- int count = u16_mbtouc (&uc, s, s_end - s);
+ int count = u16_mbtouc_unsafe (&uc, s, s_end - s);
/* Respect the override. */
if (o != NULL && *o != UC_BREAK_UNDEFINED)
# endif
#endif
-#ifdef GNULIB_UNISTR_U16_MBTOUC
+#ifdef GNULIB_UNISTR_U16_MBTOUC_UNSAFE
# if !HAVE_INLINE
extern int
- u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n);
+ u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n);
# else
-# include "utf16-ucs4.h"
+# include "utf16-ucs4-unsafe.h"
# endif
#endif
c-ctype
iconv
utf8-ucs4-unsafe
-utf16-ucs4
+utf16-ucs4-unsafe
xsize
configure.ac: