Blame wcsmbs/uchar.h

Packit 6c4009
/* Copyright (C) 2011-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
/*
Packit 6c4009
 *      ISO C11 Standard: 7.28
Packit 6c4009
 *	Unicode utilities	<uchar.h>
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
#ifndef _UCHAR_H
Packit 6c4009
#define _UCHAR_H	1
Packit 6c4009
Packit 6c4009
#include <features.h>
Packit 6c4009
Packit 6c4009
#define __need_size_t
Packit 6c4009
#include <stddef.h>
Packit 6c4009
Packit 6c4009
#include <bits/types.h>
Packit 6c4009
#include <bits/types/mbstate_t.h>
Packit 6c4009
Packit 6c4009
#ifndef __USE_ISOCXX11
Packit 6c4009
/* Define the 16-bit and 32-bit character types.  */
Packit 6c4009
typedef __uint_least16_t char16_t;
Packit 6c4009
typedef __uint_least32_t char32_t;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
Packit 6c4009
__BEGIN_DECLS
Packit 6c4009
Packit 6c4009
/* Write char16_t representation of multibyte character pointed
Packit 6c4009
   to by S to PC16.  */
Packit 6c4009
extern size_t mbrtoc16 (char16_t *__restrict __pc16,
Packit 6c4009
			const char *__restrict __s, size_t __n,
Packit 6c4009
			mbstate_t *__restrict __p) __THROW;
Packit 6c4009
Packit 6c4009
/* Write multibyte representation of char16_t C16 to S.  */
Packit 6c4009
extern size_t c16rtomb (char *__restrict __s, char16_t __c16,
Packit 6c4009
			mbstate_t *__restrict __ps) __THROW;
Packit 6c4009
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Write char32_t representation of multibyte character pointed
Packit 6c4009
   to by S to PC32.  */
Packit 6c4009
extern size_t mbrtoc32 (char32_t *__restrict __pc32,
Packit 6c4009
			const char *__restrict __s, size_t __n,
Packit 6c4009
			mbstate_t *__restrict __p) __THROW;
Packit 6c4009
Packit 6c4009
/* Write multibyte representation of char32_t C32 to S.  */
Packit 6c4009
extern size_t c32rtomb (char *__restrict __s, char32_t __c32,
Packit 6c4009
			mbstate_t *__restrict __ps) __THROW;
Packit 6c4009
Packit 6c4009
__END_DECLS
Packit 6c4009
Packit 6c4009
#endif	/* uchar.h */