|
rpm-build |
858c0f |
/* Normalization of Unicode strings.
|
|
rpm-build |
858c0f |
Copyright (C) 2009-2017 Free Software Foundation, Inc.
|
|
rpm-build |
858c0f |
Written by Bruno Haible <bruno@clisp.org>, 2009.
|
|
rpm-build |
858c0f |
|
|
rpm-build |
858c0f |
This program is free software: you can redistribute it and/or modify it
|
|
rpm-build |
858c0f |
under the terms of the GNU General Public License as published
|
|
rpm-build |
858c0f |
by the Free Software Foundation; either version 3 of the License, or
|
|
rpm-build |
858c0f |
(at your option) any later version.
|
|
rpm-build |
858c0f |
|
|
rpm-build |
858c0f |
This program is distributed in the hope that it will be useful,
|
|
rpm-build |
858c0f |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
rpm-build |
858c0f |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
rpm-build |
858c0f |
General Public License for more details.
|
|
rpm-build |
858c0f |
|
|
rpm-build |
858c0f |
You should have received a copy of the GNU General Public License
|
|
rpm-build |
858c0f |
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
|
rpm-build |
858c0f |
|
|
rpm-build |
858c0f |
#include "unitypes.h"
|
|
rpm-build |
858c0f |
|
|
rpm-build |
858c0f |
/* Complete definition of normalization form descriptor. */
|
|
rpm-build |
858c0f |
struct unicode_normalization_form
|
|
rpm-build |
858c0f |
{
|
|
rpm-build |
858c0f |
/* Bit mask containing meta-information.
|
|
rpm-build |
858c0f |
This must be the first field. */
|
|
rpm-build |
858c0f |
unsigned int description;
|
|
rpm-build |
858c0f |
#define NF_IS_COMPAT_DECOMPOSING (1 << 0)
|
|
rpm-build |
858c0f |
#define NF_IS_COMPOSING (1 << 1)
|
|
rpm-build |
858c0f |
/* Function that decomposes a Unicode character. */
|
|
rpm-build |
858c0f |
int (*decomposer) (ucs4_t uc, ucs4_t *decomposition);
|
|
rpm-build |
858c0f |
/* Function that combines two Unicode characters, a starter and another
|
|
rpm-build |
858c0f |
character. */
|
|
rpm-build |
858c0f |
ucs4_t (*composer) (ucs4_t uc1, ucs4_t uc2);
|
|
rpm-build |
858c0f |
/* Decomposing variant. */
|
|
rpm-build |
858c0f |
const struct unicode_normalization_form *decomposing_variant;
|
|
rpm-build |
858c0f |
};
|