X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Funigbrk.in.h;h=906fc1dce1e9cb853804baf8bf7b1b0d08f06d63;hb=af6ca8ea7c8045a952402c1598ae25f6db35b57e;hp=5389670c9ad90116b1056cb1b7c67e16daadd0c4;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/lib/unigbrk.in.h b/lib/unigbrk.in.h index 5389670c9..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,20 +76,10 @@ 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 ben reached. */ + end of the string has been reached. */ extern const uint8_t * u8_grapheme_next (const uint8_t *s, const uint8_t *end); extern const uint16_t * @@ -98,7 +88,7 @@ extern const uint32_t * u32_grapheme_next (const uint32_t *s, const uint32_t *end); /* Returns the start of the previous grapheme cluster before S, or NULL if the - start of the string has ben reached. */ + start of the string has been reached. */ extern const uint8_t * u8_grapheme_prev (const uint8_t *s, const uint8_t *start); extern const uint16_t *