| 1 | /* -*- c-basic-offset: 2 -*- */ |
| 2 | /* |
| 3 | Copyright(C) 2010-2016 Brazil |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License version 2.1 as published by the Free Software Foundation. |
| 8 | |
| 9 | This library is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | Lesser General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public |
| 15 | License along with this library; if not, write to the Free Software |
| 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ |
| 18 | |
| 19 | #include "grn.h" |
| 20 | #include "grn_nfkc.h" |
| 21 | #include <groonga/nfkc.h> |
| 22 | |
| 23 | #ifdef GRN_WITH_NFKC |
| 24 | |
| 25 | grn_char_type |
| 26 | grn_nfkc_char_type(const unsigned char *utf8) |
| 27 | { |
| 28 | return grn_nfkc50_char_type(utf8); |
| 29 | } |
| 30 | |
| 31 | const char * |
| 32 | grn_nfkc_decompose(const unsigned char *utf8) |
| 33 | { |
| 34 | return grn_nfkc50_decompose(utf8); |
| 35 | } |
| 36 | |
| 37 | const char * |
| 38 | grn_nfkc_compose(const unsigned char *prefix_utf8, |
| 39 | const unsigned char *suffix_utf8) |
| 40 | { |
| 41 | return grn_nfkc50_compose(prefix_utf8, suffix_utf8); |
| 42 | } |
| 43 | |
| 44 | #endif /* GRN_WITH_NFKC */ |
| 45 | |
| 46 | |