1 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
2 /* -*- buffer-read-only: t -*- vi: set ro: */
3 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
4 /* Display width functions.
5 Copyright (C) 2001-2002, 2005, 2007, 2009-2010 Free Software Foundation,
8 This program is free software: you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published
10 by the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
29 /* Get locale_charset() declaration. */
30 #include "localcharset.h"
39 /* These functions are locale dependent. The encoding argument identifies
40 the encoding (e.g. "ISO-8859-2" for Polish). */
42 /* Determine number of column positions required for UC. */
44 uc_width (ucs4_t uc, const char *encoding);
46 /* Determine number of column positions required for first N units
47 (or fewer if S ends before this) in S. */
49 u8_width (const uint8_t *s, size_t n, const char *encoding);
51 u16_width (const uint16_t *s, size_t n, const char *encoding);
53 u32_width (const uint32_t *s, size_t n, const char *encoding);
55 /* Determine number of column positions required for S. */
57 u8_strwidth (const uint8_t *s, const char *encoding);
59 u16_strwidth (const uint16_t *s, const char *encoding);
61 u32_strwidth (const uint32_t *s, const char *encoding);
68 #endif /* _UNIWIDTH_H */