1 /* Case mapping for UTF-8/UTF-16/UTF-32 strings (locale dependent).
2 Copyright (C) 2009-2010 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2009.
5 This program is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Lesser General Public License as published
7 by the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
25 u8_casemap (const uint8_t *s, size_t n,
26 casing_prefix_context_t prefix_context,
27 casing_suffix_context_t suffix_context,
28 const char *iso639_language,
29 ucs4_t (*single_character_map) (ucs4_t),
30 size_t offset_in_rule, /* offset in 'struct special_casing_rule' */
32 uint8_t *resultbuf, size_t *lengthp);
35 u16_casemap (const uint16_t *s, size_t n,
36 casing_prefix_context_t prefix_context,
37 casing_suffix_context_t suffix_context,
38 const char *iso639_language,
39 ucs4_t (*single_character_map) (ucs4_t),
40 size_t offset_in_rule, /* offset in 'struct special_casing_rule' */
42 uint16_t *resultbuf, size_t *lengthp);
45 u32_casemap (const uint32_t *s, size_t n,
46 casing_prefix_context_t prefix_context,
47 casing_suffix_context_t suffix_context,
48 const char *iso639_language,
49 ucs4_t (*single_character_map) (ucs4_t),
50 size_t offset_in_rule, /* offset in 'struct special_casing_rule' */
52 uint32_t *resultbuf, size_t *lengthp);