X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Funigbrk%2Fu8-grapheme-prev.c;h=d89e1818da10e77b6857a4553078f4b390803862;hb=6110d07dee40692d43f2ef8884230e0d53c56548;hp=39943fdc600a07e145ab1b5365e33cf13e5fd281;hpb=221d8efe25aa7f053d3a2d2dedb4f98886500784;p=gnulib.git diff --git a/lib/unigbrk/u8-grapheme-prev.c b/lib/unigbrk/u8-grapheme-prev.c index 39943fdc6..d89e1818d 100644 --- a/lib/unigbrk/u8-grapheme-prev.c +++ b/lib/unigbrk/u8-grapheme-prev.c @@ -1,5 +1,5 @@ /* Previous grapheme cluster function. - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2011 Free Software Foundation, Inc. Written by Ben Pfaff , 2010. This program is free software: you can redistribute it and/or modify it @@ -26,7 +26,6 @@ const uint8_t * u8_grapheme_prev (const uint8_t *s, const uint8_t *start) { ucs4_t next; - int mblen; if (s == start) return NULL; @@ -44,7 +43,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;