|
Packit |
aea12f |
/* Normalization of UTF-16 strings.
|
|
Packit Service |
991b93 |
Copyright (C) 2009-2020 Free Software Foundation, Inc.
|
|
Packit |
aea12f |
Written by Bruno Haible <bruno@clisp.org>, 2009.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
This program is free software: you can redistribute it and/or
|
|
Packit |
aea12f |
modify it under the terms of either:
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
* the GNU Lesser General Public License as published by the Free
|
|
Packit |
aea12f |
Software Foundation; either version 3 of the License, or (at your
|
|
Packit |
aea12f |
option) any later version.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
or
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
* the GNU General Public License as published by the Free
|
|
Packit |
aea12f |
Software Foundation; either version 2 of the License, or (at your
|
|
Packit |
aea12f |
option) any later version.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
or both in parallel, as here.
|
|
Packit |
aea12f |
This program is distributed in the hope that it will be useful,
|
|
Packit |
aea12f |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
aea12f |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
aea12f |
Lesser General Public License for more details.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
You should have received a copy of the GNU Lesser General Public License
|
|
Packit |
aea12f |
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#include <config.h>
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
/* Specification. */
|
|
Packit |
aea12f |
#include "uninorm.h"
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#include <errno.h>
|
|
Packit |
aea12f |
#include <stddef.h>
|
|
Packit |
aea12f |
#include <stdlib.h>
|
|
Packit |
aea12f |
#include <string.h>
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#include "unistr.h"
|
|
Packit |
aea12f |
#include "unictype.h"
|
|
Packit |
aea12f |
#include "normalize-internal.h"
|
|
Packit |
aea12f |
#include "uninorm/decompose-internal.h"
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
#define FUNC u16_normalize
|
|
Packit |
aea12f |
#define UNIT uint16_t
|
|
Packit |
aea12f |
#define U_MBTOUC_UNSAFE u16_mbtouc_unsafe
|
|
Packit |
aea12f |
#define U_UCTOMB u16_uctomb
|
|
Packit |
aea12f |
#define U_CPY u16_cpy
|
|
Packit |
aea12f |
#include "u-normalize-internal.h"
|