📄 langinfo.h.html
字号:
<tr valign="top"><td align="left"><p class="tent">MON_8</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Name of the eighth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">MON_9</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Name of the ninth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">MON_10</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Name of the tenth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">MON_11</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Name of the eleventh month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">MON_12</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Name of the twelfth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_1</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the first month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_2</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the second month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_3</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the third month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_4</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the fourth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_5</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the fifth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_6</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the sixth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_7</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the seventh month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_8</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the eighth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_9</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the ninth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_10</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the tenth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_11</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the eleventh month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ABMON_12</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Abbreviated name of the twelfth month.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ERA</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Era description segments.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ERA_D_FMT</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Era date format string.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ERA_D_T_FMT</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Era date and time format string.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ERA_T_FMT</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Era time format string.</p></td></tr><tr valign="top"><td align="left"><p class="tent">ALT_DIGITS</p></td><td align="left"><p class="tent"><i>LC_TIME</i></p></td><td align="left"><p class="tent">Alternative symbols for digits.</p></td></tr><tr valign="top"><td align="left"><p class="tent">RADIXCHAR</p></td><td align="left"><p class="tent"><i>LC_NUMERIC</i></p></td><td align="left"><p class="tent">Radix character.</p></td></tr><tr valign="top"><td align="left"><p class="tent">THOUSEP</p></td><td align="left"><p class="tent"><i>LC_NUMERIC</i></p></td><td align="left"><p class="tent">Separator for thousands.</p></td></tr><tr valign="top"><td align="left"><p class="tent">YESEXPR</p></td><td align="left"><p class="tent"><i>LC_MESSAGES</i></p></td><td align="left"><p class="tent">Affirmative response expression.</p></td></tr><tr valign="top"><td align="left"><p class="tent">NOEXPR</p></td><td align="left"><p class="tent"><i>LC_MESSAGES</i></p></td><td align="left"><p class="tent">Negative response expression.</p></td></tr><tr valign="top"><td align="left"><p class="tent">CRNCYSTR</p></td><td align="left"><p class="tent"><i>LC_MONETARY</i></p></td><td align="left"><p class="tent">Local currency symbol, preceded by <tt>'-'</tt> if the symbol should appear before the value, <tt>'+'</tt> if thesymbol should appear after the value, or <tt>'.'</tt> if the symbol should replace the radix character. If the local currencysymbol is the empty string, implementations may return the empty string ( <tt>""</tt> ).</p></td></tr></table></center><p>If the locale's values for <b>p_cs_precedes</b> and <b>n_cs_precedes</b> do not match, the value of <i>nl_langinfo</i>(CRNCYSTR)is unspecified.</p><p>The following shall be declared as a function and may also be defined as a macro. A function prototype shall be provided.</p><pre><tt>char *nl_langinfo(nl_item);</tt></pre><p>Inclusion of the <i><langinfo.h></i> header may also make visible all symbols from <a href="../basedefs/nl_types.h.html"><i><nl_types.h></i></a>.</p></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_13_22_04"></a>APPLICATION USAGE</h4><blockquote><p>Wherever possible, users are advised to use functions compatible with those in the ISO C standard to access items of<i>langinfo</i> data. In particular, the <a href="../functions/strftime.html"><i>strftime</i>()</a> function should be used toaccess date and time information defined in category <i>LC_TIME .</i> The <a href="../functions/localeconv.html"><i>localeconv</i>()</a> function should be used to access information corresponding to RADIXCHAR,THOUSEP, and CRNCYSTR.</p></blockquote><h4><a name="tag_13_22_05"></a>RATIONALE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_22_06"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_22_07"></a>SEE ALSO</h4><blockquote><p>The System Interfaces volume of IEEE Std 1003.1-2001, <a href="../functions/nl_langinfo.html"><i>nl_langinfo</i>()</a>, <a href="../functions/localeconv.html"><i>localeconv</i>()</a>, <a href="../functions/strfmon.html"><i>strfmon</i>()</a>, <a href="../functions/strftime.html"><i>strftime</i>()</a>, <a href="xbd_chap07.html#tag_07"><i>Locale</i></a></p></blockquote><h4><a name="tag_13_22_08"></a>CHANGE HISTORY</h4><blockquote><p>First released in Issue 2.</p></blockquote><h4><a name="tag_13_22_09"></a>Issue 5</h4><blockquote><p>The constants YESSTR and NOSTR are marked LEGACY.</p></blockquote><h4><a name="tag_13_22_10"></a>Issue 6</h4><blockquote><p>The constants YESSTR and NOSTR are removed.</p><p>IEEE Std 1003.1-2001/Cor 1-2002, item XBD/TC1/D6/9 is applied, adding a sentence to the``Meaning'' column entry forthe CRNCYSTR constant. This change is to accommodate historic practice.</p></blockquote><div class="box"><em>End of informative text.</em></div><hr><hr size="2" noshade><center><font size="2"><!--footer start-->UNIX ® is a registered Trademark of The Open Group.<br>POSIX ® is a registered Trademark of The IEEE.<br>[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>]</font></center><!--footer end--><hr size="2" noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -