1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break().

This aids consistency, since the "cluster" term is not used elsewhere.

* lib/unigbrk.in.h: Update name.
* lib/unigbrk/u16-grapheme-breaks.c: Update name.
* lib/unigbrk/u16-grapheme-next.c: Update name.
* lib/unigbrk/u16-grapheme-prev.c: Update name.
* lib/unigbrk/u32-grapheme-breaks.c: Update name.
* lib/unigbrk/u32-grapheme-next.c: Update name.
* lib/unigbrk/u32-grapheme-prev.c: Update name.
* lib/unigbrk/u8-grapheme-breaks.c: Update name.
* lib/unigbrk/u8-grapheme-next.c: Update name.
* lib/unigbrk/u8-grapheme-prev.c: Update name.
* lib/unigbrk/uc-is-grapheme-break.c: Update name.
* tests/unigbrk/test-uc-is-grapheme-break.c: Update name.

Suggested by Bruno Haible.
This commit is contained in:
Ben Pfaff
2011-01-01 15:15:40 -08:00
parent 06f7622100
commit 217b2aa0c6
13 changed files with 30 additions and 12 deletions
+18
View File
@@ -1,3 +1,21 @@
2011-01-01 Ben Pfaff <blp@cs.stanford.edu>
Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
for consistency, since the "cluster" term is not used elsewhere.
* lib/unigbrk.in.h: Update name.
* lib/unigbrk/u16-grapheme-breaks.c: Update name.
* lib/unigbrk/u16-grapheme-next.c: Update name.
* lib/unigbrk/u16-grapheme-prev.c: Update name.
* lib/unigbrk/u32-grapheme-breaks.c: Update name.
* lib/unigbrk/u32-grapheme-next.c: Update name.
* lib/unigbrk/u32-grapheme-prev.c: Update name.
* lib/unigbrk/u8-grapheme-breaks.c: Update name.
* lib/unigbrk/u8-grapheme-next.c: Update name.
* lib/unigbrk/u8-grapheme-prev.c: Update name.
* lib/unigbrk/uc-is-grapheme-break.c: Update name.
* tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
Suggested by Bruno Haible.
2011-01-01 Ben Pfaff <blp@cs.stanford.edu>
Remove module 'u8-grapheme-len' as too redundant with
+1 -1
View File
@@ -76,7 +76,7 @@ extern int
Use A == 0 or B == 0 to indicate start of text or end of text,
respectively. */
extern bool
uc_is_grapheme_cluster_break (ucs4_t a, ucs4_t b);
uc_is_grapheme_break (ucs4_t a, ucs4_t b);
/* Returns the start of the next grapheme cluster following S, or NULL if the
end of the string has been reached. */
+1 -1
View File
@@ -36,7 +36,7 @@ u16_grapheme_breaks (const uint16_t *s, size_t n, char *p)
mblen = u16_mbtouc (&next, s, n);
p[0] = uc_is_grapheme_cluster_break (prev, next);
p[0] = uc_is_grapheme_break (prev, next);
if (mblen > 1)
p[1] = 0;
+1 -1
View File
@@ -36,7 +36,7 @@ u16_grapheme_next (const uint16_t *s, const uint16_t *end)
ucs4_t next;
mblen = u16_mbtouc (&next, s, end - s);
if (uc_is_grapheme_cluster_break (prev, next))
if (uc_is_grapheme_break (prev, next))
break;
prev = next;
+1 -1
View File
@@ -44,7 +44,7 @@ u16_grapheme_prev (const uint16_t *s, const uint16_t *start)
return start;
}
if (uc_is_grapheme_cluster_break (prev, next))
if (uc_is_grapheme_break (prev, next))
break;
s = prev_s;
+1 -1
View File
@@ -35,7 +35,7 @@ u32_grapheme_breaks (const uint32_t *s, size_t n, char *p)
u32_mbtouc (&next, &s[i], 1);
p[i] = uc_is_grapheme_cluster_break (prev, next);
p[i] = uc_is_grapheme_break (prev, next);
prev = next;
}
+1 -1
View File
@@ -36,7 +36,7 @@ u32_grapheme_next (const uint32_t *s, const uint32_t *end)
ucs4_t next;
u32_mbtouc (&next, s, end - s);
if (uc_is_grapheme_cluster_break (prev, next))
if (uc_is_grapheme_break (prev, next))
break;
prev = next;
+1 -1
View File
@@ -41,7 +41,7 @@ u32_grapheme_prev (const uint32_t *s, const uint32_t *start)
return start;
}
if (uc_is_grapheme_cluster_break (prev, next))
if (uc_is_grapheme_break (prev, next))
break;
next = prev;
+1 -1
View File
@@ -37,7 +37,7 @@ u8_grapheme_breaks (const uint8_t *s, size_t n, char *p)
mblen = u8_mbtouc (&next, s, n);
p[0] = uc_is_grapheme_cluster_break (prev, next);
p[0] = uc_is_grapheme_break (prev, next);
for (i = 1; i < mblen; i++)
p[i] = 0;
+1 -1
View File
@@ -36,7 +36,7 @@ u8_grapheme_next (const uint8_t *s, const uint8_t *end)
ucs4_t next;
mblen = u8_mbtouc (&next, s, end - s);
if (uc_is_grapheme_cluster_break (prev, next))
if (uc_is_grapheme_break (prev, next))
break;
prev = next;
+1 -1
View File
@@ -44,7 +44,7 @@ u8_grapheme_prev (const uint8_t *s, const uint8_t *start)
return start;
}
if (uc_is_grapheme_cluster_break (prev, next))
if (uc_is_grapheme_break (prev, next))
break;
s = prev_s;
+1 -1
View File
@@ -90,7 +90,7 @@ static const unsigned short int gb_table[12] =
};
bool
uc_is_grapheme_cluster_break (ucs4_t a, ucs4_t b)
uc_is_grapheme_break (ucs4_t a, ucs4_t b)
{
int a_gcp, b_gcp;
+1 -1
View File
@@ -134,7 +134,7 @@ main (int argc, char *argv[])
next = next_int;
}
if (uc_is_grapheme_cluster_break (prev, next) != should_break)
if (uc_is_grapheme_break (prev, next) != should_break)
{
int prev_gbp = uc_graphemeclusterbreak_property (prev);
int next_gbp = uc_graphemeclusterbreak_property (next);