1 #ifndef CTYPE_UNIDATA_H_INCLUDED
2 #define CTYPE_UNIDATA_H_INCLUDED
3 /*
4   Copyright (c) 2018 MariaDB Corporation
5 
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; version 2 of the License.
9 
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
13   GNU General Public License for more details.
14 
15   You should have received a copy of the GNU General Public License
16   along with this program; if not, write to the Free Software
17   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 #define MY_UNICASE_INFO_DEFAULT_MAXCHAR 0xFFFF
21 extern MY_UNICASE_CHARACTER my_unicase_default_page00[256];
22 extern MY_UNICASE_CHARACTER *my_unicase_default_pages[256];
23 
24 size_t my_strxfrm_pad_nweights_unicode(uchar *str, uchar *strend, size_t nweights);
25 size_t my_strxfrm_pad_unicode(uchar *str, uchar *strend);
26 
27 
28 #define PUT_WC_BE2_HAVE_1BYTE(dst, de, wc) \
29   do { *dst++= (uchar) (wc >> 8); if (dst < de) *dst++= (uchar) (wc & 0xFF); } while(0)
30 
31 #endif /* CTYPE_UNIDATA_H_INCLUDED */
32