⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 locale.html

📁 ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片机顶盒软件的开发平台,2.0.5版本,国内找不到的.在国外论坛上花了N天才找到!
💻 HTML
📖 第 1 页 / 共 2 页
字号:
is separated by a space (defined by <CODE>int_curr_symbol[3]</CODE>)or by no space from the valuefor negative monetary values:</P><UL><LI>A value of 0 indicates that no space separates symbol and value.<LI>A value of 1 indicates that a space separates symbol and value.(<CODE>0</CODE>)</UL><P><B><A NAME="int_n_sign_posn"><CODE>int_n_sign_posn</CODE></A></B>-- the format for negative international monetary values:</P><UL><LI>A value of 0 indicates that parentheses surround the value and thecurrency symbol.<LI>A value of 1 indicates that the negative sign precedes the value and thecurrency symbol.<LI>A value of 2 indicates that the negative sign follows the value and thecurrency_symbol.<LI>A value of 3 indicates that the negative sign immediately precedes thecurrency symbol.<LI>A value of 4 indicates that the negative sign immediately follows thecurrency_symbol. (<CODE>4</CODE>)</UL><P><B><A NAME="int_p_cs_precedes"><CODE>int_p_cs_precedes</CODE></A></B>-- whether the international currency symbol precedesor follows the value for positive monetary values:</P><UL><LI>A value of 0 indicates that the symbol follows the value.<LI>A value of 1 indicates that the symbol precedes the value.(<CODE>1</CODE>)</UL><P><B><A NAME="int_p_sep_by_space"><CODE>int_p_sep_by_space</CODE></A></B>-- whether the international currency symbol is separatedby a space (defined by <CODE>int_curr_symbol[3]</CODE>)or by no space from the value for positive monetary values:</P><UL><LI>A value of 0 indicates that no space separates symbol and value.<LI>A value of 1 indicates that a space separates symbol and value.(<CODE>0</CODE>)</UL><P><B><A NAME="int_p_sign_posn"><CODE>int_p_sign_posn</CODE></A></B>-- the format for positive international monetary values:</P><UL><LI>A value of 0 indicates that parentheses surround the value andthe currency symbol.<LI>A value of 1 indicates that the negative sign precedes the valueand the currency symbol.<LI>A value of 2 indicates that the negative sign follows the valueand the currency symbol.<LI>A value of 3 indicates that the negative sign immediately precedesthe currency symbol.<LI>A value of 4 indicates that the negative sign immediately followsthe currency symbol. (<CODE>4</CODE>)</UL><P><B><A NAME="n_cs_precedes"><CODE>n_cs_precedes</CODE></A></B>-- whether the currency symbolprecedes or follows the value for negative monetary values:</P><UL><LI>A value of 0 indicates that the symbol follows the value.<LI>A value of 1 indicates that the symbol precedes the value.(<CODE>1</CODE>)</UL><P><B><A NAME="n_sep_by_space"><CODE>n_sep_by_space</CODE></A></B>-- whether the currency symbolis separated by a space or by no space from the valuefor negative monetary values:</P><UL><LI>A value of 0 indicates that no space separates symbol and value.<LI>A value of 1 indicates that a space separates symbol and value.(<CODE>0</CODE>)</UL><P><B><A NAME="n_sign_posn"><CODE>n_sign_posn</CODE></A></B>-- the format for negative monetary values:</P><UL><LI>A value of 0 indicates that parentheses surround the value and thecurrency symbol.<LI>A value of 1 indicates that the negative sign precedes the value and thecurrency symbol.<LI>A value of 2 indicates that the negative sign follows the value and thecurrency_symbol.<LI>A value of 3 indicates that the negative sign immediately precedes thecurrency symbol.<LI>A value of 4 indicates that the negative sign immediately follows thecurrency_symbol. (<CODE>4</CODE>)</UL><P><B><A NAME="p_cs_precedes"><CODE>p_cs_precedes</CODE></A></B>-- whether the currency symbol precedesor follows the value for positive monetary values:</P><UL><LI>A value of 0 indicates that the symbol follows the value.<LI>A value of 1 indicates that the symbol precedes the value.(<CODE>1</CODE>)</UL><P><B><A NAME="p_sep_by_space"><CODE>p_sep_by_space</CODE></A></B>-- whether the currency symbol is separatedby a space or by no space from the value for positive monetary values:</P><UL><LI>A value of 0 indicates that no space separates symbol and value.<LI>A value of 1 indicates that a space separates symbol and value.(<CODE>0</CODE>)</UL><P><B><A NAME="p_sign_posn"><CODE>p_sign_posn</CODE></A></B>-- the format for positive monetary values:</P><UL><LI>A value of 0 indicates that parentheses surround the value andthe currency symbol.<LI>A value of 1 indicates that the negative sign precedes the valueand the currency symbol.<LI>A value of 2 indicates that the negative sign follows the valueand the currency symbol.<LI>A value of 3 indicates that the negative sign immediately precedesthe currency symbol.<LI>A value of 4 indicates that the negative sign immediately followsthe currency symbol. (<CODE>4</CODE>)</UL><H2><A NAME="localeconv"><CODE>localeconv</CODE></A></H2><PRE>struct lconv *<B>localeconv</B>(void);</PRE><P>The function returns a pointer to a static-duration structurecontaining numeric formatting information for the current locale.You cannot alter values stored in the static-duration structure. Thestored values can change on later callsto <CODE>localeconv</CODE> or on calls to<A HREF="#setlocale"><CODE>setlocale</CODE></A>that alter any of the categories<A HREF="#LC_ALL"><CODE>LC_ALL</CODE></A>,<A HREF="#LC_MONETARY"><CODE>LC_MONETARY</CODE></A>, or<A HREF="#LC_NUMERIC"><CODE>LC_NUMERIC</CODE></A>.</P><H2><A NAME="NULL"><CODE>NULL</CODE></A></H2><PRE>#define <B>NULL</B> <I>&lt;either 0, 0L, or (void *)0&gt;</I> <B>[0 in C++]</B></PRE><P>The macro yields a null pointer constant that is usable as an<A HREF="express.html#address constant expression">address constant expression</A>.</P><H2><A NAME="setlocale"><CODE>setlocale</CODE></A></H2><PRE>char *<B>setlocale</B>(int category, const char *locname);</PRE><P>The function either returns a pointer to a static-duration stringdescribing a new locale or returns a null pointer (if the new localecannot be selected). The value of <CODE>category</CODE>selects one or more<A HREF="#locale category">locale categories</A>,each of which must match the valueof one of the macros defined in this standard header with names thatbegin with <CODE>LC_</CODE>.</P><P>If <CODE>locname</CODE> is a null pointer, the locale remains unchanged.If <CODE>locname</CODE> designates the string <CODE>"C"</CODE>,the new locale is the<A HREF="#C locale"><CODE>"C"</CODE></A> localefor the locale category specified. If <CODE>locname</CODE>designates the string <CODE>""</CODE>, the new locale is the<B><A NAME="native locale">native locale</A></B>(a default locale presumably tailored for the local culture)for the locale category specified.<CODE>locname</CODE> can also designate a stringreturned on an earlier call to <CODE>setlocale</CODE> or to other stringsthat the implementation can define.</P><P>At<A HREF="lib_over.html#program startup">program startup</A>,the target environment calls <CODE>setlocale(<A HREF="#LC_ALL">LC_ALL</A>,"C")</CODE> before it calls <CODE>main</CODE>.</P><HR><P>See also the<B><A HREF="index.html#Table of Contents">Table of Contents</A></B> and the<B><A HREF="_index.html">Index</A></B>.</P><P><I><A HREF="crit_pb.html">Copyright</A> &#169; 1989-2002by P.J. Plauger and Jim Brodie. All rights reserved.</I></P><!--V4.01:1125--></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -