1 /* Locale dependent transformation for case insensitive comparison of UTF-8 2 strings. 3 Copyright (C) 2009-2021 Free Software Foundation, Inc. 4 Written by Bruno Haible <bruno@clisp.org>, 2009. 5 6 This file is free software. 7 It is dual-licensed under "the GNU LGPLv3+ or the GNU GPLv2+". 8 You can redistribute it and/or modify it under either 9 - the terms of the GNU Lesser General Public License as published 10 by the Free Software Foundation; either version 3, or (at your 11 option) any later version, or 12 - the terms of the GNU General Public License as published by the 13 Free Software Foundation; either version 2, or (at your option) 14 any later version, or 15 - the same dual license "the GNU LGPLv3+ or the GNU GPLv2+". 16 17 This file is distributed in the hope that it will be useful, 18 but WITHOUT ANY WARRANTY; without even the implied warranty of 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 Lesser General Public License and the GNU General Public License 21 for more details. 22 23 You should have received a copy of the GNU Lesser General Public 24 License and of the GNU General Public License along with this 25 program. If not, see <https://www.gnu.org/licenses/>. */ 26 27 #include <config.h> 28 29 /* Specification. */ 30 #include "unicase.h" 31 32 #include <errno.h> 33 #include <stdlib.h> 34 35 #include "localcharset.h" 36 #include "uniconv.h" 37 #include "amemxfrm.h" 38 39 #define FUNC u8_casexfrm 40 #define UNIT uint8_t 41 #define U_CASEFOLD u8_casefold 42 #define U_CONV_TO_ENCODING u8_conv_to_encoding 43 #include "u-casexfrm.h"