X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Funigbrk.in.h;h=906fc1dce1e9cb853804baf8bf7b1b0d08f06d63;hb=8f9c414718161f157f9970b3c97b977d0343093e;hp=acce151c495dbfaf9354243f7dfec05637d4058e;hpb=3614b772f1dcf09de46de99fd55d41f355a20313;p=gnulib.git diff --git a/lib/unigbrk.in.h b/lib/unigbrk.in.h index acce151c4..906fc1dce 100644 --- a/lib/unigbrk.in.h +++ b/lib/unigbrk.in.h @@ -62,7 +62,7 @@ extern int /* Grapheme cluster breaks. */ -/* Returns true if there is an grapheme cluster boundary between Unicode code +/* Returns true if there is a grapheme cluster boundary between Unicode code points A and B. A "grapheme cluster" is an approximation to a user-perceived character, which sometimes corresponds to multiple code points. For example, an English letter followed by an acute accent can be @@ -76,17 +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); - -/* Returns the length (in units) of the first grapheme cluster in the N units - in S. If the return value is N, then extending the string could extend the - length of the grapheme cluster too. Returns 0 only if N is zero. */ -extern size_t - u8_grapheme_len (const uint8_t *s, size_t n); -extern size_t - u16_grapheme_len (const uint16_t *s, size_t n); -extern size_t - u32_grapheme_len (const uint32_t *s, size_t n); + 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. */