Debian Codegraph @

po/ru/man3/regex.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 # Azamat Hackimov <[email protected]>, 2013-2014, 2016.
6 # Dmitriy S. Seregin <[email protected]>, 2013.
7 # Katrin Kutepova <[email protected]>, 2018.
8 # Lockal <[email protected]>, 2013.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Баринов Владимир, 2016.
11 # Иван Павлов <[email protected]>, 2017,2019.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
17 "Last-Translator: Yuri Kozlov <[email protected]>\n"
18 "Language-Team: Russian <[email protected]>\n"
19 "Language: ru\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
24 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
25 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
26 "X-Generator: Lokalize 2.0\n"
27
28 #. type: TH
29 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
30 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
31 #, no-wrap
32 msgid "regex"
33 msgstr ""
34
35 #. type: TH
36 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
37 #, no-wrap
38 msgid "2026-02-22"
39 msgstr "22 февраля 2026 г."
40
41 #. type: TH
42 #: archlinux debian-unstable
43 #, fuzzy, no-wrap
44 #| msgid "Linux man-pages 6.17"
45 msgid "Linux man-pages 6.18"
46 msgstr "Справочные страницы Linux 6.17"
47
48 #. type: SH
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 #, no-wrap
52 msgid "NAME"
53 msgstr "НАИМЕНОВАНИЕ"
54
55 #. type: Plain text
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 msgid "regcomp, regexec, regerror, regfree - POSIX regex functions"
59 msgstr ""
60 "regcomp, regexec, regerror, regfree - функции регулярных выражений POSIX"
61
62 #. type: SH
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 #, no-wrap
66 msgid "LIBRARY"
67 msgstr "БИБЛИОТЕКА"
68
69 #. type: Plain text
70 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
71 #: opensuse-leap-16-1 opensuse-tumbleweed
72 msgid "Standard C library (I<libc>,\\ I<-lc>)"
73 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
74
75 #. type: SH
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "SYNOPSIS"
80 msgstr "СИНТАКСИС"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid "B<#include E<lt>regex.hE<gt>>"
87 msgid "B<#include E<lt>regex.hE<gt>>\n"
88 msgstr "B<#include E<lt>regex.hE<gt>>"
89
90 #. type: Plain text
91 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
92 #: opensuse-tumbleweed
93 #, fuzzy, no-wrap
94 #| msgid ""
95 #| "B<int regexec(const regex_t *>I<preg>B<, const char *>I<string>B<, size_t >I<nmatch>B<,>\n"
96 #| "B< regmatch_t >I<pmatch[]>B<, int >I<eflags>B<);>\n"
97 msgid ""
98 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
99 "B< int >I<cflags>B<);>\n"
100 "B<int regexec(const regex_t *restrict >I<preg>B<,>\n"
101 "B< const char *restrict >I<string>B<,>\n"
102 "B< size_t >I<n>B<, regmatch_t >I<pmatch>B<[_Nullable restrict >I<n>B<],>\n"
103 "B< int >I<eflags>B<);>\n"
104 msgstr ""
105 "B<int regexec(const regex_t *>I<preg>B<, const char *>I<string>B<, size_t >I<nmatch>B<,>\n"
106 "B< regmatch_t >I<pmatch[]>B<, int >I<eflags>B<);>\n"
107
108 #. type: Plain text
109 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
110 #: opensuse-tumbleweed
111 #, fuzzy, no-wrap
112 #| msgid ""
113 #| "B<size_t regerror(int >I<errcode>B<, const regex_t *>I<preg>B<, char *>I<errbuf>B<,>\n"
114 #| "B< size_t >I<errbuf_size>B<);>\n"
115 msgid ""
116 "B<size_t regerror(>size_t errbuf_size;\n"
117 "B< int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<,>\n"
118 "B< char >I<errbuf>B<[_Nullable restrict >I<errbuf_size>B<],>\n"
119 "B< size_t >I<errbuf_size>B<);>\n"
120 "B<void regfree(regex_t *>I<preg>B<);>\n"
121 msgstr ""
122 "B<size_t regerror(int >I<errcode>B<, const regex_t *>I<preg>B<, char *>I<errbuf>B<,>\n"
123 "B< size_t >I<errbuf_size>B<);>\n"
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid ""
130 "B<typedef struct {>\n"
131 "B<size_t re_nsub;>\n"
132 "B<} regex_t;>\n"
133 msgstr ""
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, fuzzy, no-wrap
139 #| msgid ""
140 #| "typedef struct {\n"
141 #| " regoff_t rm_so;\n"
142 #| " regoff_t rm_eo;\n"
143 #| "} regmatch_t;\n"
144 msgid ""
145 "B<typedef struct {>\n"
146 "B<regoff_t rm_so;>\n"
147 "B<regoff_t rm_eo;>\n"
148 "B<} regmatch_t;>\n"
149 msgstr ""
150 "typedef struct {\n"
151 " regoff_t rm_so;\n"
152 " regoff_t rm_eo;\n"
153 "} regmatch_t;\n"
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, no-wrap
159 msgid "B<typedef> /* ... */ B<regoff_t;>\n"
160 msgstr ""
161
162 #. type: SH
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "DESCRIPTION"
167 msgstr "ОПИСАНИЕ"
168
169 #. type: SS
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, fuzzy, no-wrap
173 #| msgid "Limitations"
174 msgid "Compilation"
175 msgstr "Ограничения"
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 msgid ""
181 "B<regcomp>() is used to compile a regular expression into a form that is "
182 "suitable for subsequent B<regexec>() searches."
183 msgstr ""
184 "Функция B<regcomp>() используется для компиляции регулярного выражения в "
185 "формат, который подходит для последующих поисков с помощью B<regexec>()."
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 msgid ""
191 "On success, the pattern buffer at I<*preg> is initialized. I<regex> is a "
192 "null-terminated string. The locale must be the same when running "
193 "B<regexec>()."
194 msgstr ""
195
196 #. type: Plain text
197 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
198 #: opensuse-tumbleweed
199 msgid ""
200 "After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of "
201 "subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 "
202 "passed as I<n> to B<regexec>() is sufficient to capture all matches."
203 msgstr ""
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, fuzzy
209 #| msgid "I<cflags> may be the bitwise-B<or> of zero or more of the following:"
210 msgid "I<cflags> is the bitwise OR of zero or more of the following:"
211 msgstr ""
212 "Значение I<cflags> может состоять из поразрядного B<or> нуля или нескольких "
213 "следующих значений:"
214
215 #. type: TP
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "B<REG_EXTENDED>"
220 msgstr "B<REG_EXTENDED>"
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, fuzzy
226 #| msgid ""
227 #| "Use B<POSIX> Extended Regular Expression syntax when interpreting "
228 #| "I<regex>. If not set, B<POSIX> Basic Regular Expression syntax is used."
229 msgid ""
230 "Use POSIX Extended Regular Expression syntax when interpreting I<regex>. If "
231 "not set, POSIX Basic Regular Expression syntax is used."
232 msgstr ""
233 "Использовать синтаксис расширенных регулярных выражений POSIX во время "
234 "интерпретации I<regex>. Если не включён этот флаг, то используется синтаксис "
235 "простых регулярных выражений POSIX."
236
237 #. type: TP
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 #, no-wrap
241 msgid "B<REG_ICASE>"
242 msgstr "B<REG_ICASE>"
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 msgid ""
248 "Do not differentiate case. Subsequent B<regexec>() searches using this "
249 "pattern buffer will be case insensitive."
250 msgstr ""
251 "Не учитывать регистр. Последующие поиски B<regexec>() с использованием "
252 "данного буферного шаблона не будут зависеть от регистра."
253
254 #. type: TP
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "B<REG_NOSUB>"
259 msgstr "B<REG_NOSUB>"
260
261 #. type: Plain text
262 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
263 #: opensuse-tumbleweed
264 msgid ""
265 "Report only overall success. B<regexec>() will use only I<pmatch> for "
266 "B<REG_STARTEND>, ignoring I<n>."
267 msgstr ""
268
269 #. type: TP
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "B<REG_NEWLINE>"
274 msgstr "B<REG_NEWLINE>"
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid "Match-any-character operators don't match a newline."
280 msgstr ""
281 "Операторы совпадения с любым символом не совпадают с символом новой строки."
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, fuzzy
287 #| msgid ""
288 #| "A nonmatching list (B<[^...]>) not containing a newline does not match a "
289 #| "newline."
290 msgid ""
291 "A nonmatching list (B<[\\[ha]...\\&]>) not containing a newline does not "
292 "match a newline."
293 msgstr ""
294 "Список несовпадающих символов (B<[^...]>) без символа новой строки не "
295 "совпадает с новой строкой."
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, fuzzy
301 #| msgid ""
302 #| "Match-beginning-of-line operator (B<^>) matches the empty string "
303 #| "immediately after a newline, regardless of whether I<eflags>, the "
304 #| "execution flags of B<regexec>(), contains B<REG_NOTBOL>."
305 msgid ""
306 "Match-beginning-of-line operator (B<\\[ha]>) matches the empty string "
307 "immediately after a newline, regardless of whether I<eflags>, the execution "
308 "flags of B<regexec>(), contains B<REG_NOTBOL>."
309 msgstr ""
310 "Оператор сравнения по началу строки (B<^>) совпадает с пустой строкой сразу "
311 "после новой строки независимо от того, что I<eflags>, флаги выполнения "
312 "B<regexec>(), содержат B<REG_NOTBOL>."
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid ""
318 "Match-end-of-line operator (B<$>) matches the empty string immediately "
319 "before a newline, regardless of whether I<eflags> contains B<REG_NOTEOL>."
320 msgstr ""
321 "Оператор сравнения по концу строки ($) совпадает с пустой строкой до символа "
322 "начала строки независимо от того, что I<eflags> содержит B<REG_NOTEOL>."
323
324 #. type: SS
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, fuzzy, no-wrap
328 #| msgid "Searching"
329 msgid "Matching"
330 msgstr "Поиск"
331
332 #. type: Plain text
333 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
334 #: opensuse-leap-16-1 opensuse-tumbleweed
335 #, fuzzy
336 #| msgid ""
337 #| "B<regexec>() is used to match a null-terminated string against the "
338 #| "precompiled pattern buffer, I<preg>. I<nmatch> and I<pmatch> are used to "
339 #| "provide information regarding the location of any matches. I<eflags> may "
340 #| "be the bitwise-B<or> of one or both of B<REG_NOTBOL> and B<REG_NOTEOL> "
341 #| "which cause changes in matching behavior described below."
342 msgid ""
343 "B<regexec>() is used to match a null-terminated string against the compiled "
344 "pattern buffer in I<*preg>, which must have been initialised with "
345 "B<regcomp>(). I<eflags> is the bitwise OR of zero or more of the following "
346 "flags:"
347 msgstr ""
348 "Функция B<regexec>() используется для сравнения строки, завершающейся null, "
349 "с предварительно обработанным буферным шаблоном I<preg>. Аргументы I<nmatch> "
350 "и I<pmatch> используются для предоставления информации о местонахождении "
351 "любых совпадений. Значение I<eflags> может быть поразрядным B<ИЛИ> одного "
352 "или обоих значений B<REG_NOTBOL> и B<REG_NOTEOL>. Данные значения определяют "
353 "поведение процесса сравнения так, как описано ниже."
354
355 #. type: TP
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "B<REG_NOTBOL>"
360 msgstr "B<REG_NOTBOL>"
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "The match-beginning-of-line operator always fails to match (but see the "
367 "compilation flag B<REG_NEWLINE> above). This flag may be used when "
368 "different portions of a string are passed to B<regexec>() and the beginning "
369 "of the string should not be interpreted as the beginning of the line."
370 msgstr ""
371 "Оператор сравнения по началу строки всегда завершается с ошибкой (но "
372 "смотрите описанный выше флаг компиляции B<REG_NEWLINE>). Этот флаг может "
373 "использоваться, когда в B<regexec>() передаются отдельные части строки, и "
374 "начало такой строки в данном случае не должно интерпретироваться как начало "
375 "новой строки."
376
377 #. type: TP
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "B<REG_NOTEOL>"
382 msgstr "B<REG_NOTEOL>"
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid ""
388 "The match-end-of-line operator always fails to match (but see the "
389 "compilation flag B<REG_NEWLINE> above)."
390 msgstr ""
391 "Оператор сравнения по концу строки всегда завершается с ошибкой (но смотрите "
392 "описанный выше флаг компиляции B<REG_NEWLINE>)."
393
394 #. type: TP
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "B<REG_STARTEND>"
399 msgstr "B<REG_STARTEND>"
400
401 #. type: Plain text
402 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
403 msgid ""
404 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
405 "[I<string>,\\ I<strnul(string)>). This allows matching embedded NUL bytes. "
406 "If any matches are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the "
407 "match succeeded, and I<n> E<gt> 0), they overwrite I<pmatch> as usual, and "
408 "the match offsets remain relative to I<string> (not I<string + "
409 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
410 msgstr ""
411
412 #. type: SS
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, fuzzy, no-wrap
416 #| msgid "Byte offsets"
417 msgid "Match offsets"
418 msgstr "Байтовые смещения"
419
420 #. type: Plain text
421 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
422 #: opensuse-tumbleweed
423 msgid ""
424 "Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the "
425 "locations of matches within I<string>: B<regexec>() fills I<n> elements of "
426 "I<pmatch> with results: I<pmatch[0]> corresponds to the entire match, "
427 "I<pmatch[1]> to the first subexpression, etc. If there were more matches "
428 "than I<n>, they are discarded; if fewer, unused elements of I<pmatch> are "
429 "filled with B<-1>s."
430 msgstr ""
431
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 msgid ""
436 "Each returned valid (non-B<-1>) match corresponds to the range [I<string + "
437 "rm_so>,I< string + rm_eo>)."
438 msgstr ""
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 msgid ""
444 "I<regoff_t> is a signed integer type capable of storing the largest value "
445 "that can be stored in either an I<ptrdiff_t> type or a I<ssize_t> type."
446 msgstr ""
447
448 #. type: SS
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 #, fuzzy, no-wrap
452 #| msgid "POSIX error reporting"
453 msgid "Error reporting"
454 msgstr "Сообщение об ошибках POSIX"
455
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid ""
460 "B<regerror>() is used to turn the error codes that can be returned by both "
461 "B<regcomp>() and B<regexec>() into error message strings."
462 msgstr ""
463 "Функция B<regerror> используется для преобразования кодов ошибок, которые "
464 "могут быть получены от B<regcomp>() и B<regexec>(), в строки сообщений об "
465 "ошибках."
466
467 #. type: Plain text
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 msgid ""
471 "If I<preg> isn't a null pointer, I<errcode> must be the latest error "
472 "returned from an operation on I<preg>."
473 msgstr ""
474
475 #. type: Plain text
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 msgid ""
479 "If I<errbuf_size> isn't 0, up to I<errbuf_size> bytes are copied to "
480 "I<errbuf>; the error string is always null-terminated, and truncated to fit."
481 msgstr ""
482
483 #. type: SS
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 #, no-wrap
487 msgid "Freeing"
488 msgstr ""
489
490 #. type: Plain text
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 msgid ""
494 "B<regfree>() deinitializes the pattern buffer at I<*preg>, freeing any "
495 "associated memory; I<*preg> must have been initialized via B<regcomp>()."
496 msgstr ""
497
498 #. type: SH
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 #, no-wrap
502 msgid "RETURN VALUE"
503 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
504
505 #. type: Plain text
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 msgid ""
509 "B<regcomp>() returns zero for a successful compilation or an error code for "
510 "failure."
511 msgstr ""
512 "Функция B<regcomp>() возвращает ноль при успешной компиляции или в противном "
513 "случае код ошибки."
514
515 #. type: Plain text
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 msgid ""
519 "B<regexec>() returns zero for a successful match or B<REG_NOMATCH> for "
520 "failure."
521 msgstr ""
522 "Функция B<regexec>() возвращает ноль при совпадении или B<REG_NOMATCH>, если "
523 "совпадений не было."
524
525 #. type: Plain text
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 msgid ""
529 "B<regerror>() returns the size of the buffer required to hold the string."
530 msgstr ""
531
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 "ERRORS"
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 "The following errors can be returned by B<regcomp>():"
543 msgstr "Функция B<regcomp>() может возвращать следующие ошибки:"
544
545 #. type: TP
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 #, no-wrap
549 msgid "B<REG_BADBR>"
550 msgstr "B<REG_BADBR>"
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid "Invalid use of back reference operator."
556 msgstr "Неправильное использование оператора обратных ссылок."
557
558 #. type: TP
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 #, no-wrap
562 msgid "B<REG_BADPAT>"
563 msgstr "B<REG_BADPAT>"
564
565 #. type: Plain text
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 msgid "Invalid use of pattern operators such as group or list."
569 msgstr ""
570 "Неправильное использование операторов шаблона, таких, как операторы группы "
571 "или списка."
572
573 #. type: TP
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 #, no-wrap
577 msgid "B<REG_BADRPT>"
578 msgstr "B<REG_BADRPT>"
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 #, fuzzy
584 #| msgid ""
585 #| "Invalid use of repetition operators such as using \\(aq*\\(aq as the "
586 #| "first character."
587 msgid ""
588 "Invalid use of repetition operators such as using \\[aq]*\\[aq] as the first "
589 "character."
590 msgstr ""
591 "Неправильное использование операторов повторения, например, использование "
592 "«*» в качестве первого символа."
593
594 #. type: TP
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 #, no-wrap
598 msgid "B<REG_EBRACE>"
599 msgstr "B<REG_EBRACE>"
600
601 #. type: Plain text
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 msgid "Un-matched brace interval operators."
605 msgstr "Непарные скобки в операторах интервала."
606
607 #. type: TP
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 #, no-wrap
611 msgid "B<REG_EBRACK>"
612 msgstr "B<REG_EBRACK>"
613
614 #. type: Plain text
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 msgid "Un-matched bracket list operators."
618 msgstr "Непарные квадратные скобки в операторах списка."
619
620 #. type: TP
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 #, no-wrap
624 msgid "B<REG_ECOLLATE>"
625 msgstr "B<REG_ECOLLATE>"
626
627 #. type: Plain text
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 msgid "Invalid collating element."
631 msgstr "Неправильный элемент сортировки."
632
633 #. type: TP
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 #, no-wrap
637 msgid "B<REG_ECTYPE>"
638 msgstr "B<REG_ECTYPE>"
639
640 #. type: Plain text
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 msgid "Unknown character class name."
644 msgstr "Неизвестное имя класса символов."
645
646 #. type: TP
647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
649 #, no-wrap
650 msgid "B<REG_EEND>"
651 msgstr "B<REG_EEND>"
652
653 #. type: Plain text
654 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
655 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
656 #, fuzzy
657 #| msgid "Nonspecific error. This is not defined by POSIX.2."
658 msgid "Nonspecific error. This is not defined by POSIX."
659 msgstr "Потенциальная ошибка. Не определена в POSIX.2."
660
661 #. type: TP
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 #, no-wrap
665 msgid "B<REG_EESCAPE>"
666 msgstr "B<REG_EESCAPE>"
667
668 #. type: Plain text
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 msgid "Trailing backslash."
672 msgstr "Конечная обратная косая черта."
673
674 #. type: TP
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid "B<REG_EPAREN>"
679 msgstr "B<REG_EPAREN>"
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 msgid "Un-matched parenthesis group operators."
685 msgstr "Непарные круглые скобки в операторах группировки."
686
687 #. type: TP
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 #, no-wrap
691 msgid "B<REG_ERANGE>"
692 msgstr "B<REG_ERANGE>"
693
694 #. type: Plain text
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 msgid ""
698 "Invalid use of the range operator; for example, the ending point of the "
699 "range occurs prior to the starting point."
700 msgstr ""
701 "Неправильное использование оператора области: например, конец области "
702 "появляется прежде её начала."
703
704 #. type: TP
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 #, no-wrap
708 msgid "B<REG_ESIZE>"
709 msgstr "B<REG_ESIZE>"
710
711 #. type: Plain text
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 #, fuzzy
715 #| msgid ""
716 #| "Compiled regular expression requires a pattern buffer larger than 64\\ "
717 #| "kB. This is not defined by POSIX.2."
718 msgid ""
719 "Compiled regular expression requires a pattern buffer larger than 64\\ kB. "
720 "This is not defined by POSIX."
721 msgstr ""
722 "Скомпилированное регулярное выражение требует буферный шаблон размером, "
723 "большим 64\\ Кб. Это не определено в POSIX.2."
724
725 #. type: TP
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 #, no-wrap
729 msgid "B<REG_ESPACE>"
730 msgstr "B<REG_ESPACE>"
731
732 #. type: Plain text
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 msgid "The regex routines ran out of memory."
736 msgstr "Для процедур регулярных выражений закончилась память."
737
738 #. type: TP
739 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
740 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
741 #, no-wrap
742 msgid "B<REG_ESUBREG>"
743 msgstr "B<REG_ESUBREG>"
744
745 #. type: Plain text
746 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
747 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
748 msgid "Invalid back reference to a subexpression."
749 msgstr "Неправильная обратная ссылка на подвыражение."
750
751 #. type: SH
752 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
753 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
754 #, no-wrap
755 msgid "ATTRIBUTES"
756 msgstr "АТРИБУТЫ"
757
758 #. type: Plain text
759 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
760 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
761 msgid ""
762 "For an explanation of the terms used in this section, see B<attributes>(7)."
763 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
764
765 #. type: tbl table
766 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
767 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
768 #, no-wrap
769 msgid "Interface"
770 msgstr "Интерфейс"
771
772 #. type: tbl table
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 #, no-wrap
776 msgid "Attribute"
777 msgstr "Атрибут"
778
779 #. type: tbl table
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 #, no-wrap
783 msgid "Value"
784 msgstr "Значение"
785
786 #. type: tbl table
787 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
788 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
789 #, no-wrap
790 msgid ".na\n"
791 msgstr ".na\n"
792
793 #. type: tbl table
794 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
795 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
796 #, no-wrap
797 msgid ".nh\n"
798 msgstr ".nh\n"
799
800 #. type: tbl table
801 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
802 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
803 #, no-wrap
804 msgid ""
805 "B<regcomp>(),\n"
806 "B<regexec>()"
807 msgstr ""
808 "B<regcomp>(),\n"
809 "B<regexec>()"
810
811 #. type: tbl table
812 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
813 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
814 #, no-wrap
815 msgid "Thread safety"
816 msgstr "Безвредность в нитях"
817
818 #. type: tbl table
819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
821 #, no-wrap
822 msgid "MT-Safe locale"
823 msgstr "MT-Safe locale"
824
825 #. type: tbl table
826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
828 #, no-wrap
829 msgid "B<regerror>()"
830 msgstr "B<regerror>()"
831
832 #. type: tbl table
833 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
834 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
835 #, no-wrap
836 msgid "MT-Safe env"
837 msgstr "MT-Safe env"
838
839 #. type: tbl table
840 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
841 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
842 #, no-wrap
843 msgid "B<regfree>()"
844 msgstr "B<regfree>()"
845
846 #. type: tbl table
847 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
848 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
849 #, no-wrap
850 msgid "MT-Safe"
851 msgstr "MT-Safe"
852
853 #. type: SH
854 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
855 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
856 #, no-wrap
857 msgid "STANDARDS"
858 msgstr "СТАНДАРТЫ"
859
860 #. type: Plain text
861 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
862 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
863 msgid "POSIX.1-2008."
864 msgstr "POSIX.1-2008."
865
866 #. type: SH
867 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
868 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
869 #, no-wrap
870 msgid "HISTORY"
871 msgstr "ИСТОРИЯ"
872
873 #. type: Plain text
874 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
875 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
876 msgid "POSIX.1-2001."
877 msgstr "POSIX.1-2001."
878
879 #. type: Plain text
880 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
881 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
882 msgid ""
883 "Prior to POSIX.1-2008, I<regoff_t> was required to be capable of storing the "
884 "largest value that can be stored in either an I<off_t> type or a I<ssize_t> "
885 "type."
886 msgstr ""
887
888 #. type: SH
889 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
890 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
891 #, no-wrap
892 msgid "CAVEATS"
893 msgstr ""
894
895 #. glibc, musl, 4.4BSD, illumos
896 #. type: Plain text
897 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
898 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
899 msgid ""
900 "I<re_nsub> is only required to be initialized if B<REG_NOSUB> wasn't "
901 "specified, but all known implementations initialize it regardless."
902 msgstr ""
903
904 #. illumos has two more start/end pairs and the first one is of pointers
905 #. type: Plain text
906 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
907 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
908 msgid ""
909 "Both I<regex_t> and I<regmatch_t> may (and do) have more members, in any "
910 "order. Always reference them by name."
911 msgstr ""
912
913 #. type: SH
914 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
915 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
916 #, no-wrap
917 msgid "EXAMPLES"
918 msgstr "ПРИМЕРЫ"
919
920 #. type: Plain text
921 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
922 #: opensuse-tumbleweed
923 #, no-wrap
924 msgid ""
925 "#include E<lt>stdcountof.hE<gt>\n"
926 "#include E<lt>stdint.hE<gt>\n"
927 "#include E<lt>stdio.hE<gt>\n"
928 "#include E<lt>stdlib.hE<gt>\n"
929 "#include E<lt>regex.hE<gt>\n"
930 "\\&\n"
931 "static const char *const str =\n"
932 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
933 "static const char *const re = \"John.*o\";\n"
934 "\\&\n"
935 "int main(void)\n"
936 "{\n"
937 " static const char *s = str;\n"
938 " regex_t regex;\n"
939 " regmatch_t pmatch[1];\n"
940 " regoff_t off, len;\n"
941 "\\&\n"
942 " if (regcomp(&regex, re, REG_NEWLINE))\n"
943 " exit(EXIT_FAILURE);\n"
944 "\\&\n"
945 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
946 " printf(\"Matches:\\[rs]n\");\n"
947 "\\&\n"
948 " for (unsigned int i = 0; ; i++) {\n"
949 " if (regexec(&regex, s, countof(pmatch), pmatch, 0))\n"
950 " break;\n"
951 "\\&\n"
952 " off = pmatch[0].rm_so + (s - str);\n"
953 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
954 " printf(\"#%u:\\[rs]n\", i);\n"
955 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
956 " (intmax_t) len);\n"
957 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
958 "\\&\n"
959 " s += pmatch[0].rm_eo;\n"
960 " }\n"
961 "\\&\n"
962 " exit(EXIT_SUCCESS);\n"
963 "}\n"
964 msgstr ""
965
966 #. type: SH
967 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
968 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
969 #, no-wrap
970 msgid "SEE ALSO"
971 msgstr "СМОТРИТЕ ТАКЖЕ"
972
973 #. type: Plain text
974 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
975 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
976 msgid "B<grep>(1), B<regex>(7)"
977 msgstr "B<grep>(1), B<regex>(7)"
978
979 #. type: Plain text
980 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
981 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
982 msgid "The glibc manual section, I<Regular Expressions>"
983 msgstr "Раздел руководства glibc I<Regular Expressions>"
984
985 #. type: TH
986 #: debian-trixie
987 #, no-wrap
988 msgid "2024-06-15"
989 msgstr "15 июня 2024 г."
990
991 #. type: TH
992 #: debian-trixie
993 #, no-wrap
994 msgid "Linux man-pages 6.9.1"
995 msgstr "Страницы руководства Linux 6.9.1"
996
997 #. type: Plain text
998 #: debian-trixie
999 msgid "Standard C library (I<libc>, I<-lc>)"
1000 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1001
1002 #. type: Plain text
1003 #: debian-trixie fedora-44 fedora-rawhide
1004 #, fuzzy, no-wrap
1005 #| msgid ""
1006 #| "B<int regexec(const regex_t *>I<preg>B<, const char *>I<string>B<, size_t >I<nmatch>B<,>\n"
1007 #| "B< regmatch_t >I<pmatch[]>B<, int >I<eflags>B<);>\n"
1008 msgid ""
1009 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
1010 "B< int >I<cflags>B<);>\n"
1011 "B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<string>B<,>\n"
1012 "B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[_Nullable restrict .>I<nmatch>B<],>\n"
1013 "B< int >I<eflags>B<);>\n"
1014 msgstr ""
1015 "B<int regexec(const regex_t *>I<preg>B<, const char *>I<string>B<, size_t >I<nmatch>B<,>\n"
1016 "B< regmatch_t >I<pmatch[]>B<, int >I<eflags>B<);>\n"
1017
1018 #. type: Plain text
1019 #: debian-trixie fedora-44 fedora-rawhide
1020 #, fuzzy, no-wrap
1021 #| msgid ""
1022 #| "B<size_t regerror(int >I<errcode>B<, const regex_t *>I<preg>B<, char *>I<errbuf>B<,>\n"
1023 #| "B< size_t >I<errbuf_size>B<);>\n"
1024 msgid ""
1025 "B<size_t regerror(int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<,>\n"
1026 "B< char >I<errbuf>B<[_Nullable restrict .>I<errbuf_size>B<],>\n"
1027 "B< size_t >I<errbuf_size>B<);>\n"
1028 "B<void regfree(regex_t *>I<preg>B<);>\n"
1029 msgstr ""
1030 "B<size_t regerror(int >I<errcode>B<, const regex_t *>I<preg>B<, char *>I<errbuf>B<,>\n"
1031 "B< size_t >I<errbuf_size>B<);>\n"
1032
1033 #. type: Plain text
1034 #: debian-trixie fedora-44 fedora-rawhide
1035 msgid ""
1036 "After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of "
1037 "subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 "
1038 "passed as I<nmatch> to B<regexec>() is sufficient to capture all matches."
1039 msgstr ""
1040
1041 #. type: Plain text
1042 #: debian-trixie fedora-44 fedora-rawhide
1043 msgid ""
1044 "Report only overall success. B<regexec>() will use only I<pmatch> for "
1045 "B<REG_STARTEND>, ignoring I<nmatch>."
1046 msgstr ""
1047
1048 #. type: Plain text
1049 #: debian-trixie
1050 #, fuzzy
1051 #| msgid ""
1052 #| "B<regexec>() is used to match a null-terminated string against the "
1053 #| "precompiled pattern buffer, I<preg>. I<nmatch> and I<pmatch> are used to "
1054 #| "provide information regarding the location of any matches. I<eflags> may "
1055 #| "be the bitwise-B<or> of one or both of B<REG_NOTBOL> and B<REG_NOTEOL> "
1056 #| "which cause changes in matching behavior described below."
1057 msgid ""
1058 "B<regexec>() is used to match a null-terminated string against the compiled "
1059 "pattern buffer in I<*preg>, which must have been initialised with "
1060 "B<regexec>(). I<eflags> is the bitwise OR of zero or more of the following "
1061 "flags:"
1062 msgstr ""
1063 "Функция B<regexec>() используется для сравнения строки, завершающейся null, "
1064 "с предварительно обработанным буферным шаблоном I<preg>. Аргументы I<nmatch> "
1065 "и I<pmatch> используются для предоставления информации о местонахождении "
1066 "любых совпадений. Значение I<eflags> может быть поразрядным B<ИЛИ> одного "
1067 "или обоих значений B<REG_NOTBOL> и B<REG_NOTEOL>. Данные значения определяют "
1068 "поведение процесса сравнения так, как описано ниже."
1069
1070 #. type: Plain text
1071 #: debian-trixie fedora-44 fedora-rawhide
1072 msgid ""
1073 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
1074 "[I<string>,I< string + strlen(string)>). This allows matching embedded NUL "
1075 "bytes and avoids a B<strlen>(3) on known-length strings. If any matches "
1076 "are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match "
1077 "succeeded, and I<nmatch> E<gt> 0), they overwrite I<pmatch> as usual, and "
1078 "the match offsets remain relative to I<string> (not I<string + "
1079 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
1080 msgstr ""
1081
1082 #. type: Plain text
1083 #: debian-trixie fedora-44 fedora-rawhide
1084 msgid ""
1085 "Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the "
1086 "locations of matches within I<string>: B<regexec>() fills I<nmatch> "
1087 "elements of I<pmatch> with results: I<pmatch[0]> corresponds to the entire "
1088 "match, I<pmatch[1]> to the first subexpression, etc. If there were more "
1089 "matches than I<nmatch>, they are discarded; if fewer, unused elements of "
1090 "I<pmatch> are filled with B<-1>s."
1091 msgstr ""
1092
1093 #. type: Plain text
1094 #: debian-trixie
1095 #, no-wrap
1096 msgid ""
1097 "#include E<lt>stdint.hE<gt>\n"
1098 "#include E<lt>stdio.hE<gt>\n"
1099 "#include E<lt>stdlib.hE<gt>\n"
1100 "#include E<lt>regex.hE<gt>\n"
1101 "\\&\n"
1102 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1103 "\\&\n"
1104 "static const char *const str =\n"
1105 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
1106 "static const char *const re = \"John.*o\";\n"
1107 "\\&\n"
1108 "int main(void)\n"
1109 "{\n"
1110 " static const char *s = str;\n"
1111 " regex_t regex;\n"
1112 " regmatch_t pmatch[1];\n"
1113 " regoff_t off, len;\n"
1114 "\\&\n"
1115 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1116 " exit(EXIT_FAILURE);\n"
1117 "\\&\n"
1118 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1119 " printf(\"Matches:\\[rs]n\");\n"
1120 "\\&\n"
1121 " for (unsigned int i = 0; ; i++) {\n"
1122 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1123 " break;\n"
1124 "\\&\n"
1125 " off = pmatch[0].rm_so + (s - str);\n"
1126 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1127 " printf(\"#%zu:\\[rs]n\", i);\n"
1128 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1129 " (intmax_t) len);\n"
1130 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
1131 "\\&\n"
1132 " s += pmatch[0].rm_eo;\n"
1133 " }\n"
1134 "\\&\n"
1135 " exit(EXIT_SUCCESS);\n"
1136 "}\n"
1137 msgstr ""
1138
1139 #. type: TH
1140 #: fedora-44 fedora-rawhide
1141 #, no-wrap
1142 msgid "2025-02-10"
1143 msgstr "10 февраля 2025 г."
1144
1145 #. type: TH
1146 #: fedora-44 fedora-rawhide
1147 #, no-wrap
1148 msgid "Linux man-pages 6.13"
1149 msgstr "Страницы руководства Linux 6.13"
1150
1151 #. type: Plain text
1152 #: fedora-44 fedora-rawhide
1153 #, no-wrap
1154 msgid ""
1155 "#include E<lt>stdint.hE<gt>\n"
1156 "#include E<lt>stdio.hE<gt>\n"
1157 "#include E<lt>stdlib.hE<gt>\n"
1158 "#include E<lt>regex.hE<gt>\n"
1159 "\\&\n"
1160 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1161 "\\&\n"
1162 "static const char *const str =\n"
1163 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
1164 "static const char *const re = \"John.*o\";\n"
1165 "\\&\n"
1166 "int main(void)\n"
1167 "{\n"
1168 " static const char *s = str;\n"
1169 " regex_t regex;\n"
1170 " regmatch_t pmatch[1];\n"
1171 " regoff_t off, len;\n"
1172 "\\&\n"
1173 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1174 " exit(EXIT_FAILURE);\n"
1175 "\\&\n"
1176 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1177 " printf(\"Matches:\\[rs]n\");\n"
1178 "\\&\n"
1179 " for (unsigned int i = 0; ; i++) {\n"
1180 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1181 " break;\n"
1182 "\\&\n"
1183 " off = pmatch[0].rm_so + (s - str);\n"
1184 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1185 " printf(\"#%u:\\[rs]n\", i);\n"
1186 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1187 " (intmax_t) len);\n"
1188 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
1189 "\\&\n"
1190 " s += pmatch[0].rm_eo;\n"
1191 " }\n"
1192 "\\&\n"
1193 " exit(EXIT_SUCCESS);\n"
1194 "}\n"
1195 msgstr ""
1196
1197 #. type: TH
1198 #: mageia-cauldron
1199 #, no-wrap
1200 msgid "2026-02-10"
1201 msgstr "10 февраля 2026 г."
1202
1203 #. type: TH
1204 #: mageia-cauldron
1205 #, no-wrap
1206 msgid "Linux man-pages 6.17"
1207 msgstr "Страницы руководства Linux 6.17"
1208
1209 #. type: Plain text
1210 #: mageia-cauldron
1211 msgid ""
1212 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
1213 "[I<string>,I< string + strlen(string)>). This allows matching embedded NUL "
1214 "bytes and avoids a B<strlen>(3) on known-length strings. If any matches "
1215 "are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match "
1216 "succeeded, and I<n> E<gt> 0), they overwrite I<pmatch> as usual, and the "
1217 "match offsets remain relative to I<string> (not I<string + "
1218 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
1219 msgstr ""
1220
1221 #. type: TH
1222 #: opensuse-leap-16-1 opensuse-tumbleweed
1223 #, no-wrap
1224 msgid "Linux man-pages (unreleased)"
1225 msgstr "Страницы руководства Linux (не выпущены)"