/* Grapheme cluster breaks in Unicode strings.
- Copyright (C) 2010 Free Software Foundation, Inc.
+ Copyright (C) 2010-2011 Free Software Foundation, Inc.
Written by Ben Pfaff <blp@cs.stanford.edu>, 2010.
This program is free software: you can redistribute it and/or modify it
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);
-
/* 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 *
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 *