diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-24 08:54:48 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-24 08:54:48 +0100 |
commit | 163a663518f33bab48b28431972e580b366b4d49 (patch) | |
tree | f518ffabaca4a0b93f0103d617e803792d3b0b43 /lib/unilbrk/u8-width-linebreaks.c | |
parent | 1b3a8d5ad2ea2f099d514d9dd51ebf926a628076 (diff) | |
parent | dd0000f7e25abe6c28d4329d324fd7fcab54094f (diff) |
Merge branch 'release/debian/1.2-1'HEADdebian/1.2-1master
Diffstat (limited to 'lib/unilbrk/u8-width-linebreaks.c')
-rw-r--r-- | lib/unilbrk/u8-width-linebreaks.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/unilbrk/u8-width-linebreaks.c b/lib/unilbrk/u8-width-linebreaks.c index 9e11ca87..f86ce4a9 100644 --- a/lib/unilbrk/u8-width-linebreaks.c +++ b/lib/unilbrk/u8-width-linebreaks.c @@ -1,5 +1,5 @@ /* Line breaking of UTF-8 strings. - Copyright (C) 2001-2003, 2006-2022 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2024 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2001. This file is free software. @@ -118,7 +118,10 @@ u8_width_linebreaks_internal (const uint8_t *s, size_t n, return last_column + piece_width; } -#undef u8_width_linebreaks +#if defined IN_LIBUNISTRING +/* For backward compatibility with older versions of libunistring. */ + +# undef u8_width_linebreaks int u8_width_linebreaks (const uint8_t *s, size_t n, @@ -131,6 +134,8 @@ u8_width_linebreaks (const uint8_t *s, size_t n, o, encoding, -1, p); } +#endif + int u8_width_linebreaks_v2 (const uint8_t *s, size_t n, int width, int start_column, int at_end_columns, |