Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

182 lines
8.6KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>Characters implementation (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="Characters implementation (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="Characters implementation (Using the GNU Compiler Collection (GCC))">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="C-Implementation.html#C-Implementation" rel="up" title="C Implementation">
  30. <link href="Integers-implementation.html#Integers-implementation" rel="next" title="Integers implementation">
  31. <link href="Identifiers-implementation.html#Identifiers-implementation" rel="prev" title="Identifiers implementation">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.indentedblock {margin-right: 0em}
  36. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  37. blockquote.smallquotation {font-size: smaller}
  38. div.display {margin-left: 3.2em}
  39. div.example {margin-left: 3.2em}
  40. div.lisp {margin-left: 3.2em}
  41. div.smalldisplay {margin-left: 3.2em}
  42. div.smallexample {margin-left: 3.2em}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style: oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nolinebreak {white-space: nowrap}
  54. span.roman {font-family: initial; font-weight: normal}
  55. span.sansserif {font-family: sans-serif; font-weight: normal}
  56. ul.no-bullet {list-style: none}
  57. -->
  58. </style>
  59. </head>
  60. <body lang="en">
  61. <a name="Characters-implementation"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="Integers-implementation.html#Integers-implementation" accesskey="n" rel="next">Integers implementation</a>, Previous: <a href="Identifiers-implementation.html#Identifiers-implementation" accesskey="p" rel="prev">Identifiers implementation</a>, Up: <a href="C-Implementation.html#C-Implementation" accesskey="u" rel="up">C Implementation</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  65. </div>
  66. <hr>
  67. <a name="Characters"></a>
  68. <h3 class="section">4.4 Characters</h3>
  69. <ul>
  70. <li> <cite>The number of bits in a byte (C90 3.4, C99 and C11 3.6).</cite>
  71. <p>Determined by ABI.
  72. </p>
  73. </li><li> <cite>The values of the members of the execution character set (C90,
  74. C99 and C11 5.2.1).</cite>
  75. <p>Determined by ABI.
  76. </p>
  77. </li><li> <cite>The unique value of the member of the execution character set produced
  78. for each of the standard alphabetic escape sequences (C90, C99 and C11
  79. 5.2.2).</cite>
  80. <p>Determined by ABI.
  81. </p>
  82. </li><li> <cite>The value of a <code>char</code> object into which has been stored any
  83. character other than a member of the basic execution character set
  84. (C90 6.1.2.5, C99 and C11 6.2.5).</cite>
  85. <p>Determined by ABI.
  86. </p>
  87. </li><li> <cite>Which of <code>signed char</code> or <code>unsigned char</code> has the same
  88. range, representation, and behavior as &ldquo;plain&rdquo; <code>char</code> (C90
  89. 6.1.2.5, C90 6.2.1.1, C99 and C11 6.2.5, C99 and C11 6.3.1.1).</cite>
  90. <a name="index-fsigned_002dchar-1"></a>
  91. <a name="index-funsigned_002dchar-1"></a>
  92. <p>Determined by ABI. The options <samp>-funsigned-char</samp> and
  93. <samp>-fsigned-char</samp> change the default. See <a href="C-Dialect-Options.html#C-Dialect-Options">Options Controlling C Dialect</a>.
  94. </p>
  95. </li><li> <cite>The mapping of members of the source character set (in character
  96. constants and string literals) to members of the execution character
  97. set (C90 6.1.3.4, C99 and C11 6.4.4.4, C90, C99 and C11 5.1.1.2).</cite>
  98. <p>Determined by ABI.
  99. </p>
  100. </li><li> <cite>The value of an integer character constant containing more than one
  101. character or containing a character or escape sequence that does not map
  102. to a single-byte execution character (C90 6.1.3.4, C99 and C11 6.4.4.4).</cite>
  103. <p>See <a href="http://gcc.gnu.org/onlinedocs/cpp/Implementation_002ddefined-behavior.html#Implementation_002ddefined-behavior">Implementation-defined
  104. behavior</a> in <cite>The C Preprocessor</cite>.
  105. </p>
  106. </li><li> <cite>The value of a wide character constant containing more than one
  107. multibyte character or a single multibyte character that maps to
  108. multiple members of the extended execution character set, or
  109. containing a multibyte character or escape sequence not represented in
  110. the extended execution character set (C90 6.1.3.4, C99 and C11
  111. 6.4.4.4).</cite>
  112. <p>See <a href="http://gcc.gnu.org/onlinedocs/cpp/Implementation_002ddefined-behavior.html#Implementation_002ddefined-behavior">Implementation-defined
  113. behavior</a> in <cite>The C Preprocessor</cite>.
  114. </p>
  115. </li><li> <cite>The current locale used to convert a wide character constant consisting
  116. of a single multibyte character that maps to a member of the extended
  117. execution character set into a corresponding wide character code (C90
  118. 6.1.3.4, C99 and C11 6.4.4.4).</cite>
  119. <p>See <a href="http://gcc.gnu.org/onlinedocs/cpp/Implementation_002ddefined-behavior.html#Implementation_002ddefined-behavior">Implementation-defined
  120. behavior</a> in <cite>The C Preprocessor</cite>.
  121. </p>
  122. </li><li> <cite>Whether differently-prefixed wide string literal tokens can be
  123. concatenated and, if so, the treatment of the resulting multibyte
  124. character sequence (C11 6.4.5).</cite>
  125. <p>Such tokens may not be concatenated.
  126. </p>
  127. </li><li> <cite>The current locale used to convert a wide string literal into
  128. corresponding wide character codes (C90 6.1.4, C99 and C11 6.4.5).</cite>
  129. <p>See <a href="http://gcc.gnu.org/onlinedocs/cpp/Implementation_002ddefined-behavior.html#Implementation_002ddefined-behavior">Implementation-defined
  130. behavior</a> in <cite>The C Preprocessor</cite>.
  131. </p>
  132. </li><li> <cite>The value of a string literal containing a multibyte character or escape
  133. sequence not represented in the execution character set (C90 6.1.4,
  134. C99 and C11 6.4.5).</cite>
  135. <p>See <a href="http://gcc.gnu.org/onlinedocs/cpp/Implementation_002ddefined-behavior.html#Implementation_002ddefined-behavior">Implementation-defined
  136. behavior</a> in <cite>The C Preprocessor</cite>.
  137. </p>
  138. </li><li> <cite>The encoding of any of <code>wchar_t</code>, <code>char16_t</code>, and
  139. <code>char32_t</code> where the corresponding standard encoding macro
  140. (<code>__STDC_ISO_10646__</code>, <code>__STDC_UTF_16__</code>, or
  141. <code>__STDC_UTF_32__</code>) is not defined (C11 6.10.8.2).</cite>
  142. <p>See <a href="http://gcc.gnu.org/onlinedocs/cpp/Implementation_002ddefined-behavior.html#Implementation_002ddefined-behavior">Implementation-defined
  143. behavior</a> in <cite>The C Preprocessor</cite>. <code>char16_t</code> and
  144. <code>char32_t</code> literals are always encoded in UTF-16 and UTF-32
  145. respectively.
  146. </p>
  147. </li></ul>
  148. <hr>
  149. <div class="header">
  150. <p>
  151. Next: <a href="Integers-implementation.html#Integers-implementation" accesskey="n" rel="next">Integers implementation</a>, Previous: <a href="Identifiers-implementation.html#Identifiers-implementation" accesskey="p" rel="prev">Identifiers implementation</a>, Up: <a href="C-Implementation.html#C-Implementation" accesskey="u" rel="up">C Implementation</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  152. </div>
  153. </body>
  154. </html>