The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



Индекс форумов
Составление сообщения

Исходное сообщение
"Эксперимент по разработке частей ядра Linux на языке Rust"
Отправлено Аноним, 05-Июн-17 22:05 
О, нашелся поклонник, расставил плюсы/минусы. Держи вырезку из твоего источника:

6.4.5 String literals

>In translation phase 7, a byte or code of value zero is appended to each multibyte

character sequence that results from a string literal or literals. 78) The multibyte character sequence is then used to initialize an array of static storage duration and length just sufficient to contain the sequence.

>The multibyte character sequence is then used to initialize an array
>initialize an array

И дальше, по тексту:

>For character string literals, the array elements have type char, and are initialized with the individual bytes of the multibyte character sequence.
>the array elements have type char
>type char

Про юникод-строки:

>For UTF −8 string literals, the array elements have type char, and are initialized with the characters of the multibyte character sequence, as encoded in UTF −8. For wide string literals prefixed by the letter L, the array elements have type wchar_t and are initialized with the sequence of wide characters corresponding to the multibyte character sequence, as defined by the mbstowcs function with an implementation-defined current locale.
>the array elements have type wchar_t

Ну и вся оставшаяся простыня:

>For wide string literals prefixed by the letter u or U, the array elements have type char16_t or char32_t, respectively, and are initialized with the sequence of wide characters corresponding to the multibyte character sequence, as defined by successive calls to the mbrtoc16, or mbrtoc32 function as appropriate for its type, with an implementation-defined current locale. The value of a string literal containing a multibyte character or escape sequence not represented in the execution character set is implementation-defined.

Емое. Вы бы сами читали, что даете...

 

Ваше сообщение
Имя*:
EMail:
Для отправки ответов на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру