Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: wchar.h
/* Copyright (C) 1995-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* ISO C99 Standard: 7.24
[18] Fix | Delete
* Extended multibyte and wide character utilities <wchar.h>
[19] Fix | Delete
*/
[20] Fix | Delete
[21] Fix | Delete
#ifndef _WCHAR_H
[22] Fix | Delete
#define _WCHAR_H 1
[23] Fix | Delete
[24] Fix | Delete
#define __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
[25] Fix | Delete
#include <bits/libc-header-start.h>
[26] Fix | Delete
[27] Fix | Delete
/* Gather machine dependent type support. */
[28] Fix | Delete
#include <bits/floatn.h>
[29] Fix | Delete
[30] Fix | Delete
#define __need_size_t
[31] Fix | Delete
#define __need_wchar_t
[32] Fix | Delete
#define __need_NULL
[33] Fix | Delete
#include <stddef.h>
[34] Fix | Delete
[35] Fix | Delete
#define __need___va_list
[36] Fix | Delete
#include <stdarg.h>
[37] Fix | Delete
[38] Fix | Delete
#include <bits/wchar.h>
[39] Fix | Delete
#include <bits/types/wint_t.h>
[40] Fix | Delete
#include <bits/types/mbstate_t.h>
[41] Fix | Delete
#include <bits/types/__FILE.h>
[42] Fix | Delete
[43] Fix | Delete
#if defined __USE_UNIX98 || defined __USE_XOPEN2K
[44] Fix | Delete
# include <bits/types/FILE.h>
[45] Fix | Delete
#endif
[46] Fix | Delete
#ifdef __USE_XOPEN2K8
[47] Fix | Delete
# include <bits/types/locale_t.h>
[48] Fix | Delete
#endif
[49] Fix | Delete
[50] Fix | Delete
/* Tell the caller that we provide correct C++ prototypes. */
[51] Fix | Delete
#if defined __cplusplus && __GNUC_PREREQ (4, 4)
[52] Fix | Delete
# define __CORRECT_ISO_CPP_WCHAR_H_PROTO
[53] Fix | Delete
#endif
[54] Fix | Delete
[55] Fix | Delete
#ifndef WCHAR_MIN
[56] Fix | Delete
/* These constants might also be defined in <inttypes.h>. */
[57] Fix | Delete
# define WCHAR_MIN __WCHAR_MIN
[58] Fix | Delete
# define WCHAR_MAX __WCHAR_MAX
[59] Fix | Delete
#endif
[60] Fix | Delete
[61] Fix | Delete
#ifndef WEOF
[62] Fix | Delete
# define WEOF (0xffffffffu)
[63] Fix | Delete
#endif
[64] Fix | Delete
[65] Fix | Delete
/* All versions of XPG prior to the publication of ISO C99 required
[66] Fix | Delete
the bulk of <wctype.h>'s declarations to appear in this header
[67] Fix | Delete
(because <wctype.h> did not exist prior to C99). In POSIX.1-2001
[68] Fix | Delete
those declarations were marked as XSI extensions; in -2008 they
[69] Fix | Delete
were additionally marked as obsolescent. _GNU_SOURCE mode
[70] Fix | Delete
anticipates the removal of these declarations in the next revision
[71] Fix | Delete
of POSIX. */
[72] Fix | Delete
#if (defined __USE_XOPEN && !defined __USE_GNU \
[73] Fix | Delete
&& !(defined __USE_XOPEN2K && !defined __USE_XOPEN2KXSI))
[74] Fix | Delete
# include <bits/wctype-wchar.h>
[75] Fix | Delete
#endif
[76] Fix | Delete
[77] Fix | Delete
__BEGIN_DECLS
[78] Fix | Delete
[79] Fix | Delete
/* This incomplete type is defined in <time.h> but needed here because
[80] Fix | Delete
of `wcsftime'. */
[81] Fix | Delete
struct tm;
[82] Fix | Delete
[83] Fix | Delete
[84] Fix | Delete
/* Copy SRC to DEST. */
[85] Fix | Delete
extern wchar_t *wcscpy (wchar_t *__restrict __dest,
[86] Fix | Delete
const wchar_t *__restrict __src)
[87] Fix | Delete
__THROW __nonnull ((1, 2));
[88] Fix | Delete
[89] Fix | Delete
/* Copy no more than N wide-characters of SRC to DEST. */
[90] Fix | Delete
extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
[91] Fix | Delete
const wchar_t *__restrict __src, size_t __n)
[92] Fix | Delete
__THROW __nonnull ((1, 2));
[93] Fix | Delete
[94] Fix | Delete
/* Append SRC onto DEST. */
[95] Fix | Delete
extern wchar_t *wcscat (wchar_t *__restrict __dest,
[96] Fix | Delete
const wchar_t *__restrict __src)
[97] Fix | Delete
__THROW __nonnull ((1, 2));
[98] Fix | Delete
/* Append no more than N wide-characters of SRC onto DEST. */
[99] Fix | Delete
extern wchar_t *wcsncat (wchar_t *__restrict __dest,
[100] Fix | Delete
const wchar_t *__restrict __src, size_t __n)
[101] Fix | Delete
__THROW __nonnull ((1, 2));
[102] Fix | Delete
[103] Fix | Delete
/* Compare S1 and S2. */
[104] Fix | Delete
extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2)
[105] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[106] Fix | Delete
/* Compare N wide-characters of S1 and S2. */
[107] Fix | Delete
extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
[108] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[109] Fix | Delete
[110] Fix | Delete
#ifdef __USE_XOPEN2K8
[111] Fix | Delete
/* Compare S1 and S2, ignoring case. */
[112] Fix | Delete
extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) __THROW;
[113] Fix | Delete
[114] Fix | Delete
/* Compare no more than N chars of S1 and S2, ignoring case. */
[115] Fix | Delete
extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2,
[116] Fix | Delete
size_t __n) __THROW;
[117] Fix | Delete
[118] Fix | Delete
/* Similar to the two functions above but take the information from
[119] Fix | Delete
the provided locale and not the global locale. */
[120] Fix | Delete
extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2,
[121] Fix | Delete
locale_t __loc) __THROW;
[122] Fix | Delete
[123] Fix | Delete
extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2,
[124] Fix | Delete
size_t __n, locale_t __loc) __THROW;
[125] Fix | Delete
#endif
[126] Fix | Delete
[127] Fix | Delete
/* Compare S1 and S2, both interpreted as appropriate to the
[128] Fix | Delete
LC_COLLATE category of the current locale. */
[129] Fix | Delete
extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) __THROW;
[130] Fix | Delete
/* Transform S2 into array pointed to by S1 such that if wcscmp is
[131] Fix | Delete
applied to two transformed strings the result is the as applying
[132] Fix | Delete
`wcscoll' to the original strings. */
[133] Fix | Delete
extern size_t wcsxfrm (wchar_t *__restrict __s1,
[134] Fix | Delete
const wchar_t *__restrict __s2, size_t __n) __THROW;
[135] Fix | Delete
[136] Fix | Delete
#ifdef __USE_XOPEN2K8
[137] Fix | Delete
/* Similar to the two functions above but take the information from
[138] Fix | Delete
the provided locale and not the global locale. */
[139] Fix | Delete
[140] Fix | Delete
/* Compare S1 and S2, both interpreted as appropriate to the
[141] Fix | Delete
LC_COLLATE category of the given locale. */
[142] Fix | Delete
extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2,
[143] Fix | Delete
locale_t __loc) __THROW;
[144] Fix | Delete
[145] Fix | Delete
/* Transform S2 into array pointed to by S1 such that if wcscmp is
[146] Fix | Delete
applied to two transformed strings the result is the as applying
[147] Fix | Delete
`wcscoll' to the original strings. */
[148] Fix | Delete
extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2,
[149] Fix | Delete
size_t __n, locale_t __loc) __THROW;
[150] Fix | Delete
[151] Fix | Delete
/* Duplicate S, returning an identical malloc'd string. */
[152] Fix | Delete
extern wchar_t *wcsdup (const wchar_t *__s) __THROW __attribute_malloc__;
[153] Fix | Delete
#endif
[154] Fix | Delete
[155] Fix | Delete
/* Find the first occurrence of WC in WCS. */
[156] Fix | Delete
#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
[157] Fix | Delete
extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc)
[158] Fix | Delete
__THROW __asm ("wcschr") __attribute_pure__;
[159] Fix | Delete
extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc)
[160] Fix | Delete
__THROW __asm ("wcschr") __attribute_pure__;
[161] Fix | Delete
#else
[162] Fix | Delete
extern wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc)
[163] Fix | Delete
__THROW __attribute_pure__;
[164] Fix | Delete
#endif
[165] Fix | Delete
/* Find the last occurrence of WC in WCS. */
[166] Fix | Delete
#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
[167] Fix | Delete
extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc)
[168] Fix | Delete
__THROW __asm ("wcsrchr") __attribute_pure__;
[169] Fix | Delete
extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc)
[170] Fix | Delete
__THROW __asm ("wcsrchr") __attribute_pure__;
[171] Fix | Delete
#else
[172] Fix | Delete
extern wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc)
[173] Fix | Delete
__THROW __attribute_pure__;
[174] Fix | Delete
#endif
[175] Fix | Delete
[176] Fix | Delete
#ifdef __USE_GNU
[177] Fix | Delete
/* This function is similar to `wcschr'. But it returns a pointer to
[178] Fix | Delete
the closing NUL wide character in case C is not found in S. */
[179] Fix | Delete
extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc)
[180] Fix | Delete
__THROW __attribute_pure__;
[181] Fix | Delete
#endif
[182] Fix | Delete
[183] Fix | Delete
/* Return the length of the initial segmet of WCS which
[184] Fix | Delete
consists entirely of wide characters not in REJECT. */
[185] Fix | Delete
extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject)
[186] Fix | Delete
__THROW __attribute_pure__;
[187] Fix | Delete
/* Return the length of the initial segmet of WCS which
[188] Fix | Delete
consists entirely of wide characters in ACCEPT. */
[189] Fix | Delete
extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept)
[190] Fix | Delete
__THROW __attribute_pure__;
[191] Fix | Delete
/* Find the first occurrence in WCS of any character in ACCEPT. */
[192] Fix | Delete
#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
[193] Fix | Delete
extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept)
[194] Fix | Delete
__THROW __asm ("wcspbrk") __attribute_pure__;
[195] Fix | Delete
extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs,
[196] Fix | Delete
const wchar_t *__accept)
[197] Fix | Delete
__THROW __asm ("wcspbrk") __attribute_pure__;
[198] Fix | Delete
#else
[199] Fix | Delete
extern wchar_t *wcspbrk (const wchar_t *__wcs, const wchar_t *__accept)
[200] Fix | Delete
__THROW __attribute_pure__;
[201] Fix | Delete
#endif
[202] Fix | Delete
/* Find the first occurrence of NEEDLE in HAYSTACK. */
[203] Fix | Delete
#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
[204] Fix | Delete
extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle)
[205] Fix | Delete
__THROW __asm ("wcsstr") __attribute_pure__;
[206] Fix | Delete
extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack,
[207] Fix | Delete
const wchar_t *__needle)
[208] Fix | Delete
__THROW __asm ("wcsstr") __attribute_pure__;
[209] Fix | Delete
#else
[210] Fix | Delete
extern wchar_t *wcsstr (const wchar_t *__haystack, const wchar_t *__needle)
[211] Fix | Delete
__THROW __attribute_pure__;
[212] Fix | Delete
#endif
[213] Fix | Delete
[214] Fix | Delete
/* Divide WCS into tokens separated by characters in DELIM. */
[215] Fix | Delete
extern wchar_t *wcstok (wchar_t *__restrict __s,
[216] Fix | Delete
const wchar_t *__restrict __delim,
[217] Fix | Delete
wchar_t **__restrict __ptr) __THROW;
[218] Fix | Delete
[219] Fix | Delete
/* Return the number of wide characters in S. */
[220] Fix | Delete
extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
[221] Fix | Delete
[222] Fix | Delete
#ifdef __USE_XOPEN
[223] Fix | Delete
/* Another name for `wcsstr' from XPG4. */
[224] Fix | Delete
# ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
[225] Fix | Delete
extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle)
[226] Fix | Delete
__THROW __asm ("wcswcs") __attribute_pure__;
[227] Fix | Delete
extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack,
[228] Fix | Delete
const wchar_t *__needle)
[229] Fix | Delete
__THROW __asm ("wcswcs") __attribute_pure__;
[230] Fix | Delete
# else
[231] Fix | Delete
extern wchar_t *wcswcs (const wchar_t *__haystack, const wchar_t *__needle)
[232] Fix | Delete
__THROW __attribute_pure__;
[233] Fix | Delete
# endif
[234] Fix | Delete
#endif
[235] Fix | Delete
[236] Fix | Delete
#ifdef __USE_XOPEN2K8
[237] Fix | Delete
/* Return the number of wide characters in S, but at most MAXLEN. */
[238] Fix | Delete
extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen)
[239] Fix | Delete
__THROW __attribute_pure__;
[240] Fix | Delete
#endif
[241] Fix | Delete
[242] Fix | Delete
[243] Fix | Delete
/* Search N wide characters of S for C. */
[244] Fix | Delete
#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
[245] Fix | Delete
extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n)
[246] Fix | Delete
__THROW __asm ("wmemchr") __attribute_pure__;
[247] Fix | Delete
extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c,
[248] Fix | Delete
size_t __n)
[249] Fix | Delete
__THROW __asm ("wmemchr") __attribute_pure__;
[250] Fix | Delete
#else
[251] Fix | Delete
extern wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, size_t __n)
[252] Fix | Delete
__THROW __attribute_pure__;
[253] Fix | Delete
#endif
[254] Fix | Delete
[255] Fix | Delete
/* Compare N wide characters of S1 and S2. */
[256] Fix | Delete
extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
[257] Fix | Delete
__THROW __attribute_pure__;
[258] Fix | Delete
[259] Fix | Delete
/* Copy N wide characters of SRC to DEST. */
[260] Fix | Delete
extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
[261] Fix | Delete
const wchar_t *__restrict __s2, size_t __n) __THROW;
[262] Fix | Delete
[263] Fix | Delete
/* Copy N wide characters of SRC to DEST, guaranteeing
[264] Fix | Delete
correct behavior for overlapping strings. */
[265] Fix | Delete
extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n)
[266] Fix | Delete
__THROW;
[267] Fix | Delete
[268] Fix | Delete
/* Set N wide characters of S to C. */
[269] Fix | Delete
extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW;
[270] Fix | Delete
[271] Fix | Delete
#ifdef __USE_GNU
[272] Fix | Delete
/* Copy N wide characters of SRC to DEST and return pointer to following
[273] Fix | Delete
wide character. */
[274] Fix | Delete
extern wchar_t *wmempcpy (wchar_t *__restrict __s1,
[275] Fix | Delete
const wchar_t *__restrict __s2, size_t __n)
[276] Fix | Delete
__THROW;
[277] Fix | Delete
#endif
[278] Fix | Delete
[279] Fix | Delete
[280] Fix | Delete
/* Determine whether C constitutes a valid (one-byte) multibyte
[281] Fix | Delete
character. */
[282] Fix | Delete
extern wint_t btowc (int __c) __THROW;
[283] Fix | Delete
[284] Fix | Delete
/* Determine whether C corresponds to a member of the extended
[285] Fix | Delete
character set whose multibyte representation is a single byte. */
[286] Fix | Delete
extern int wctob (wint_t __c) __THROW;
[287] Fix | Delete
[288] Fix | Delete
/* Determine whether PS points to an object representing the initial
[289] Fix | Delete
state. */
[290] Fix | Delete
extern int mbsinit (const mbstate_t *__ps) __THROW __attribute_pure__;
[291] Fix | Delete
[292] Fix | Delete
/* Write wide character representation of multibyte character pointed
[293] Fix | Delete
to by S to PWC. */
[294] Fix | Delete
extern size_t mbrtowc (wchar_t *__restrict __pwc,
[295] Fix | Delete
const char *__restrict __s, size_t __n,
[296] Fix | Delete
mbstate_t *__restrict __p) __THROW;
[297] Fix | Delete
[298] Fix | Delete
/* Write multibyte representation of wide character WC to S. */
[299] Fix | Delete
extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
[300] Fix | Delete
mbstate_t *__restrict __ps) __THROW;
[301] Fix | Delete
[302] Fix | Delete
/* Return number of bytes in multibyte character pointed to by S. */
[303] Fix | Delete
extern size_t __mbrlen (const char *__restrict __s, size_t __n,
[304] Fix | Delete
mbstate_t *__restrict __ps) __THROW;
[305] Fix | Delete
extern size_t mbrlen (const char *__restrict __s, size_t __n,
[306] Fix | Delete
mbstate_t *__restrict __ps) __THROW;
[307] Fix | Delete
[308] Fix | Delete
#ifdef __USE_EXTERN_INLINES
[309] Fix | Delete
/* Define inline function as optimization. */
[310] Fix | Delete
[311] Fix | Delete
/* We can use the BTOWC and WCTOB optimizations since we know that all
[312] Fix | Delete
locales must use ASCII encoding for the values in the ASCII range
[313] Fix | Delete
and because the wchar_t encoding is always ISO 10646. */
[314] Fix | Delete
extern wint_t __btowc_alias (int __c) __asm ("btowc");
[315] Fix | Delete
__extern_inline wint_t
[316] Fix | Delete
__NTH (btowc (int __c))
[317] Fix | Delete
{ return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f'
[318] Fix | Delete
? (wint_t) __c : __btowc_alias (__c)); }
[319] Fix | Delete
[320] Fix | Delete
extern int __wctob_alias (wint_t __c) __asm ("wctob");
[321] Fix | Delete
__extern_inline int
[322] Fix | Delete
__NTH (wctob (wint_t __wc))
[323] Fix | Delete
{ return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f'
[324] Fix | Delete
? (int) __wc : __wctob_alias (__wc)); }
[325] Fix | Delete
[326] Fix | Delete
__extern_inline size_t
[327] Fix | Delete
__NTH (mbrlen (const char *__restrict __s, size_t __n,
[328] Fix | Delete
mbstate_t *__restrict __ps))
[329] Fix | Delete
{ return (__ps != NULL
[330] Fix | Delete
? mbrtowc (NULL, __s, __n, __ps) : __mbrlen (__s, __n, NULL)); }
[331] Fix | Delete
#endif
[332] Fix | Delete
[333] Fix | Delete
/* Write wide character representation of multibyte character string
[334] Fix | Delete
SRC to DST. */
[335] Fix | Delete
extern size_t mbsrtowcs (wchar_t *__restrict __dst,
[336] Fix | Delete
const char **__restrict __src, size_t __len,
[337] Fix | Delete
mbstate_t *__restrict __ps) __THROW;
[338] Fix | Delete
[339] Fix | Delete
/* Write multibyte character representation of wide character string
[340] Fix | Delete
SRC to DST. */
[341] Fix | Delete
extern size_t wcsrtombs (char *__restrict __dst,
[342] Fix | Delete
const wchar_t **__restrict __src, size_t __len,
[343] Fix | Delete
mbstate_t *__restrict __ps) __THROW;
[344] Fix | Delete
[345] Fix | Delete
[346] Fix | Delete
#ifdef __USE_XOPEN2K8
[347] Fix | Delete
/* Write wide character representation of at most NMC bytes of the
[348] Fix | Delete
multibyte character string SRC to DST. */
[349] Fix | Delete
extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
[350] Fix | Delete
const char **__restrict __src, size_t __nmc,
[351] Fix | Delete
size_t __len, mbstate_t *__restrict __ps) __THROW;
[352] Fix | Delete
[353] Fix | Delete
/* Write multibyte character representation of at most NWC characters
[354] Fix | Delete
from the wide character string SRC to DST. */
[355] Fix | Delete
extern size_t wcsnrtombs (char *__restrict __dst,
[356] Fix | Delete
const wchar_t **__restrict __src,
[357] Fix | Delete
size_t __nwc, size_t __len,
[358] Fix | Delete
mbstate_t *__restrict __ps) __THROW;
[359] Fix | Delete
#endif /* use POSIX 2008 */
[360] Fix | Delete
[361] Fix | Delete
[362] Fix | Delete
/* The following functions are extensions found in X/Open CAE. */
[363] Fix | Delete
#ifdef __USE_XOPEN
[364] Fix | Delete
/* Determine number of column positions required for C. */
[365] Fix | Delete
extern int wcwidth (wchar_t __c) __THROW;
[366] Fix | Delete
[367] Fix | Delete
/* Determine number of column positions required for first N wide
[368] Fix | Delete
characters (or fewer if S ends before this) in S. */
[369] Fix | Delete
extern int wcswidth (const wchar_t *__s, size_t __n) __THROW;
[370] Fix | Delete
#endif /* Use X/Open. */
[371] Fix | Delete
[372] Fix | Delete
[373] Fix | Delete
/* Convert initial portion of the wide string NPTR to `double'
[374] Fix | Delete
representation. */
[375] Fix | Delete
extern double wcstod (const wchar_t *__restrict __nptr,
[376] Fix | Delete
wchar_t **__restrict __endptr) __THROW;
[377] Fix | Delete
[378] Fix | Delete
#ifdef __USE_ISOC99
[379] Fix | Delete
/* Likewise for `float' and `long double' sizes of floating-point numbers. */
[380] Fix | Delete
extern float wcstof (const wchar_t *__restrict __nptr,
[381] Fix | Delete
wchar_t **__restrict __endptr) __THROW;
[382] Fix | Delete
extern long double wcstold (const wchar_t *__restrict __nptr,
[383] Fix | Delete
wchar_t **__restrict __endptr) __THROW;
[384] Fix | Delete
#endif /* C99 */
[385] Fix | Delete
[386] Fix | Delete
/* Likewise for `_FloatN' and `_FloatNx' when support is enabled. */
[387] Fix | Delete
[388] Fix | Delete
#if __HAVE_FLOAT16 && defined __USE_GNU
[389] Fix | Delete
extern _Float16 wcstof16 (const wchar_t *__restrict __nptr,
[390] Fix | Delete
wchar_t **__restrict __endptr) __THROW;
[391] Fix | Delete
#endif
[392] Fix | Delete
[393] Fix | Delete
#if __HAVE_FLOAT32 && defined __USE_GNU
[394] Fix | Delete
extern _Float32 wcstof32 (const wchar_t *__restrict __nptr,
[395] Fix | Delete
wchar_t **__restrict __endptr) __THROW;
[396] Fix | Delete
#endif
[397] Fix | Delete
[398] Fix | Delete
#if __HAVE_FLOAT64 && defined __USE_GNU
[399] Fix | Delete
extern _Float64 wcstof64 (const wchar_t *__restrict __nptr,
[400] Fix | Delete
wchar_t **__restrict __endptr) __THROW;
[401] Fix | Delete
#endif
[402] Fix | Delete
[403] Fix | Delete
#if __HAVE_FLOAT128 && defined __USE_GNU
[404] Fix | Delete
extern _Float128 wcstof128 (const wchar_t *__restrict __nptr,
[405] Fix | Delete
wchar_t **__restrict __endptr) __THROW;
[406] Fix | Delete
#endif
[407] Fix | Delete
[408] Fix | Delete
#if __HAVE_FLOAT32X && defined __USE_GNU
[409] Fix | Delete
extern _Float32x wcstof32x (const wchar_t *__restrict __nptr,
[410] Fix | Delete
wchar_t **__restrict __endptr) __THROW;
[411] Fix | Delete
#endif
[412] Fix | Delete
[413] Fix | Delete
#if __HAVE_FLOAT64X && defined __USE_GNU
[414] Fix | Delete
extern _Float64x wcstof64x (const wchar_t *__restrict __nptr,
[415] Fix | Delete
wchar_t **__restrict __endptr) __THROW;
[416] Fix | Delete
#endif
[417] Fix | Delete
[418] Fix | Delete
#if __HAVE_FLOAT128X && defined __USE_GNU
[419] Fix | Delete
extern _Float128x wcstof128x (const wchar_t *__restrict __nptr,
[420] Fix | Delete
wchar_t **__restrict __endptr) __THROW;
[421] Fix | Delete
#endif
[422] Fix | Delete
[423] Fix | Delete
[424] Fix | Delete
/* Convert initial portion of wide string NPTR to `long int'
[425] Fix | Delete
representation. */
[426] Fix | Delete
extern long int wcstol (const wchar_t *__restrict __nptr,
[427] Fix | Delete
wchar_t **__restrict __endptr, int __base) __THROW;
[428] Fix | Delete
[429] Fix | Delete
/* Convert initial portion of wide string NPTR to `unsigned long int'
[430] Fix | Delete
representation. */
[431] Fix | Delete
extern unsigned long int wcstoul (const wchar_t *__restrict __nptr,
[432] Fix | Delete
wchar_t **__restrict __endptr, int __base)
[433] Fix | Delete
__THROW;
[434] Fix | Delete
[435] Fix | Delete
#ifdef __USE_ISOC99
[436] Fix | Delete
/* Convert initial portion of wide string NPTR to `long long int'
[437] Fix | Delete
representation. */
[438] Fix | Delete
__extension__
[439] Fix | Delete
extern long long int wcstoll (const wchar_t *__restrict __nptr,
[440] Fix | Delete
wchar_t **__restrict __endptr, int __base)
[441] Fix | Delete
__THROW;
[442] Fix | Delete
[443] Fix | Delete
/* Convert initial portion of wide string NPTR to `unsigned long long int'
[444] Fix | Delete
representation. */
[445] Fix | Delete
__extension__
[446] Fix | Delete
extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr,
[447] Fix | Delete
wchar_t **__restrict __endptr,
[448] Fix | Delete
int __base) __THROW;
[449] Fix | Delete
#endif /* ISO C99. */
[450] Fix | Delete
[451] Fix | Delete
#ifdef __USE_GNU
[452] Fix | Delete
/* Convert initial portion of wide string NPTR to `long long int'
[453] Fix | Delete
representation. */
[454] Fix | Delete
__extension__
[455] Fix | Delete
extern long long int wcstoq (const wchar_t *__restrict __nptr,
[456] Fix | Delete
wchar_t **__restrict __endptr, int __base)
[457] Fix | Delete
__THROW;
[458] Fix | Delete
[459] Fix | Delete
/* Convert initial portion of wide string NPTR to `unsigned long long int'
[460] Fix | Delete
representation. */
[461] Fix | Delete
__extension__
[462] Fix | Delete
extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr,
[463] Fix | Delete
wchar_t **__restrict __endptr,
[464] Fix | Delete
int __base) __THROW;
[465] Fix | Delete
#endif /* Use GNU. */
[466] Fix | Delete
[467] Fix | Delete
#ifdef __USE_GNU
[468] Fix | Delete
/* Parallel versions of the functions above which take the locale to
[469] Fix | Delete
use as an additional parameter. These are GNU extensions inspired
[470] Fix | Delete
by the POSIX.1-2008 extended locale API. */
[471] Fix | Delete
extern long int wcstol_l (const wchar_t *__restrict __nptr,
[472] Fix | Delete
wchar_t **__restrict __endptr, int __base,
[473] Fix | Delete
locale_t __loc) __THROW;
[474] Fix | Delete
[475] Fix | Delete
extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr,
[476] Fix | Delete
wchar_t **__restrict __endptr,
[477] Fix | Delete
int __base, locale_t __loc) __THROW;
[478] Fix | Delete
[479] Fix | Delete
__extension__
[480] Fix | Delete
extern long long int wcstoll_l (const wchar_t *__restrict __nptr,
[481] Fix | Delete
wchar_t **__restrict __endptr,
[482] Fix | Delete
int __base, locale_t __loc) __THROW;
[483] Fix | Delete
[484] Fix | Delete
__extension__
[485] Fix | Delete
extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr,
[486] Fix | Delete
wchar_t **__restrict __endptr,
[487] Fix | Delete
int __base, locale_t __loc)
[488] Fix | Delete
__THROW;
[489] Fix | Delete
[490] Fix | Delete
extern double wcstod_l (const wchar_t *__restrict __nptr,
[491] Fix | Delete
wchar_t **__restrict __endptr, locale_t __loc)
[492] Fix | Delete
__THROW;
[493] Fix | Delete
[494] Fix | Delete
extern float wcstof_l (const wchar_t *__restrict __nptr,
[495] Fix | Delete
wchar_t **__restrict __endptr, locale_t __loc)
[496] Fix | Delete
__THROW;
[497] Fix | Delete
[498] Fix | Delete
extern long double wcstold_l (const wchar_t *__restrict __nptr,
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function