1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<div class="section-level-extent" id="Characters-implementation"> <div class="nav-panel"> <p> Next: <a href="integers-implementation" accesskey="n" rel="next">Integers</a>, Previous: <a href="identifiers-implementation" accesskey="p" rel="prev">Identifiers</a>, Up: <a href="c-implementation" accesskey="u" rel="up">C Implementation-Defined Behavior</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div> <h1 class="section" id="Characters"><span>4.4 Characters<a class="copiable-link" href="#Characters"> ¶</a></span></h1> <ul class="itemize mark-bullet"> <li>The number of bits in a byte (C90 3.4, C99 and C11 3.6). <p>Determined by ABI. </p> </li>
<li>The values of the members of the execution character set (C90, C99 and C11 5.2.1). <p>Determined by ABI. </p> </li>
<li>The unique value of the member of the execution character set produced for each of the standard alphabetic escape sequences (C90, C99 and C11 5.2.2). <p>Determined by ABI. </p> </li>
<li>The value of a <code class="code">char</code> object into which has been stored any character other than a member of the basic execution character set (C90 6.1.2.5, C99 and C11 6.2.5). <p>Determined by ABI. </p> </li>
<li>Which of <code class="code">signed char</code> or <code class="code">unsigned char</code> has the same range, representation, and behavior as “plain” <code class="code">char</code> (C90 6.1.2.5, C90 6.2.1.1, C99 and C11 6.2.5, C99 and C11 6.3.1.1). <p>Determined by ABI. The options <samp class="option">-funsigned-char</samp> and <samp class="option">-fsigned-char</samp> change the default. See <a class="xref" href="c-dialect-options">Options Controlling C Dialect</a>. </p> </li>
<li>The mapping of members of the source character set (in character constants and string literals) to members of the execution character set (C90 6.1.3.4, C99 and C11 6.4.4.4, C90, C99 and C11 5.1.1.2). <p>Determined by ABI. </p> </li>
<li>The value of an integer character constant containing more than one character or containing a character or escape sequence that does not map to a single-byte execution character (C90 6.1.3.4, C99 and C11 6.4.4.4). <p>See <a data-manual="cpp" href="https://gcc.gnu.org/onlinedocs/cpp/Implementation-defined-behavior.html#Implementation-defined-behavior">Implementation-defined behavior</a> in The C Preprocessor. </p> </li>
<li>The value of a wide character constant containing more than one multibyte character or a single multibyte character that maps to multiple members of the extended execution character set, or containing a multibyte character or escape sequence not represented in the extended execution character set (C90 6.1.3.4, C99 and C11 6.4.4.4). <p>See <a data-manual="cpp" href="https://gcc.gnu.org/onlinedocs/cpp/Implementation-defined-behavior.html#Implementation-defined-behavior">Implementation-defined behavior</a> in The C Preprocessor. </p> </li>
<li>The current locale used to convert a wide character constant consisting of a single multibyte character that maps to a member of the extended execution character set into a corresponding wide character code (C90 6.1.3.4, C99 and C11 6.4.4.4). <p>See <a data-manual="cpp" href="https://gcc.gnu.org/onlinedocs/cpp/Implementation-defined-behavior.html#Implementation-defined-behavior">Implementation-defined behavior</a> in The C Preprocessor. </p> </li>
<li>Whether differently-prefixed wide string literal tokens can be concatenated and, if so, the treatment of the resulting multibyte character sequence (C11 6.4.5). <p>Such tokens may not be concatenated. </p> </li>
<li>The current locale used to convert a wide string literal into corresponding wide character codes (C90 6.1.4, C99 and C11 6.4.5). <p>See <a data-manual="cpp" href="https://gcc.gnu.org/onlinedocs/cpp/Implementation-defined-behavior.html#Implementation-defined-behavior">Implementation-defined behavior</a> in The C Preprocessor. </p> </li>
<li>The value of a string literal containing a multibyte character or escape sequence not represented in the execution character set (C90 6.1.4, C99 and C11 6.4.5). <p>See <a data-manual="cpp" href="https://gcc.gnu.org/onlinedocs/cpp/Implementation-defined-behavior.html#Implementation-defined-behavior">Implementation-defined behavior</a> in The C Preprocessor. </p> </li>
<li>The encoding of any of <code class="code">wchar_t</code>, <code class="code">char16_t</code>, and <code class="code">char32_t</code> where the corresponding standard encoding macro (<code class="code">__STDC_ISO_10646__</code>, <code class="code">__STDC_UTF_16__</code>, or <code class="code">__STDC_UTF_32__</code>) is not defined (C11 6.10.8.2). <p>See <a data-manual="cpp" href="https://gcc.gnu.org/onlinedocs/cpp/Implementation-defined-behavior.html#Implementation-defined-behavior">Implementation-defined behavior</a> in The C Preprocessor. <code class="code">char16_t</code> and <code class="code">char32_t</code> literals are always encoded in UTF-16 and UTF-32 respectively. </p> </li>
</ul> </div> <div class="nav-panel"> <p> Next: <a href="integers-implementation">Integers</a>, Previous: <a href="identifiers-implementation">Identifiers</a>, Up: <a href="c-implementation">C Implementation-Defined Behavior</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div><div class="_attribution">
<p class="_attribution-p">
© Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br>
<a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Characters-implementation.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Characters-implementation.html</a>
</p>
</div>
|