|
Packit Service |
4684c1 |
/* Categories of Unicode characters.
|
|
Packit Service |
4684c1 |
Copyright (C) 2002, 2006-2007, 2009-2020 Free Software Foundation, Inc.
|
|
Packit Service |
4684c1 |
Written by Bruno Haible <bruno@clisp.org>, 2002.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This program is free software: you can redistribute it and/or
|
|
Packit Service |
4684c1 |
modify it under the terms of either:
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
* the GNU Lesser General Public License as published by the Free
|
|
Packit Service |
4684c1 |
Software Foundation; either version 3 of the License, or (at your
|
|
Packit Service |
4684c1 |
option) any later version.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
or
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
* the GNU General Public License as published by the Free
|
|
Packit Service |
4684c1 |
Software Foundation; either version 2 of the License, or (at your
|
|
Packit Service |
4684c1 |
option) any later version.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
or both in parallel, as here.
|
|
Packit Service |
4684c1 |
This program is distributed in the hope that it will be useful,
|
|
Packit Service |
4684c1 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
4684c1 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
4684c1 |
Lesser General Public License for more details.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
You should have received a copy of the GNU Lesser General Public License
|
|
Packit Service |
4684c1 |
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#include <config.h>
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
/* Specification. */
|
|
Packit Service |
4684c1 |
#include "unictype.h"
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
static bool
|
|
Packit Service |
4684c1 |
uc_is_category_Cs (ucs4_t uc)
|
|
Packit Service |
4684c1 |
{
|
|
Packit Service |
4684c1 |
return (uc >= 0xd800 && uc < 0xe000);
|
|
Packit Service |
4684c1 |
}
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
const uc_general_category_t UC_CATEGORY_Cs =
|
|
Packit Service |
4684c1 |
{ UC_CATEGORY_MASK_Cs, 1, { &uc_is_category_Cs } };
|