Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: gconv.h
/* Copyright (C) 1997-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
/* This header provides no interface for a user to the internals of
[17] Fix | Delete
the gconv implementation in the libc. Therefore there is no use
[18] Fix | Delete
for these definitions beside for writing additional gconv modules. */
[19] Fix | Delete
[20] Fix | Delete
#ifndef _GCONV_H
[21] Fix | Delete
#define _GCONV_H 1
[22] Fix | Delete
[23] Fix | Delete
#include <features.h>
[24] Fix | Delete
#include <bits/types/__mbstate_t.h>
[25] Fix | Delete
#include <bits/types/wint_t.h>
[26] Fix | Delete
[27] Fix | Delete
#define __need_size_t
[28] Fix | Delete
#define __need_wchar_t
[29] Fix | Delete
#include <stddef.h>
[30] Fix | Delete
[31] Fix | Delete
/* ISO 10646 value used to signal invalid value. */
[32] Fix | Delete
#define __UNKNOWN_10646_CHAR ((wchar_t) 0xfffd)
[33] Fix | Delete
[34] Fix | Delete
/* Error codes for gconv functions. */
[35] Fix | Delete
enum
[36] Fix | Delete
{
[37] Fix | Delete
__GCONV_OK = 0,
[38] Fix | Delete
__GCONV_NOCONV,
[39] Fix | Delete
__GCONV_NODB,
[40] Fix | Delete
__GCONV_NOMEM,
[41] Fix | Delete
[42] Fix | Delete
__GCONV_EMPTY_INPUT,
[43] Fix | Delete
__GCONV_FULL_OUTPUT,
[44] Fix | Delete
__GCONV_ILLEGAL_INPUT,
[45] Fix | Delete
__GCONV_INCOMPLETE_INPUT,
[46] Fix | Delete
[47] Fix | Delete
__GCONV_ILLEGAL_DESCRIPTOR,
[48] Fix | Delete
__GCONV_INTERNAL_ERROR
[49] Fix | Delete
};
[50] Fix | Delete
[51] Fix | Delete
[52] Fix | Delete
/* Flags the `__gconv_open' function can set. */
[53] Fix | Delete
enum
[54] Fix | Delete
{
[55] Fix | Delete
__GCONV_IS_LAST = 0x0001,
[56] Fix | Delete
__GCONV_IGNORE_ERRORS = 0x0002,
[57] Fix | Delete
__GCONV_SWAP = 0x0004,
[58] Fix | Delete
__GCONV_TRANSLIT = 0x0008
[59] Fix | Delete
};
[60] Fix | Delete
[61] Fix | Delete
[62] Fix | Delete
/* Forward declarations. */
[63] Fix | Delete
struct __gconv_step;
[64] Fix | Delete
struct __gconv_step_data;
[65] Fix | Delete
struct __gconv_loaded_object;
[66] Fix | Delete
[67] Fix | Delete
[68] Fix | Delete
/* Type of a conversion function. */
[69] Fix | Delete
typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *,
[70] Fix | Delete
const unsigned char **, const unsigned char *,
[71] Fix | Delete
unsigned char **, size_t *, int, int);
[72] Fix | Delete
[73] Fix | Delete
/* Type of a specialized conversion function for a single byte to INTERNAL. */
[74] Fix | Delete
typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char);
[75] Fix | Delete
[76] Fix | Delete
/* Constructor and destructor for local data for conversion step. */
[77] Fix | Delete
typedef int (*__gconv_init_fct) (struct __gconv_step *);
[78] Fix | Delete
typedef void (*__gconv_end_fct) (struct __gconv_step *);
[79] Fix | Delete
[80] Fix | Delete
[81] Fix | Delete
/* Description of a conversion step. */
[82] Fix | Delete
struct __gconv_step
[83] Fix | Delete
{
[84] Fix | Delete
struct __gconv_loaded_object *__shlib_handle;
[85] Fix | Delete
const char *__modname;
[86] Fix | Delete
[87] Fix | Delete
int __counter;
[88] Fix | Delete
[89] Fix | Delete
char *__from_name;
[90] Fix | Delete
char *__to_name;
[91] Fix | Delete
[92] Fix | Delete
__gconv_fct __fct;
[93] Fix | Delete
__gconv_btowc_fct __btowc_fct;
[94] Fix | Delete
__gconv_init_fct __init_fct;
[95] Fix | Delete
__gconv_end_fct __end_fct;
[96] Fix | Delete
[97] Fix | Delete
/* Information about the number of bytes needed or produced in this
[98] Fix | Delete
step. This helps optimizing the buffer sizes. */
[99] Fix | Delete
int __min_needed_from;
[100] Fix | Delete
int __max_needed_from;
[101] Fix | Delete
int __min_needed_to;
[102] Fix | Delete
int __max_needed_to;
[103] Fix | Delete
[104] Fix | Delete
/* Flag whether this is a stateful encoding or not. */
[105] Fix | Delete
int __stateful;
[106] Fix | Delete
[107] Fix | Delete
void *__data; /* Pointer to step-local data. */
[108] Fix | Delete
};
[109] Fix | Delete
[110] Fix | Delete
/* Additional data for steps in use of conversion descriptor. This is
[111] Fix | Delete
allocated by the `init' function. */
[112] Fix | Delete
struct __gconv_step_data
[113] Fix | Delete
{
[114] Fix | Delete
unsigned char *__outbuf; /* Output buffer for this step. */
[115] Fix | Delete
unsigned char *__outbufend; /* Address of first byte after the output
[116] Fix | Delete
buffer. */
[117] Fix | Delete
[118] Fix | Delete
/* Is this the last module in the chain. */
[119] Fix | Delete
int __flags;
[120] Fix | Delete
[121] Fix | Delete
/* Counter for number of invocations of the module function for this
[122] Fix | Delete
descriptor. */
[123] Fix | Delete
int __invocation_counter;
[124] Fix | Delete
[125] Fix | Delete
/* Flag whether this is an internal use of the module (in the mb*towc*
[126] Fix | Delete
and wc*tomb* functions) or regular with iconv(3). */
[127] Fix | Delete
int __internal_use;
[128] Fix | Delete
[129] Fix | Delete
__mbstate_t *__statep;
[130] Fix | Delete
__mbstate_t __state; /* This element must not be used directly by
[131] Fix | Delete
any module; always use STATEP! */
[132] Fix | Delete
};
[133] Fix | Delete
[134] Fix | Delete
[135] Fix | Delete
/* Combine conversion step description with data. */
[136] Fix | Delete
typedef struct __gconv_info
[137] Fix | Delete
{
[138] Fix | Delete
size_t __nsteps;
[139] Fix | Delete
struct __gconv_step *__steps;
[140] Fix | Delete
__extension__ struct __gconv_step_data __data[0];
[141] Fix | Delete
} *__gconv_t;
[142] Fix | Delete
[143] Fix | Delete
/* Transliteration using the locale's data. */
[144] Fix | Delete
extern int __gconv_transliterate (struct __gconv_step *step,
[145] Fix | Delete
struct __gconv_step_data *step_data,
[146] Fix | Delete
const unsigned char *inbufstart,
[147] Fix | Delete
const unsigned char **inbufp,
[148] Fix | Delete
const unsigned char *inbufend,
[149] Fix | Delete
unsigned char **outbufstart,
[150] Fix | Delete
size_t *irreversible);
[151] Fix | Delete
[152] Fix | Delete
#endif /* gconv.h */
[153] Fix | Delete
[154] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function