X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Flinebreak.h;h=0c3c50bb352c0e630d405552fbac883ef8df4cfd;hb=2caf4791a548a8b4fb500256a6dfe05626f2e467;hp=a5d09dc8c3e6d1ad854a37501e2aa497fbde6a50;hpb=267a39bafd249d7eb9c37df06dc6defcf41cb343;p=gnulib.git diff --git a/lib/linebreak.h b/lib/linebreak.h index a5d09dc8c..0c3c50bb3 100644 --- a/lib/linebreak.h +++ b/lib/linebreak.h @@ -1,11 +1,11 @@ /* linebreak.h - line breaking of Unicode strings - Copyright (C) 2001-2003 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2001. -This program is free software; you can redistribute it and/or modify +This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -13,8 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +along with this program. If not, see . */ #ifndef _LINEBREAK_H #define _LINEBREAK_H @@ -23,22 +22,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include -/* Display width. */ - -/* These functions are locale dependent. The encoding argument identifies - the encoding (e.g. "ISO-8859-2" for Polish). */ - -/* Return the encoding of the current locale. */ -extern const char * locale_charset (void); - -/* Determine number of column positions required for UC. */ -extern int uc_width (unsigned int uc, const char *encoding); - -/* Determine number of column positions required for first N units - (or fewer if S ends before this) in S. */ -extern int u8_width (const unsigned char *s, size_t n, const char *encoding); -extern int u16_width (const unsigned short *s, size_t n, const char *encoding); -extern int u32_width (const unsigned int *s, size_t n, const char *encoding); +#ifdef __cplusplus +extern "C" { +#endif /* Line breaking. */ @@ -100,4 +86,9 @@ extern int char *p); +#ifdef __cplusplus +} +#endif + + #endif /* _LINEBREAK_H */