summaryrefslogtreecommitdiff
path: root/devdocs/c/locale%2Flconv.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-08-14 22:58:58 -0500
committerCraig Jennings <c@cjennings.net>2025-08-14 22:58:58 -0500
commit82ba818ff456bcd6d56a06226e3f27e98fbb55c3 (patch)
tree158cfc17b2f644a10f063cb546752cfaae12c97f /devdocs/c/locale%2Flconv.html
parent9278ddd4ea1a8b1a4c1edaa8894516e3f48d245b (diff)
downloaddotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.tar.gz
dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.zip
removing all downloaded devdocs files
Diffstat (limited to 'devdocs/c/locale%2Flconv.html')
-rw-r--r--devdocs/c/locale%2Flconv.html71
1 files changed, 0 insertions, 71 deletions
diff --git a/devdocs/c/locale%2Flconv.html b/devdocs/c/locale%2Flconv.html
deleted file mode 100644
index 1194b651..00000000
--- a/devdocs/c/locale%2Flconv.html
+++ /dev/null
@@ -1,71 +0,0 @@
- <h1 id="firstHeading" class="firstHeading">lconv</h1> <table class="t-dcl-begin"> <tr class="t-dsc-header"> <th> Defined in header <code>&lt;locale.h&gt;</code> </th> <th> </th> <th> </th> </tr> <tr class="t-dcl"> <td class="t-dcl-nopad"> <pre data-language="c">struct lconv;</pre>
-</td> <td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> </table> <p>The struct <code>lconv</code> contains numeric and monetary formatting rules as defined by a C locale. Objects of this struct may be obtained with <code><a href="localeconv" title="c/locale/localeconv">localeconv</a></code>. The members of <code>lconv</code> are values of type <code>char</code> and of type <code>char*</code>. Each <code>char*</code> member except <code>decimal_point</code> may be pointing at a null character (that is, at an empty C-string). The members of type <code>char</code> are all non-negative numbers, any of which may be <code><a href="../types/limits" title="c/types/limits">CHAR_MAX</a></code> if the corresponding value is not available in the current C locale.</p>
-<h3 id="Member_objects"> Member objects</h3> <h4 id="Non-monetary_numeric_formatting_parameters"> Non-monetary numeric formatting parameters</h4> <table class="t-dsc-begin"> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char*</span> decimal_point</span></span></div> </td> <td> the character used as the decimal point <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char*</span> thousands_sep</span></span></div> </td> <td> the character used to separate groups of digits before the decimal point <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char*</span> grouping</span></span></div> </td> <td> a string whose elements indicate the sizes of digit groups <br> <span class="t-mark">(public member object)</span> </td>
-</tr> </table> <h4 id="Monetary_numeric_formatting_parameters"> Monetary numeric formatting parameters</h4> <table class="t-dsc-begin"> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char*</span> mon_decimal_point</span></span></div> </td> <td> the character used as the decimal point <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char*</span> mon_thousands_sep</span></span></div> </td> <td> the character used to separate groups of digits before the decimal point <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char*</span> mon_grouping</span></span></div> </td> <td> a string whose elements indicate the sizes of digit groups <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char*</span> positive_sign</span></span></div> </td> <td> a string used to indicate non-negative monetary quantity <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char*</span> negative_sign</span></span></div> </td> <td> a string used to indicate negative monetary quantity <br> <span class="t-mark">(public member object)</span> </td>
-</tr> </table> <h4 id="Local_monetary_numeric_formatting_parameters"> Local monetary numeric formatting parameters</h4> <table class="t-dsc-begin"> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char*</span> currency_symbol</span></span></div> </td> <td> the symbol used for currency in the current C locale <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> frac_digits</span></span></div> </td> <td> the number of digits after the decimal point to display in a monetary quantity <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> p_cs_precedes</span></span></div> </td> <td> <code>1</code> if currency_symbol is placed before non-negative value, <code>​0​</code> if after <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> n_cs_precedes</span></span></div> </td> <td> <code>1</code> if currency_symbol is placed before negative value, <code>​0​</code> if after <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> p_sep_by_space</span></span></div> </td> <td> indicates the separation of <code>currency_symbol</code>, <code>positive_sign</code>, and the non-negative monetary value <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> n_sep_by_space</span></span></div> </td> <td> indicates the separation of <code>currency_symbol</code>, <code>negative_sign</code>, and the negative monetary value <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> p_sign_posn</span></span></div> </td> <td> indicates the position of <code>positive_sign</code> in a non-negative monetary value <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> n_sign_posn</span></span></div> </td> <td> indicates the position of <code>negative_sign</code> in a negative monetary value <br> <span class="t-mark">(public member object)</span> </td>
-</tr> </table> <h4 id="International_monetary_numeric_formatting_parameters"> International monetary numeric formatting parameters</h4> <table class="t-dsc-begin"> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char*</span> int_curr_symbol</span></span></div> </td> <td> the string used as international currency name in the current C locale <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> int_frac_digits</span></span></div> </td> <td> the number of digits after the decimal point to display in an international monetary quantity <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> int_p_cs_precedes</span></span></div>
-<div><span class="t-lines"><span><span class="t-mark-rev t-since-c99">(C99)</span></span></span></div> </td> <td> <code>1</code> if int_curr_symbol is placed before non-negative international monetary value, <code>​0​</code> if after <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> int_n_cs_precedes</span></span></div>
-<div><span class="t-lines"><span><span class="t-mark-rev t-since-c99">(C99)</span></span></span></div> </td> <td> <code>1</code> if int_curr_symbol is placed before negative international monetary value, <code>​0​</code> if after <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> int_p_sep_by_space</span></span></div>
-<div><span class="t-lines"><span><span class="t-mark-rev t-since-c99">(C99)</span></span></span></div> </td> <td> indicates the separation of <code>int_curr_symbol</code>, <code>positive_sign</code>, and the non-negative international monetary value <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> int_n_sep_by_space</span></span></div>
-<div><span class="t-lines"><span><span class="t-mark-rev t-since-c99">(C99)</span></span></span></div> </td> <td> indicates the separation of <code>int_curr_symbol</code>, <code>negative_sign</code>, and the negative international monetary value <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> int_p_sign_posn</span></span></div>
-<div><span class="t-lines"><span><span class="t-mark-rev t-since-c99">(C99)</span></span></span></div> </td> <td> indicates the position of <code>positive_sign</code> in a non-negative international monetary value <br> <span class="t-mark">(public member object)</span> </td>
-</tr> <tr class="t-dsc"> <td> <div><span class="t-lines"><span><span class="t-dsc-small">char</span> int_n_sign_posn</span></span></div>
-<div><span class="t-lines"><span><span class="t-mark-rev t-since-c99">(C99)</span></span></span></div> </td> <td> indicates the position of <code>negative_sign</code> in a negative international monetary value <br> <span class="t-mark">(public member object)</span> </td>
-</tr> </table> <p><br> The characters of the C-strings pointed to by <code>grouping</code> and <code>mon_grouping</code> are interpreted according to their numeric values. When the terminating <code>'\0'</code> is encountered, the last value seen is assumed to repeat for the remainder of digits. If <code><a href="../types/limits" title="c/types/limits">CHAR_MAX</a></code> is encountered, no further digits are grouped. The typical grouping of three digits at a time is <code>"\003"</code>.</p>
-<p>The values of <code>p_sep_by_space</code>, <code>n_sep_by_space</code>, <code>int_p_sep_by_space</code>, <code>int_n_sep_by_space</code> are interpreted as follows:</p>
-<table class="t-dsc-begin"> <tr class="t-dsc"> <td> 0 </td> <td> no space separates the currency symbol and the value </td>
-</tr> <tr class="t-dsc"> <td> 1 </td> <td> sign sticks to the currency symbol, value is separated by a space </td>
-</tr> <tr class="t-dsc"> <td> 2 </td> <td> sign sticks to the value. Currency symbol is separated by a space </td>
-</tr> </table> <p>The values of <code>p_sign_posn</code>, <code>n_sign_posn</code>, <code>int_p_sign_posn</code>, <code>int_n_sign_posn</code> are interpreted as follows:</p>
-<table class="t-dsc-begin"> <tr class="t-dsc"> <td> 0 </td> <td> parentheses around the value and the currency symbol are used to represent the sign </td>
-</tr> <tr class="t-dsc"> <td> 1 </td> <td> sign before the value and the currency symbol </td>
-</tr> <tr class="t-dsc"> <td> 2 </td> <td> sign after the value and the currency symbol </td>
-</tr> <tr class="t-dsc"> <td> 3 </td> <td> sign before the currency symbol </td>
-</tr> <tr class="t-dsc"> <td> 4 </td> <td> sign after the currency symbol </td>
-</tr> </table> <h3 id="Example"> Example</h3> <div class="t-example"> <div class="c source-c"><pre data-language="c">#include &lt;locale.h&gt;
-#include &lt;stdio.h&gt;
-
-int main(void)
-{
- setlocale(LC_ALL, "ja_JP.UTF-8");
- struct lconv *lc = localeconv();
- printf("Japanese currency symbol: %s(%s)\n", lc-&gt;currency_symbol, lc-&gt;int_curr_symbol);
-}</pre></div> <p>Possible output:</p>
-<div class="text source-text"><pre data-language="c">Japanese currency symbol: ¥(JPY )</pre></div> </div> <h3 id="References"> References</h3> <ul>
-<li> C23 standard (ISO/IEC 9899:2023): </li>
-<ul><li> 7.11/2 Localization &lt;locale.h&gt; (p: TBD) </li></ul>
-<li> C17 standard (ISO/IEC 9899:2018): </li>
-<ul><li> 7.11/2 Localization &lt;locale.h&gt; (p: TBD) </li></ul>
-<li> C11 standard (ISO/IEC 9899:2011): </li>
-<ul><li> 7.11/2 Localization &lt;locale.h&gt; (p: 223) </li></ul>
-<li> C99 standard (ISO/IEC 9899:1999): </li>
-<ul><li> 7.11/2 Localization &lt;locale.h&gt; (p: 204) </li></ul>
-<li> C89/C90 standard (ISO/IEC 9899:1990): </li>
-<ul><li> 4.4 LOCALIZATION &lt;locale.h&gt; </li></ul>
-</ul> <h3 id="See_also"> See also</h3> <table class="t-dsc-begin"> <tr class="t-dsc"> <td> <div><a href="localeconv" title="c/locale/localeconv"> <span class="t-lines"><span>localeconv</span></span></a></div> </td> <td> queries numeric and monetary formatting details of the current locale <br> <span class="t-mark">(function)</span> </td>
-</tr> <tr class="t-dsc"> <td colspan="2"> <span><a href="https://en.cppreference.com/w/cpp/locale/lconv" title="cpp/locale/lconv">C++ documentation</a></span> for <code>lconv</code> </td>
-</tr> </table> <div class="_attribution">
- <p class="_attribution-p">
- &copy; cppreference.com<br>Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.<br>
- <a href="https://en.cppreference.com/w/c/locale/lconv" class="_attribution-link">https://en.cppreference.com/w/c/locale/lconv</a>
- </p>
-</div>