亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? library_7.html

?? linux_c函數(shù),linux下編程必備的
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
</DL>
<P>
Defining and installing named locales is normally a responsibility of
the system administrator at your site (or the person who installed the
GNU C library).  Some systems may allow users to create locales, but
we don't discuss that here.
<P>
If your program needs to use something other than the <SAMP>`C'</SAMP> locale,
it will be more portable if you use the whatever locale the user
specifies with the environment, rather than trying to specify some
non-standard locale explicitly by name.  Remember, different machines
might have different sets of locales installed.
<P>
<H2><A NAME="SEC82" HREF="library_toc.html#SEC82" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC82">Numeric Formatting</A></H2>
<P>
When you want to format a number or a currency amount using the
conventions of the current locale, you can use the function
<CODE>localeconv</CODE> to get the data on how to do it.  The function
<CODE>localeconv</CODE> is declared in the header file <TT>`locale.h'</TT>.
<A NAME="IDX373"></A>
<A NAME="IDX374"></A>
<A NAME="IDX372"></A>
<P>
<A NAME="IDX375"></A>
<U>Function:</U> struct lconv * <B>localeconv</B> <I>(void)</I><P>
The <CODE>localeconv</CODE> function returns a pointer to a structure whose
components contain information about how numeric and monetary values
should be formatted in the current locale.
<P>
You shouldn't modify the structure or its contents.  The structure might
be overwritten by subsequent calls to <CODE>localeconv</CODE>, or by calls to
<CODE>setlocale</CODE>, but no other function in the library overwrites this
value.
<P>
<A NAME="IDX376"></A>
<U>Data Type:</U> <B>struct lconv</B><P>
This is the data type of the value returned by <CODE>localeconv</CODE>.
<P>
If a member of the structure <CODE>struct lconv</CODE> has type <CODE>char</CODE>,
and the value is <CODE>CHAR_MAX</CODE>, it means that the current locale has
no value for that parameter.
<P>
<H3><A NAME="SEC83" HREF="library_toc.html#SEC83" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC83">Generic Numeric Formatting Parameters</A></H3>
<P>
These are the standard members of <CODE>struct lconv</CODE>; there may be
others.
<P>
<DL COMPACT>
<DT><CODE>char *decimal_point</CODE>
<DD><DT><CODE>char *mon_decimal_point</CODE>
<DD>These are the decimal-point separators used in formatting non-monetary
and monetary quantities, respectively.  In the <SAMP>`C'</SAMP> locale, the
value of <CODE>decimal_point</CODE> is <CODE>"."</CODE>, and the value of
<CODE>mon_decimal_point</CODE> is <CODE>""</CODE>.
<A NAME="IDX377"></A>
<P>
<DT><CODE>char *thousands_sep</CODE>
<DD><DT><CODE>char *mon_thousands_sep</CODE>
<DD>These are the separators used to delimit groups of digits to the left of
the decimal point in formatting non-monetary and monetary quantities,
respectively.  In the <SAMP>`C'</SAMP> locale, both members have a value of
<CODE>""</CODE> (the empty string).
<P>
<DT><CODE>char *grouping</CODE>
<DD><DT><CODE>char *mon_grouping</CODE>
<DD>These are strings that specify how to group the digits to the left of
the decimal point.  <CODE>grouping</CODE> applies to non-monetary quantities
and <CODE>mon_grouping</CODE> applies to monetary quantities.  Use either
<CODE>thousands_sep</CODE> or <CODE>mon_thousands_sep</CODE> to separate the digit
groups.
<A NAME="IDX378"></A>
<P>
Each string is made up of decimal numbers separated by semicolons.
Successive numbers (from left to right) give the sizes of successive
groups (from right to left, starting at the decimal point).  The last
number in the string is used over and over for all the remaining groups.
<P>
If the last integer is <CODE>-1</CODE>, it means that there is no more
grouping--or, put another way, any remaining digits form one large
group without separators.
<P>
For example, if <CODE>grouping</CODE> is <CODE>"4;3;2"</CODE>, the number
<CODE>123456787654321</CODE> should be grouped into <SAMP>`12'</SAMP>, <SAMP>`34'</SAMP>,
<SAMP>`56'</SAMP>, <SAMP>`78'</SAMP>, <SAMP>`765'</SAMP>, <SAMP>`4321'</SAMP>.  This uses a group of 4
digits at the end, preceded by a group of 3 digits, preceded by groups
of 2 digits (as many as needed).  With a separator of <SAMP>`,'</SAMP>, the
number would be printed as <SAMP>`12,34,56,78,765,4321'</SAMP>.
<P>
A value of <CODE>"3"</CODE> indicates repeated groups of three digits, as
normally used in the U.S.
<P>
In the standard <SAMP>`C'</SAMP> locale, both <CODE>grouping</CODE> and
<CODE>mon_grouping</CODE> have a value of <CODE>""</CODE>.  This value specifies no
grouping at all.
<P>
<DT><CODE>char int_frac_digits</CODE>
<DD><DT><CODE>char frac_digits</CODE>
<DD>These are small integers indicating how many fractional digits (to the
right of the decimal point) should be displayed in a monetary value in
international and local formats, respectively.  (Most often, both
members have the same value.)
<P>
In the standard <SAMP>`C'</SAMP> locale, both of these members have the value
<CODE>CHAR_MAX</CODE>, meaning "unspecified".  The ANSI standard doesn't say
what to do when you find this the value; we recommend printing no
fractional digits.  (This locale also specifies the empty string for
<CODE>mon_decimal_point</CODE>, so printing any fractional digits would be
confusing!)
</DL>
<P>
<A NAME="IDX379"></A>
<H3><A NAME="SEC84" HREF="library_toc.html#SEC84" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC84">Printing the Currency Symbol</A></H3>
<P>
These members of the <CODE>struct lconv</CODE> structure specify how to print
the symbol to identify a monetary value--the international analog of
<SAMP>`$'</SAMP> for US dollars.
<P>
Each country has two standard currency symbols.  The <DFN>local currency
symbol</DFN> is used commonly within the country, while the
<DFN>international currency symbol</DFN> is used internationally to refer to
that country's currency when it is necessary to indicate the country
unambiguously.
<P>
For example, many countries use the dollar as their monetary unit, and
when dealing with international currencies it's important to specify
that one is dealing with (say) Canadian dollars instead of U.S. dollars
or Australian dollars.  But when the context is known to be Canada,
there is no need to make this explicit--dollar amounts are implicitly
assumed to be in Canadian dollars.
<P>
<DL COMPACT>
<DT><CODE>char *currency_symbol</CODE>
<DD>The local currency symbol for the selected locale.
<P>
In the standard <SAMP>`C'</SAMP> locale, this member has a value of <CODE>""</CODE>
(the empty string), meaning "unspecified".  The ANSI standard doesn't
say what to do when you find this value; we recommend you simply print
the empty string as you would print any other string found in the
appropriate member.
<P>
<DT><CODE>char *int_curr_symbol</CODE>
<DD>The international currency symbol for the selected locale.
<P>
The value of <CODE>int_curr_symbol</CODE> should normally consist of a
three-letter abbreviation determined by the international standard
<CITE>ISO 4217 Codes for the Representation of Currency and Funds</CITE>,
followed by a one-character separator (often a space).
<P>
In the standard <SAMP>`C'</SAMP> locale, this member has a value of <CODE>""</CODE>
(the empty string), meaning "unspecified".  We recommend you simply
print the empty string as you would print any other string found in the
appropriate member.
<P>
<DT><CODE>char p_cs_precedes</CODE>
<DD><DT><CODE>char n_cs_precedes</CODE>
<DD>These members are <CODE>1</CODE> if the <CODE>currency_symbol</CODE> string should
precede the value of a monetary amount, or <CODE>0</CODE> if the string should
follow the value.  The <CODE>p_cs_precedes</CODE> member applies to positive
amounts (or zero), and the <CODE>n_cs_precedes</CODE> member applies to
negative amounts.
<P>
In the standard <SAMP>`C'</SAMP> locale, both of these members have a value of
<CODE>CHAR_MAX</CODE>, meaning "unspecified".  The ANSI standard doesn't say
what to do when you find this value, but we recommend printing the
currency symbol before the amount.  That's right for most countries.
In other words, treat all nonzero values alike in these members.
<P>
The POSIX standard says that these two members apply to the
<CODE>int_curr_symbol</CODE> as well as the <CODE>currency_symbol</CODE>.  The ANSI
C standard seems to imply that they should apply only to the
<CODE>currency_symbol</CODE>---so the <CODE>int_curr_symbol</CODE> should always
preceed the amount.
<P>
We can only guess which of these (if either) matches the usual
conventions for printing international currency symbols.  Our guess is
that they should always preceed the amount.  If we find out a reliable
answer, we will put it here.
<P>
<DT><CODE>char p_sep_by_space</CODE>
<DD><DT><CODE>char n_sep_by_space</CODE>
<DD>These members are <CODE>1</CODE> if a space should appear between the
<CODE>currency_symbol</CODE> string and the amount, or <CODE>0</CODE> if no space
should appear.  The <CODE>p_sep_by_space</CODE> member applies to positive
amounts (or zero), and the <CODE>n_sep_by_space</CODE> member applies to
negative amounts.
<P>
In the standard <SAMP>`C'</SAMP> locale, both of these members have a value of
<CODE>CHAR_MAX</CODE>, meaning "unspecified".  The ANSI standard doesn't say
what you should do when you find this value; we suggest you treat it as
one (print a space).  In other words, treat all nonzero values alike in
these members.
<P>
These members apply only to <CODE>currency_symbol</CODE>.  When you use
<CODE>int_curr_symbol</CODE>, you never print an additional space, because
<CODE>int_curr_symbol</CODE> itself contains the appropriate separator.
<P>
The POSIX standard says that these two members apply to the
<CODE>int_curr_symbol</CODE> as well as the <CODE>currency_symbol</CODE>.  But an
example in the ANSI C standard clearly implies that they should apply
only to the <CODE>currency_symbol</CODE>---that the <CODE>int_curr_symbol</CODE>
contains any appropriate separator, so you should never print an
additional space.
<P>
Based on what we know now, we recommend you ignore these members when
printing international currency symbols, and print no extra space.
</DL>
<P>
<H3><A NAME="SEC85" HREF="library_toc.html#SEC85" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC85">Printing the Sign of an Amount of Money</A></H3>
<P>
These members of the <CODE>struct lconv</CODE> structure specify how to print
the sign (if any) in a monetary value.
<P>
<DL COMPACT>
<DT><CODE>char *positive_sign</CODE>
<DD><DT><CODE>char *negative_sign</CODE>
<DD>These are strings used to indicate positive (or zero) and negative
(respectively) monetary quantities.
<P>
In the standard <SAMP>`C'</SAMP> locale, both of these members have a value of
<CODE>""</CODE> (the empty string), meaning "unspecified".
<P>
The ANSI standard doesn't say what to do when you find this value; we
recommend printing <CODE>positive_sign</CODE> as you find it, even if it is
empty.  For a negative value, print <CODE>negative_sign</CODE> as you find it
unless both it and <CODE>positive_sign</CODE> are empty, in which case print
<SAMP>`-'</SAMP> instead.  (Failing to indicate the sign at all seems rather
unreasonable.)
<P>
<DT><CODE>char p_sign_posn</CODE>
<DD><DT><CODE>char n_sign_posn</CODE>
<DD>These members have values that are small integers indicating how to
position the sign for nonnegative and negative monetary quantities,
respectively.  (The string used by the sign is what was specified with
<CODE>positive_sign</CODE> or <CODE>negative_sign</CODE>.)  The possible values are
as follows:
<P>
<DL COMPACT>
<DT><CODE>0</CODE>
<DD>The currency symbol and quantity should be surrounded by parentheses.
<P>
<DT><CODE>1</CODE>
<DD>Print the sign string before the quantity and currency symbol.
<P>
<DT><CODE>2</CODE>
<DD>Print the sign string after the quantity and currency symbol.
<P>
<DT><CODE>3</CODE>
<DD>Print the sign string right before the currency symbol.
<P>
<DT><CODE>4</CODE>
<DD>Print the sign string right after the currency symbol.
<P>
<DT><CODE>CHAR_MAX</CODE>
<DD>"Unspecified".  Both members have this value in the standard
<SAMP>`C'</SAMP> locale.
</DL>
<P>
The ANSI standard doesn't say what you should do when the value is
<CODE>CHAR_MAX</CODE>.  We recommend you print the sign after the currency
symbol.
</DL>
<P>
It is not clear whether you should let these members apply to the
international currency format or not.  POSIX says you should, but
intuition plus the examples in the ANSI C standard suggest you should
not.  We hope that someone who knows well the conventions for formatting
monetary quantities will tell us what we should recommend.
<P>
<P>Go to the <A HREF="library_6.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_6.html">previous</A>, <A HREF="library_8.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_8.html">next</A> section.<P>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久成人综合网| 欧美怡红院视频| 中文字幕第一区二区| 成人中文字幕电影| 亚洲欧洲日韩在线| 在线观看亚洲一区| 天天色天天爱天天射综合| 日韩一级在线观看| 国产精品12区| 日韩理论片中文av| 欧美日韩你懂得| 久久99久久99| 欧美经典一区二区三区| 97精品久久久久中文字幕 | 天天操天天综合网| 日韩视频免费直播| 国产成人在线视频播放| 亚洲人吸女人奶水| 欧美电影在线免费观看| 国模娜娜一区二区三区| 国产精品免费视频网站| 91成人免费网站| 男女视频一区二区| 国产亚洲人成网站| 91精品福利在线| 美女久久久精品| 中文字幕欧美日本乱码一线二线| 色哟哟欧美精品| 美国十次综合导航| 中文字幕一区二| 91精品国产综合久久久久久久| 国产一区二区免费视频| 亚洲精品免费电影| 日韩久久久精品| 99国产精品久久久久久久久久久 | 一区二区三区中文字幕| 日韩亚洲电影在线| av动漫一区二区| 日韩不卡一区二区三区| 国产精品视频观看| 5566中文字幕一区二区电影| 国产成人精品1024| 欧美在线视频不卡| 国产精品99久久久久久似苏梦涵 | 国产精品理伦片| 91精品国产综合久久国产大片 | 激情综合五月婷婷| 亚洲精品视频一区二区| 精品国产欧美一区二区| 91蝌蚪porny九色| 精品在线免费视频| 夜夜爽夜夜爽精品视频| 久久精品综合网| 欧美人妖巨大在线| www.亚洲在线| 精品一区免费av| 亚洲一区二区四区蜜桃| 国产午夜精品一区二区 | 欧美片网站yy| 大美女一区二区三区| 日韩专区一卡二卡| 国产精品成人午夜| 精品少妇一区二区三区免费观看| 色婷婷久久久久swag精品| 国产一区二区三区精品欧美日韩一区二区三区 | 午夜欧美2019年伦理| 国产精品美女久久福利网站| 日韩视频免费直播| 色婷婷综合激情| 成人性生交大合| 激情另类小说区图片区视频区| 一区二区免费在线| 国产精品国产馆在线真实露脸| 日韩精品中文字幕一区| 欧美色老头old∨ideo| a级高清视频欧美日韩| 国产一区二区三区蝌蚪| 蜜臀久久久99精品久久久久久| 一区二区三区精品视频| 国产精品久久久久久久久免费桃花 | 91高清视频免费看| 不卡的av中国片| 国产乱人伦偷精品视频不卡| 美腿丝袜亚洲综合| 日韩黄色在线观看| 亚洲一区二区3| 99精品视频免费在线观看| 国产乱子伦一区二区三区国色天香| 日本成人超碰在线观看| 亚洲观看高清完整版在线观看| 国产精品国产三级国产aⅴ原创| wwwwxxxxx欧美| 欧美一区二区二区| 欧美理论片在线| 欧美日韩国产综合久久| 色老头久久综合| 91免费视频网址| 99re6这里只有精品视频在线观看| 成人免费av资源| 国产不卡高清在线观看视频| 国产在线播放一区三区四| 麻豆极品一区二区三区| 日本在线不卡一区| 日本成人在线视频网站| 日韩黄色片在线观看| 午夜激情一区二区| 午夜电影网亚洲视频| 亚洲成人动漫在线免费观看| 亚洲在线观看免费视频| 一区二区三区在线视频免费| 亚洲精品v日韩精品| 亚洲精品视频一区二区| 一级女性全黄久久生活片免费| 一区二区三区 在线观看视频| 亚洲精品成人a在线观看| 亚洲综合色区另类av| 亚洲在线观看免费| 亚州成人在线电影| 日本不卡视频在线| 精品欧美一区二区三区精品久久 | 午夜免费久久看| 日本中文字幕一区二区视频| 美女网站在线免费欧美精品| 理论片日本一区| 国产一区二区三区免费播放 | 国产精品18久久久久久久久| 国产大片一区二区| jlzzjlzz亚洲女人18| 91蝌蚪porny| 欧美日韩一区二区在线视频| 制服丝袜亚洲色图| 精品久久久久香蕉网| 久久精品欧美一区二区三区不卡| 国产精品污网站| 亚洲精品美国一| 午夜视黄欧洲亚洲| 久久精品国产**网站演员| 国产一区二区在线免费观看| 成人丝袜18视频在线观看| 99国产精品一区| 欧美日韩dvd在线观看| 欧美成人r级一区二区三区| 国产视频在线观看一区二区三区 | 久久精品国产一区二区| 国产精品一区二区黑丝| 91免费国产在线| 在线观看av一区二区| 日韩视频一区二区三区在线播放 | 精品成人免费观看| 国产精品色噜噜| 亚洲与欧洲av电影| 捆绑紧缚一区二区三区视频| 国产成人av一区二区三区在线| 91麻豆自制传媒国产之光| 欧美日韩成人一区| 久久久久9999亚洲精品| 亚洲精品视频观看| 免费看欧美美女黄的网站| 久久精品视频在线看| 一区二区三区国产精华| 蜜臀av性久久久久蜜臀aⅴ四虎 | 日韩精品一区二区三区蜜臀| 国产亚洲午夜高清国产拍精品| 一区二区三区日韩欧美精品| 裸体在线国模精品偷拍| 成人av在线资源网站| 欧美日韩国产一级二级| 国产亚洲成av人在线观看导航 | 美腿丝袜一区二区三区| 99视频在线精品| 欧美一区2区视频在线观看| 亚洲国产成人一区二区三区| 亚洲国产成人av网| 国产精品白丝av| 欧美日韩高清在线播放| 久久九九99视频| 偷拍日韩校园综合在线| 国产成人午夜电影网| 欧美日韩在线播放| 亚洲国产精品传媒在线观看| 午夜天堂影视香蕉久久| 成人国产一区二区三区精品| 欧美精品 日韩| 国产精品初高中害羞小美女文| 免费高清不卡av| 欧美综合久久久| 欧美激情自拍偷拍| 欧美aaaaaa午夜精品| 92国产精品观看| 久久久综合视频| 欧美日韩国产成人在线91| 中文字幕免费一区| 另类小说综合欧美亚洲| 在线观看亚洲精品视频| 国产欧美日韩视频一区二区| 日韩av电影天堂| 在线免费观看日韩欧美| 国产精品热久久久久夜色精品三区| 日本va欧美va瓶| 欧美性猛交xxxx乱大交退制版|