Debian Codegraph @

po/ru/man3/mbstowcs.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # aereiae <[email protected]>, 2014.
5 # Alexey <[email protected]>, 2015.
6 # Azamat Hackimov <[email protected]>, 2013-2017.
7 # Dmitriy S. Seregin <[email protected]>, 2013.
8 # Dmitry Bolkhovskikh <[email protected]>, 2017.
9 # ITriskTI <[email protected]>, 2013.
10 # Max Is <[email protected]>, 2016.
11 # Yuri Kozlov <[email protected]>, 2011-2019.
12 # Иван Павлов <[email protected]>, 2017.
13 # Малянов Евгений Викторович <[email protected]>, 2014.
14 msgid ""
15 msgstr ""
16 "Project-Id-Version: manpages-l10n\n"
17 "POT-Creation-Date: 2026-06-05 06:30+0200\n"
18 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
19 "Last-Translator: Yuri Kozlov <[email protected]>\n"
20 "Language-Team: Russian <[email protected]>\n"
21 "Language: ru\n"
22 "MIME-Version: 1.0\n"
23 "Content-Type: text/plain; charset=UTF-8\n"
24 "Content-Transfer-Encoding: 8bit\n"
25 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
26 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
27 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
28 "X-Generator: Lokalize 2.0\n"
29
30 #. type: TH
31 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
32 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
33 #, fuzzy, no-wrap
34 #| msgid "B<mbstowcs>()"
35 msgid "mbstowcs"
36 msgstr "B<mbstowcs>()"
37
38 #. type: TH
39 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
40 #: opensuse-tumbleweed
41 #, no-wrap
42 msgid "2026-02-08"
43 msgstr "8 февраля 2026 г."
44
45 #. type: TH
46 #: archlinux debian-unstable
47 #, fuzzy, no-wrap
48 #| msgid "Linux man-pages 6.17"
49 msgid "Linux man-pages 6.18"
50 msgstr "Справочные страницы Linux 6.17"
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "NAME"
57 msgstr "НАИМЕНОВАНИЕ"
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "mbstowcs - convert a multibyte string to a wide-character string"
63 msgstr "mbstowcs - преобразует многобайтовую строку в строку широких символов"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "LIBRARY"
70 msgstr "БИБЛИОТЕКА"
71
72 #. type: Plain text
73 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
74 #: opensuse-leap-16-1 opensuse-tumbleweed
75 msgid "Standard C library (I<libc>,\\ I<-lc>)"
76 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
77
78 #. type: SH
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "SYNOPSIS"
83 msgstr "СИНТАКСИС"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
90 msgstr "B<#include E<lt>stdlib.hE<gt>>\n"
91
92 #. type: Plain text
93 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
94 #: opensuse-tumbleweed
95 #, fuzzy, no-wrap
96 #| msgid ""
97 #| "B<size_t mbsrtowcs(wchar_t *>I<dest>B<, const char **>I<src>B<,>\n"
98 #| "B< size_t >I<len>B<, mbstate_t *>I<ps>B<);>\n"
99 msgid ""
100 "B<size_t mbstowcs(>size_t dsize;\n"
101 "B< wchar_t >I<dest>B<[restrict >I<dsize>B<], const char *restrict >I<src>B<,>\n"
102 "B< size_t >I<dsize>B<);>\n"
103 msgstr ""
104 "B<size_t mbsrtowcs(wchar_t *>I<dest>B<, const char **>I<src>B<,>\n"
105 "B< size_t >I<len>B<, mbstate_t *>I<ps>B<);>\n"
106
107 #. type: SH
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 #, no-wrap
111 msgid "DESCRIPTION"
112 msgstr "ОПИСАНИЕ"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, fuzzy
118 #| msgid ""
119 #| "If I<dest> is not NULL, the B<mbstowcs>() function converts the "
120 #| "multibyte string I<src> to a wide-character string starting at I<dest>. "
121 #| "At most I<n> wide characters are written to I<dest>. The sequence of "
122 #| "characters in the string I<src> shall begin in the initial shift state. "
123 #| "The conversion can stop for three reasons:"
124 msgid ""
125 "If I<dest> is not NULL, convert the multibyte string I<src> to a wide-"
126 "character string starting at I<dest>. At most I<dsize> wide characters are "
127 "written to I<dest>. The sequence of characters in the string I<src> shall "
128 "begin in the initial shift state. The conversion can stop for three reasons:"
129 msgstr ""
130 "Если значение I<dest> не равно NULL, то функция B<mbstowcs>() преобразует "
131 "многобайтовую строку I<src> в широкосимвольную строку начиная с I<dest>. В "
132 "I<dest> будет записано не более I<n> широких символов. Последовательность "
133 "символов в строке I<src> должна начинаться с начального состояния. "
134 "Преобразование может прекратиться по трём причинам:"
135
136 #. type: IP
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, no-wrap
140 msgid "\\[bu]"
141 msgstr "\\[bu]"
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 msgid ""
147 "An invalid multibyte sequence has been encountered. In this case, I<(size_t)"
148 "\\ -1> is returned."
149 msgstr ""
150 "Во входных данных находится неправильная многобайтовая последовательность. В "
151 "этом случае возвращается I<(size_t)\\ -1>."
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 #, fuzzy
157 #| msgid ""
158 #| "I<n> non-L\\(aq\\e0\\(aq wide characters have been stored at I<dest>. In "
159 #| "this case, the number of wide characters written to I<dest> is returned, "
160 #| "but the shift state at this point is lost."
161 msgid ""
162 "I<dsize> non-L\\[aq]\\[rs]0\\[aq] wide characters have been stored at "
163 "I<dest>. In this case, the number of wide characters written to I<dest> is "
164 "returned, but the shift state at this point is lost."
165 msgstr ""
166 "В I<dest> было сохранено I<n> не равных L\\(aq\\e0\\(aq широких символов. В "
167 "этом случае будет возвращено количество широких символов, записанных в "
168 "I<dest>, но состояние сдвига в этой точке теряется."
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, fuzzy
174 #| msgid ""
175 #| "The multibyte string has been completely converted, including the "
176 #| "terminating null character (\\(aq\\e0\\(aq). In this case, the number of "
177 #| "wide characters written to I<dest>, excluding the terminating null wide "
178 #| "character, is returned."
179 msgid ""
180 "The multibyte string has been completely converted, including the "
181 "terminating null character (\\[aq]\\[rs]0\\[aq]). In this case, the number "
182 "of wide characters written to I<dest>, excluding the terminating null wide "
183 "character, is returned."
184 msgstr ""
185 "Многобайтовая строка была полностью преобразована, включая завершающий "
186 "символ null (\\(aq\\e0\\(aq). В этом случае возвращается количество "
187 "записанных в I<dest> широких символов, не считая завершающий широкий символ "
188 "null."
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid ""
194 "If I<dest> is NULL, I<dsize> is ignored, and the conversion proceeds as "
195 "above, except that the converted wide characters are not written out to "
196 "memory, and that no length limit exists."
197 msgstr ""
198 "Если I<dest> равно NULL, I<dsize> игнорируется, и преобразование "
199 "продолжается, как описано выше, за исключением того, что преобразованные "
200 "широкие символы не записываются в память, и что ограничений по длине не "
201 "существует."
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, fuzzy
207 #| msgid ""
208 #| "In order to avoid the case 2 above, the programmer should make sure I<n> "
209 #| "is greater than or equal to I<mbstowcs(NULL,src,0)+1>."
210 msgid ""
211 "In order to avoid the case 2 above, the programmer should make sure I<dsize> "
212 "is greater than or equal to I<mbstowcs(NULL,src,0)+1>."
213 msgstr ""
214 "Для того, чтобы избежать ограничения пункта 2, программист должен "
215 "удостовериться, что значение I<n> больше или равно I<mbstowcs(NULL,src,0)+1>."
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "The programmer must ensure that there is room for at least I<dsize> wide "
222 "characters at I<dest>."
223 msgstr ""
224 "Программист должен убедиться, что в I<dest> есть место для символов шириной "
225 "не менее I<dsize>."
226
227 #. type: SH
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "RETURN VALUE"
232 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, fuzzy
238 #| msgid ""
239 #| "The B<mbstowcs>() function returns the number of wide characters that "
240 #| "make up the converted part of the wide-character string, not including "
241 #| "the terminating null wide character. If an invalid multibyte sequence "
242 #| "was encountered, I<(size_t)\\ -1> is returned."
243 msgid ""
244 "The number of wide characters that make up the converted part of the wide-"
245 "character string, not including the terminating null wide character. If an "
246 "invalid multibyte sequence was encountered, I<(size_t)\\ -1> is returned."
247 msgstr ""
248 "Функция B<mbstowcs>() возвращает количество широких символов, которые "
249 "составили преобразованную часть широкосимвольной строки, не включая конечный "
250 "широкий символ null Если обнаружена некорректная многобайтовая "
251 "последовательность, то возвращается I<(size_t)\\ -1>."
252
253 #. type: SH
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "ATTRIBUTES"
258 msgstr "АТРИБУТЫ"
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid ""
264 "For an explanation of the terms used in this section, see B<attributes>(7)."
265 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
266
267 #. type: tbl table
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 #, no-wrap
271 msgid "Interface"
272 msgstr "Интерфейс"
273
274 #. type: tbl table
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "Attribute"
279 msgstr "Атрибут"
280
281 #. type: tbl table
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "Value"
286 msgstr "Значение"
287
288 #. type: tbl table
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid ".na\n"
293 msgstr ".na\n"
294
295 #. type: tbl table
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid ".nh\n"
300 msgstr ".nh\n"
301
302 #. type: tbl table
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "B<mbstowcs>()"
307 msgstr "B<mbstowcs>()"
308
309 #. type: tbl table
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "Thread safety"
314 msgstr "Безвредность в нитях"
315
316 #. type: tbl table
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "MT-Safe"
321 msgstr "MT-Safe"
322
323 #. type: SH
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "VERSIONS"
328 msgstr "ВЕРСИИ"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "The function B<mbsrtowcs>(3) provides a better interface to the same "
335 "functionality."
336 msgstr ""
337 "Функция B<mbsrtowcs>(3) предоставляет лучший интерфейс с теми же "
338 "возможностями."
339
340 #. type: SH
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "STANDARDS"
345 msgstr "СТАНДАРТЫ"
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid "C11, POSIX.1-2008."
351 msgstr "C11, POSIX.1-2008."
352
353 #. type: SH
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "HISTORY"
358 msgstr "ИСТОРИЯ"
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid "POSIX.1-2001, C99."
364 msgstr "POSIX.1-2001, C99."
365
366 #. type: SH
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "NOTES"
371 msgstr "ПРИМЕЧАНИЯ"
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid ""
377 "The behavior of B<mbstowcs>() depends on the B<LC_CTYPE> category of the "
378 "current locale."
379 msgstr ""
380 "Поведение B<mbstowcs>() зависит от категории B<LC_CTYPE> текущей локали."
381
382 #. type: SH
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "EXAMPLES"
387 msgstr "ПРИМЕРЫ"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "The program below illustrates the use of B<mbstowcs>(), as well as some of "
394 "the wide character classification functions. An example run is the "
395 "following:"
396 msgstr ""
397 "В программе, представленной ниже, показано использование B<mbstowcs>(), а "
398 "также некоторые функции классификации широких символов. Пример запуска:"
399
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 #, fuzzy, no-wrap
404 #| msgid ""
405 #| "Wide character string is: Grüße! (6 characters)\n"
406 #| " G alpha upper\n"
407 #| " r alpha lower\n"
408 #| " ü alpha lower\n"
409 #| " ß alpha lower\n"
410 #| " e alpha lower\n"
411 #| " ! !alpha\n"
412 msgid ""
413 "$ ./t_mbstowcs de_DE.UTF-8 Grüße!\n"
414 "Length of source string (excluding terminator):\n"
415 " 8 bytes\n"
416 " 6 multibyte characters\n"
417 "\\&\n"
418 "Wide character string is: Grüße! (6 characters)\n"
419 " G alpha upper\n"
420 " r alpha lower\n"
421 " ü alpha lower\n"
422 " ß alpha lower\n"
423 " e alpha lower\n"
424 " ! !alpha\n"
425 msgstr ""
426 "Строка широких символов: Grüße! (6 символов)\n"
427 " G буква заглавная\n"
428 " r буква строчная\n"
429 " ü буква строчная\n"
430 " ß буква строчная\n"
431 " e буква строчная\n"
432 " ! !буква\n"
433
434 #. type: SS
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, no-wrap
438 msgid "Program source"
439 msgstr "Исходный код программы"
440
441 #. type: Plain text
442 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
443 #: opensuse-tumbleweed
444 #, no-wrap
445 msgid ""
446 "#include E<lt>locale.hE<gt>\n"
447 "#include E<lt>stdio.hE<gt>\n"
448 "#include E<lt>stdlib.hE<gt>\n"
449 "#include E<lt>string.hE<gt>\n"
450 "#include E<lt>wchar.hE<gt>\n"
451 "#include E<lt>wctype.hE<gt>\n"
452 "\\&\n"
453 "int\n"
454 "main(int argc, char *argv[])\n"
455 "{\n"
456 " size_t mbslen; /* Number of multibyte characters in source */\n"
457 " wchar_t *wcs; /* Pointer to converted wide character string */\n"
458 "\\&\n"
459 " if (argc E<lt> 3) {\n"
460 " fprintf(stderr, \"Usage: %s E<lt>localeE<gt> E<lt>stringE<gt>\\[rs]n\", argv[0]);\n"
461 " exit(EXIT_FAILURE);\n"
462 " }\n"
463 "\\&\n"
464 " /* Apply the specified locale. */\n"
465 "\\&\n"
466 " if (setlocale(LC_ALL, argv[1]) == NULL) {\n"
467 " perror(\"setlocale\");\n"
468 " exit(EXIT_FAILURE);\n"
469 " }\n"
470 "\\&\n"
471 " /* Calculate the length required to hold argv[2] converted to\n"
472 " a wide character string. */\n"
473 "\\&\n"
474 " mbslen = mbstowcs(NULL, argv[2], 0);\n"
475 " if (mbslen == (size_t) -1) {\n"
476 " perror(\"mbstowcs\");\n"
477 " exit(EXIT_FAILURE);\n"
478 " }\n"
479 "\\&\n"
480 " /* Describe the source string to the user. */\n"
481 "\\&\n"
482 " printf(\"Length of source string (excluding terminator):\\[rs]n\");\n"
483 " printf(\" %zu bytes\\[rs]n\", strlen(argv[2]));\n"
484 " printf(\" %zu multibyte characters\\[rs]n\\[rs]n\", mbslen);\n"
485 "\\&\n"
486 " /* Allocate wide character string of the desired size. Add 1\n"
487 " to allow for terminating null wide character (L\\[aq]\\[rs]0\\[aq]). */\n"
488 "\\&\n"
489 " wcs = calloc(mbslen + 1, sizeof(*wcs));\n"
490 " if (wcs == NULL) {\n"
491 " perror(\"calloc\");\n"
492 " exit(EXIT_FAILURE);\n"
493 " }\n"
494 "\\&\n"
495 " /* Convert the multibyte character string in argv[2] to a\n"
496 " wide character string. */\n"
497 "\\&\n"
498 " if (mbstowcs(wcs, argv[2], mbslen + 1) == (size_t) -1) {\n"
499 " perror(\"mbstowcs\");\n"
500 " exit(EXIT_FAILURE);\n"
501 " }\n"
502 "\\&\n"
503 " printf(\"Wide character string is: %ls (%zu characters)\\[rs]n\",\n"
504 " wcs, mbslen);\n"
505 "\\&\n"
506 " /* Now do some inspection of the classes of the characters in\n"
507 " the wide character string. */\n"
508 "\\&\n"
509 " for (wchar_t *wp = wcs; *wp != 0; wp++) {\n"
510 " printf(\" %lc \", (wint_t) *wp);\n"
511 "\\&\n"
512 " if (!iswalpha(*wp))\n"
513 " printf(\"!\");\n"
514 " printf(\"alpha \");\n"
515 "\\&\n"
516 " if (iswalpha(*wp)) {\n"
517 " if (iswupper(*wp))\n"
518 " printf(\"upper \");\n"
519 "\\&\n"
520 " if (iswlower(*wp))\n"
521 " printf(\"lower \");\n"
522 " }\n"
523 "\\&\n"
524 " putchar(\\[aq]\\[rs]n\\[aq]);\n"
525 " }\n"
526 "\\&\n"
527 " exit(EXIT_SUCCESS);\n"
528 "}\n"
529 msgstr ""
530
531 #. SRC END
532 #. type: SH
533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
535 #, no-wrap
536 msgid "SEE ALSO"
537 msgstr "СМОТРИТЕ ТАКЖЕ"
538
539 #. type: Plain text
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 msgid ""
543 "B<mblen>(3), B<mbsrtowcs>(3), B<mbtowc>(3), B<wcstombs>(3), B<wctomb>(3)"
544 msgstr ""
545 "B<mblen>(3), B<mbsrtowcs>(3), B<mbtowc>(3), B<wcstombs>(3), B<wctomb>(3)"
546
547 #. type: TH
548 #: debian-trixie
549 #, no-wrap
550 msgid "2024-06-15"
551 msgstr "15 июня 2024 г."
552
553 #. type: TH
554 #: debian-trixie
555 #, no-wrap
556 msgid "Linux man-pages 6.9.1"
557 msgstr "Страницы руководства Linux 6.9.1"
558
559 #. type: Plain text
560 #: debian-trixie
561 msgid "Standard C library (I<libc>, I<-lc>)"
562 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
563
564 #. type: Plain text
565 #: debian-trixie fedora-44 fedora-rawhide
566 #, fuzzy, no-wrap
567 #| msgid ""
568 #| "B<size_t mbsrtowcs(wchar_t *>I<dest>B<, const char **>I<src>B<,>\n"
569 #| "B< size_t >I<len>B<, mbstate_t *>I<ps>B<);>\n"
570 msgid ""
571 "B<size_t mbstowcs(wchar_t >I<dest>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n"
572 "B< size_t >I<dsize>B<);>\n"
573 msgstr ""
574 "B<size_t mbsrtowcs(wchar_t *>I<dest>B<, const char **>I<src>B<,>\n"
575 "B< size_t >I<len>B<, mbstate_t *>I<ps>B<);>\n"
576
577 #. type: Plain text
578 #: debian-trixie fedora-44 fedora-rawhide
579 #, no-wrap
580 msgid ""
581 "#include E<lt>locale.hE<gt>\n"
582 "#include E<lt>stdio.hE<gt>\n"
583 "#include E<lt>stdlib.hE<gt>\n"
584 "#include E<lt>string.hE<gt>\n"
585 "#include E<lt>wchar.hE<gt>\n"
586 "#include E<lt>wctype.hE<gt>\n"
587 "\\&\n"
588 "int\n"
589 "main(int argc, char *argv[])\n"
590 "{\n"
591 " size_t mbslen; /* Number of multibyte characters in source */\n"
592 " wchar_t *wcs; /* Pointer to converted wide character string */\n"
593 "\\&\n"
594 " if (argc E<lt> 3) {\n"
595 " fprintf(stderr, \"Usage: %s E<lt>localeE<gt> E<lt>stringE<gt>\\[rs]n\", argv[0]);\n"
596 " exit(EXIT_FAILURE);\n"
597 " }\n"
598 "\\&\n"
599 " /* Apply the specified locale. */\n"
600 "\\&\n"
601 " if (setlocale(LC_ALL, argv[1]) == NULL) {\n"
602 " perror(\"setlocale\");\n"
603 " exit(EXIT_FAILURE);\n"
604 " }\n"
605 "\\&\n"
606 " /* Calculate the length required to hold argv[2] converted to\n"
607 " a wide character string. */\n"
608 "\\&\n"
609 " mbslen = mbstowcs(NULL, argv[2], 0);\n"
610 " if (mbslen == (size_t) -1) {\n"
611 " perror(\"mbstowcs\");\n"
612 " exit(EXIT_FAILURE);\n"
613 " }\n"
614 "\\&\n"
615 " /* Describe the source string to the user. */\n"
616 "\\&\n"
617 " printf(\"Length of source string (excluding terminator):\\[rs]n\");\n"
618 " printf(\" %zu bytes\\[rs]n\", strlen(argv[2]));\n"
619 " printf(\" %zu multibyte characters\\[rs]n\\[rs]n\", mbslen);\n"
620 "\\&\n"
621 " /* Allocate wide character string of the desired size. Add 1\n"
622 " to allow for terminating null wide character (L\\[aq]\\[rs]0\\[aq]). */\n"
623 "\\&\n"
624 " wcs = calloc(mbslen + 1, sizeof(*wcs));\n"
625 " if (wcs == NULL) {\n"
626 " perror(\"calloc\");\n"
627 " exit(EXIT_FAILURE);\n"
628 " }\n"
629 "\\&\n"
630 " /* Convert the multibyte character string in argv[2] to a\n"
631 " wide character string. */\n"
632 "\\&\n"
633 " if (mbstowcs(wcs, argv[2], mbslen + 1) == (size_t) -1) {\n"
634 " perror(\"mbstowcs\");\n"
635 " exit(EXIT_FAILURE);\n"
636 " }\n"
637 "\\&\n"
638 " printf(\"Wide character string is: %ls (%zu characters)\\[rs]n\",\n"
639 " wcs, mbslen);\n"
640 "\\&\n"
641 " /* Now do some inspection of the classes of the characters in\n"
642 " the wide character string. */\n"
643 "\\&\n"
644 " for (wchar_t *wp = wcs; *wp != 0; wp++) {\n"
645 " printf(\" %lc \", (wint_t) *wp);\n"
646 "\\&\n"
647 " if (!iswalpha(*wp))\n"
648 " printf(\"!\");\n"
649 " printf(\"alpha \");\n"
650 "\\&\n"
651 " if (iswalpha(*wp)) {\n"
652 " if (iswupper(*wp))\n"
653 " printf(\"upper \");\n"
654 "\\&\n"
655 " if (iswlower(*wp))\n"
656 " printf(\"lower \");\n"
657 " }\n"
658 "\\&\n"
659 " putchar(\\[aq]\\[rs]n\\[aq]);\n"
660 " }\n"
661 "\\&\n"
662 " exit(EXIT_SUCCESS);\n"
663 "}\n"
664 msgstr ""
665
666 #. type: TH
667 #: fedora-44 fedora-rawhide
668 #, no-wrap
669 msgid "2024-07-23"
670 msgstr "23 июля 2024 г."
671
672 #. type: TH
673 #: fedora-44 fedora-rawhide
674 #, no-wrap
675 msgid "Linux man-pages 6.13"
676 msgstr "Страницы руководства Linux 6.13"
677
678 #. type: TH
679 #: mageia-cauldron
680 #, no-wrap
681 msgid "Linux man-pages 6.17"
682 msgstr "Страницы руководства Linux 6.17"
683
684 #. type: TH
685 #: opensuse-leap-16-1 opensuse-tumbleweed
686 #, no-wrap
687 msgid "Linux man-pages (unreleased)"
688 msgstr "Страницы руководства Linux (не выпущены)"