Rename utf16-ucs4 -> utf16-ucs4-unsafe, u16_mbtouc -> u16_mbtouc_unsafe.
authorBruno Haible <bruno@clisp.org>
Sun, 28 Jan 2007 02:04:41 +0000 (02:04 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Jan 2007 02:04:41 +0000 (02:04 +0000)
ChangeLog
lib/linebreak.c
lib/unistr.h
modules/linebreak

index 6872d5a80b82815cff62de7aff1cc67416945688..9c9910c34a4ac3b71cc311ec76c8f9692280d724 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+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,
index 0ad46681ef3038ca914e5fe06afeb42f83251723..b9194de9bbb473d7964f6ebd2e6ab270c00aea27 100644 (file)
@@ -28,7 +28,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 #include "utf8-ucs4-unsafe.h"
 
-#include "utf16-ucs4.h"
+#include "utf16-ucs4-unsafe.h"
 
 #ifdef unused
 static inline int
@@ -496,7 +496,7 @@ u16_width (const unsigned short *s, size_t n, const char *encoding)
       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 */
@@ -754,7 +754,7 @@ u16_possible_linebreaks (const unsigned short *s, size_t n, const char *encoding
   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)
@@ -1067,7 +1067,7 @@ u16_width_linebreaks (const unsigned short *s, size_t n,
   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)
index 72b928b1b3bc27b95ad055ecb8c8d16adffe6229..79759bc4b9eb66f495635ea5f0487f0de1775608 100644 (file)
@@ -141,12 +141,12 @@ extern int
 # 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
 
index 701447de8029753b53fed8ccf5e7906233cbb37a..1c434398c55a5e1a43445980003916ec26728634 100644 (file)
@@ -12,7 +12,7 @@ localcharset
 c-ctype
 iconv
 utf8-ucs4-unsafe
-utf16-ucs4
+utf16-ucs4-unsafe
 xsize
 
 configure.ac: