Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/include
File: locale.h
/* Copyright (C) 1991-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.11 Localization <locale.h>
[18] Fix | Delete
*/
[19] Fix | Delete
[20] Fix | Delete
#ifndef _LOCALE_H
[21] Fix | Delete
#define _LOCALE_H 1
[22] Fix | Delete
[23] Fix | Delete
#include <features.h>
[24] Fix | Delete
[25] Fix | Delete
#define __need_NULL
[26] Fix | Delete
#include <stddef.h>
[27] Fix | Delete
#include <bits/locale.h>
[28] Fix | Delete
[29] Fix | Delete
__BEGIN_DECLS
[30] Fix | Delete
[31] Fix | Delete
/* These are the possibilities for the first argument to setlocale.
[32] Fix | Delete
The code assumes that the lowest LC_* symbol has the value zero. */
[33] Fix | Delete
#define LC_CTYPE __LC_CTYPE
[34] Fix | Delete
#define LC_NUMERIC __LC_NUMERIC
[35] Fix | Delete
#define LC_TIME __LC_TIME
[36] Fix | Delete
#define LC_COLLATE __LC_COLLATE
[37] Fix | Delete
#define LC_MONETARY __LC_MONETARY
[38] Fix | Delete
#define LC_MESSAGES __LC_MESSAGES
[39] Fix | Delete
#define LC_ALL __LC_ALL
[40] Fix | Delete
#define LC_PAPER __LC_PAPER
[41] Fix | Delete
#define LC_NAME __LC_NAME
[42] Fix | Delete
#define LC_ADDRESS __LC_ADDRESS
[43] Fix | Delete
#define LC_TELEPHONE __LC_TELEPHONE
[44] Fix | Delete
#define LC_MEASUREMENT __LC_MEASUREMENT
[45] Fix | Delete
#define LC_IDENTIFICATION __LC_IDENTIFICATION
[46] Fix | Delete
[47] Fix | Delete
[48] Fix | Delete
/* Structure giving information about numeric and monetary notation. */
[49] Fix | Delete
struct lconv
[50] Fix | Delete
{
[51] Fix | Delete
/* Numeric (non-monetary) information. */
[52] Fix | Delete
[53] Fix | Delete
char *decimal_point; /* Decimal point character. */
[54] Fix | Delete
char *thousands_sep; /* Thousands separator. */
[55] Fix | Delete
/* Each element is the number of digits in each group;
[56] Fix | Delete
elements with higher indices are farther left.
[57] Fix | Delete
An element with value CHAR_MAX means that no further grouping is done.
[58] Fix | Delete
An element with value 0 means that the previous element is used
[59] Fix | Delete
for all groups farther left. */
[60] Fix | Delete
char *grouping;
[61] Fix | Delete
[62] Fix | Delete
/* Monetary information. */
[63] Fix | Delete
[64] Fix | Delete
/* First three chars are a currency symbol from ISO 4217.
[65] Fix | Delete
Fourth char is the separator. Fifth char is '\0'. */
[66] Fix | Delete
char *int_curr_symbol;
[67] Fix | Delete
char *currency_symbol; /* Local currency symbol. */
[68] Fix | Delete
char *mon_decimal_point; /* Decimal point character. */
[69] Fix | Delete
char *mon_thousands_sep; /* Thousands separator. */
[70] Fix | Delete
char *mon_grouping; /* Like `grouping' element (above). */
[71] Fix | Delete
char *positive_sign; /* Sign for positive values. */
[72] Fix | Delete
char *negative_sign; /* Sign for negative values. */
[73] Fix | Delete
char int_frac_digits; /* Int'l fractional digits. */
[74] Fix | Delete
char frac_digits; /* Local fractional digits. */
[75] Fix | Delete
/* 1 if currency_symbol precedes a positive value, 0 if succeeds. */
[76] Fix | Delete
char p_cs_precedes;
[77] Fix | Delete
/* 1 iff a space separates currency_symbol from a positive value. */
[78] Fix | Delete
char p_sep_by_space;
[79] Fix | Delete
/* 1 if currency_symbol precedes a negative value, 0 if succeeds. */
[80] Fix | Delete
char n_cs_precedes;
[81] Fix | Delete
/* 1 iff a space separates currency_symbol from a negative value. */
[82] Fix | Delete
char n_sep_by_space;
[83] Fix | Delete
/* Positive and negative sign positions:
[84] Fix | Delete
0 Parentheses surround the quantity and currency_symbol.
[85] Fix | Delete
1 The sign string precedes the quantity and currency_symbol.
[86] Fix | Delete
2 The sign string follows the quantity and currency_symbol.
[87] Fix | Delete
3 The sign string immediately precedes the currency_symbol.
[88] Fix | Delete
4 The sign string immediately follows the currency_symbol. */
[89] Fix | Delete
char p_sign_posn;
[90] Fix | Delete
char n_sign_posn;
[91] Fix | Delete
#ifdef __USE_ISOC99
[92] Fix | Delete
/* 1 if int_curr_symbol precedes a positive value, 0 if succeeds. */
[93] Fix | Delete
char int_p_cs_precedes;
[94] Fix | Delete
/* 1 iff a space separates int_curr_symbol from a positive value. */
[95] Fix | Delete
char int_p_sep_by_space;
[96] Fix | Delete
/* 1 if int_curr_symbol precedes a negative value, 0 if succeeds. */
[97] Fix | Delete
char int_n_cs_precedes;
[98] Fix | Delete
/* 1 iff a space separates int_curr_symbol from a negative value. */
[99] Fix | Delete
char int_n_sep_by_space;
[100] Fix | Delete
/* Positive and negative sign positions:
[101] Fix | Delete
0 Parentheses surround the quantity and int_curr_symbol.
[102] Fix | Delete
1 The sign string precedes the quantity and int_curr_symbol.
[103] Fix | Delete
2 The sign string follows the quantity and int_curr_symbol.
[104] Fix | Delete
3 The sign string immediately precedes the int_curr_symbol.
[105] Fix | Delete
4 The sign string immediately follows the int_curr_symbol. */
[106] Fix | Delete
char int_p_sign_posn;
[107] Fix | Delete
char int_n_sign_posn;
[108] Fix | Delete
#else
[109] Fix | Delete
char __int_p_cs_precedes;
[110] Fix | Delete
char __int_p_sep_by_space;
[111] Fix | Delete
char __int_n_cs_precedes;
[112] Fix | Delete
char __int_n_sep_by_space;
[113] Fix | Delete
char __int_p_sign_posn;
[114] Fix | Delete
char __int_n_sign_posn;
[115] Fix | Delete
#endif
[116] Fix | Delete
};
[117] Fix | Delete
[118] Fix | Delete
[119] Fix | Delete
/* Set and/or return the current locale. */
[120] Fix | Delete
extern char *setlocale (int __category, const char *__locale) __THROW;
[121] Fix | Delete
[122] Fix | Delete
/* Return the numeric/monetary information for the current locale. */
[123] Fix | Delete
extern struct lconv *localeconv (void) __THROW;
[124] Fix | Delete
[125] Fix | Delete
[126] Fix | Delete
#ifdef __USE_XOPEN2K8
[127] Fix | Delete
/* POSIX.1-2008 extends the locale interface with functions for
[128] Fix | Delete
explicit creation and manipulation of 'locale_t' objects
[129] Fix | Delete
representing locale contexts, and a set of parallel
[130] Fix | Delete
locale-sensitive text processing functions that take a locale_t
[131] Fix | Delete
argument. This enables applications to work with data from
[132] Fix | Delete
multiple locales simultaneously and thread-safely. */
[133] Fix | Delete
# include <bits/types/locale_t.h>
[134] Fix | Delete
[135] Fix | Delete
/* Return a reference to a data structure representing a set of locale
[136] Fix | Delete
datasets. Unlike for the CATEGORY parameter for `setlocale' the
[137] Fix | Delete
CATEGORY_MASK parameter here uses a single bit for each category,
[138] Fix | Delete
made by OR'ing together LC_*_MASK bits above. */
[139] Fix | Delete
extern locale_t newlocale (int __category_mask, const char *__locale,
[140] Fix | Delete
locale_t __base) __THROW;
[141] Fix | Delete
[142] Fix | Delete
/* These are the bits that can be set in the CATEGORY_MASK argument to
[143] Fix | Delete
`newlocale'. In the GNU implementation, LC_FOO_MASK has the value
[144] Fix | Delete
of (1 << LC_FOO), but this is not a part of the interface that
[145] Fix | Delete
callers can assume will be true. */
[146] Fix | Delete
# define LC_CTYPE_MASK (1 << __LC_CTYPE)
[147] Fix | Delete
# define LC_NUMERIC_MASK (1 << __LC_NUMERIC)
[148] Fix | Delete
# define LC_TIME_MASK (1 << __LC_TIME)
[149] Fix | Delete
# define LC_COLLATE_MASK (1 << __LC_COLLATE)
[150] Fix | Delete
# define LC_MONETARY_MASK (1 << __LC_MONETARY)
[151] Fix | Delete
# define LC_MESSAGES_MASK (1 << __LC_MESSAGES)
[152] Fix | Delete
# define LC_PAPER_MASK (1 << __LC_PAPER)
[153] Fix | Delete
# define LC_NAME_MASK (1 << __LC_NAME)
[154] Fix | Delete
# define LC_ADDRESS_MASK (1 << __LC_ADDRESS)
[155] Fix | Delete
# define LC_TELEPHONE_MASK (1 << __LC_TELEPHONE)
[156] Fix | Delete
# define LC_MEASUREMENT_MASK (1 << __LC_MEASUREMENT)
[157] Fix | Delete
# define LC_IDENTIFICATION_MASK (1 << __LC_IDENTIFICATION)
[158] Fix | Delete
# define LC_ALL_MASK (LC_CTYPE_MASK \
[159] Fix | Delete
| LC_NUMERIC_MASK \
[160] Fix | Delete
| LC_TIME_MASK \
[161] Fix | Delete
| LC_COLLATE_MASK \
[162] Fix | Delete
| LC_MONETARY_MASK \
[163] Fix | Delete
| LC_MESSAGES_MASK \
[164] Fix | Delete
| LC_PAPER_MASK \
[165] Fix | Delete
| LC_NAME_MASK \
[166] Fix | Delete
| LC_ADDRESS_MASK \
[167] Fix | Delete
| LC_TELEPHONE_MASK \
[168] Fix | Delete
| LC_MEASUREMENT_MASK \
[169] Fix | Delete
| LC_IDENTIFICATION_MASK \
[170] Fix | Delete
)
[171] Fix | Delete
[172] Fix | Delete
/* Return a duplicate of the set of locale in DATASET. All usage
[173] Fix | Delete
counters are increased if necessary. */
[174] Fix | Delete
extern locale_t duplocale (locale_t __dataset) __THROW;
[175] Fix | Delete
[176] Fix | Delete
/* Free the data associated with a locale dataset previously returned
[177] Fix | Delete
by a call to `setlocale_r'. */
[178] Fix | Delete
extern void freelocale (locale_t __dataset) __THROW;
[179] Fix | Delete
[180] Fix | Delete
/* Switch the current thread's locale to DATASET.
[181] Fix | Delete
If DATASET is null, instead just return the current setting.
[182] Fix | Delete
The special value LC_GLOBAL_LOCALE is the initial setting
[183] Fix | Delete
for all threads and can also be installed any time, meaning
[184] Fix | Delete
the thread uses the global settings controlled by `setlocale'. */
[185] Fix | Delete
extern locale_t uselocale (locale_t __dataset) __THROW;
[186] Fix | Delete
[187] Fix | Delete
/* This value can be passed to `uselocale' and may be returned by it.
[188] Fix | Delete
Passing this value to any other function has undefined behavior. */
[189] Fix | Delete
# define LC_GLOBAL_LOCALE ((locale_t) -1L)
[190] Fix | Delete
[191] Fix | Delete
#endif
[192] Fix | Delete
[193] Fix | Delete
__END_DECLS
[194] Fix | Delete
[195] Fix | Delete
#endif /* locale.h */
[196] Fix | Delete
[197] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function