Debian Codegraph @

po/pt_BR/man3/regex.3.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Rubens de Jesus Nogueira <[email protected]>, 2000.
5 # André Luiz Fassone <[email protected]>, 2000.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
10 "PO-Revision-Date: 2000-05-31 17:26+0200\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "regex"
26 msgstr "regex"
27
28 #. type: TH
29 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-22"
32 msgstr "22 fevereiro 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, fuzzy, no-wrap
37 #| msgid "Linux man-pages 6.17"
38 msgid "Linux man-pages 6.18"
39 msgstr "Linux man-pages 6.17"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NOME"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "regcomp, regexec, regerror, regfree - POSIX regex functions"
52 msgstr "regcomp, regexec, regerror, regfree - funções do regex POSIX"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "BIBLIOTECA"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "SINOPSE"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, fuzzy, no-wrap
78 #| msgid "B<#include E<lt>dirent.hE<gt>>\n"
79 msgid "B<#include E<lt>regex.hE<gt>>\n"
80 msgstr "B<#include E<lt>dirent.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid ""
87 #| "B<int regexec(const regex_t *>I<preg>B<, const char *>I<string>B<, size_t >I<nmatch>B<,>\n"
88 #| "B< regmatch_t >I<pmatch[]>B<, int >I<eflags>B<);>\n"
89 msgid ""
90 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
91 "B< int >I<cflags>B<);>\n"
92 "B<int regexec(const regex_t *restrict >I<preg>B<,>\n"
93 "B< const char *restrict >I<string>B<,>\n"
94 "B< size_t >I<n>B<, regmatch_t >I<pmatch>B<[_Nullable restrict >I<n>B<],>\n"
95 "B< int >I<eflags>B<);>\n"
96 msgstr ""
97 "B<int regexec(const regex_t *>I<preg>B<, const char *>I<string>B<, size_t >I<nmatch>B<,>\n"
98 "B< regmatch_t >I<pmatch[]>B<, int >I<eflags>B<);>\n"
99
100 #. type: Plain text
101 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
102 #: opensuse-tumbleweed
103 #, fuzzy, no-wrap
104 #| msgid ""
105 #| "B<size_t regerror(int >I<errcode>B<, const regex_t *>I<preg>B<, char *>I<errbuf>B<,>\n"
106 #| "B< size_t >I<errbuf_size>B<);>\n"
107 msgid ""
108 "B<size_t regerror(>size_t errbuf_size;\n"
109 "B< int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<,>\n"
110 "B< char >I<errbuf>B<[_Nullable restrict >I<errbuf_size>B<],>\n"
111 "B< size_t >I<errbuf_size>B<);>\n"
112 "B<void regfree(regex_t *>I<preg>B<);>\n"
113 msgstr ""
114 "B<size_t regerror(int >I<errcode>B<, const regex_t *>I<preg>B<, char *>I<errbuf>B<,>\n"
115 "B< size_t >I<errbuf_size>B<);>\n"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid ""
122 "B<typedef struct {>\n"
123 "B<size_t re_nsub;>\n"
124 "B<} regex_t;>\n"
125 msgstr ""
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 #, fuzzy, no-wrap
131 #| msgid ""
132 #| "typedef struct {\n"
133 #| " regoff_t rm_so;\n"
134 #| " regoff_t rm_eo;\n"
135 #| "} regmatch_t;\n"
136 msgid ""
137 "B<typedef struct {>\n"
138 "B<regoff_t rm_so;>\n"
139 "B<regoff_t rm_eo;>\n"
140 "B<} regmatch_t;>\n"
141 msgstr ""
142 "typedef struct {\n"
143 " regoff_t rm_so;\n"
144 " regoff_t rm_eo;\n"
145 "} regmatch_t;\n"
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "B<typedef> /* ... */ B<regoff_t;>\n"
152 msgstr ""
153
154 #. type: SH
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid "DESCRIPTION"
159 msgstr "DESCRIÇÃO"
160
161 #. type: SS
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 #, fuzzy, no-wrap
165 #| msgid "Explanation"
166 msgid "Compilation"
167 msgstr "Explicação"
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "B<regcomp>() is used to compile a regular expression into a form that is "
174 "suitable for subsequent B<regexec>() searches."
175 msgstr ""
176 "B<regcomp>() é usado para compilar uma expressão regular para um formato que "
177 "é apropriado para buscas subsequentes de B<regexec>()."
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid ""
183 "On success, the pattern buffer at I<*preg> is initialized. I<regex> is a "
184 "null-terminated string. The locale must be the same when running "
185 "B<regexec>()."
186 msgstr ""
187
188 #. type: Plain text
189 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
190 #: opensuse-tumbleweed
191 msgid ""
192 "After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of "
193 "subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 "
194 "passed as I<n> to B<regexec>() is sufficient to capture all matches."
195 msgstr ""
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 #, fuzzy
201 #| msgid "I<cflags> may be the bitwise-B<or> of one or more of the following:"
202 msgid "I<cflags> is the bitwise OR of zero or more of the following:"
203 msgstr ""
204 "I<cflags> pode ser um B<OU> bit-a-bit de um ou mais dos seguintes itens:"
205
206 #. type: TP
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 #, no-wrap
210 msgid "B<REG_EXTENDED>"
211 msgstr "B<REG_EXTENDED>"
212
213 #. type: Plain text
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, fuzzy
217 #| msgid ""
218 #| "Use B<POSIX> Extended Regular Expression syntax when interpreting "
219 #| "I<regex>. If not set, B<POSIX> Basic Regular Expression syntax is used."
220 msgid ""
221 "Use POSIX Extended Regular Expression syntax when interpreting I<regex>. If "
222 "not set, POSIX Basic Regular Expression syntax is used."
223 msgstr ""
224 "Usa B<POSIX> Sintaxe de Expressões Regular Estendidas quando interpreta "
225 "I<regex>. Se não for selecionado, B<POSIX> A sintaxe de Expressões Regulares "
226 "Básicas é usada."
227
228 #. type: TP
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "B<REG_ICASE>"
233 msgstr "B<REG_ICASE>"
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "Do not differentiate case. Subsequent B<regexec>() searches using this "
240 "pattern buffer will be case insensitive."
241 msgstr ""
242 "Não diferencia maiúsculas de minúsculas. Buscas sequenciais de B<regexec>() "
243 "usando este buffer padrão serão insensíveis à caixa."
244
245 #. type: TP
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid "B<REG_NOSUB>"
250 msgstr "B<REG_NOSUB>"
251
252 #. type: Plain text
253 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
254 #: opensuse-tumbleweed
255 msgid ""
256 "Report only overall success. B<regexec>() will use only I<pmatch> for "
257 "B<REG_STARTEND>, ignoring I<n>."
258 msgstr ""
259
260 #. type: TP
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "B<REG_NEWLINE>"
265 msgstr "B<REG_NEWLINE>"
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid "Match-any-character operators don't match a newline."
271 msgstr ""
272 "Operadores de 'casamento com qualquer caractere' não casam com um caractere "
273 "de nova linha."
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, fuzzy
279 #| msgid ""
280 #| "A nonmatching list (B<[^...]>) not containing a newline does not match a "
281 #| "newline."
282 msgid ""
283 "A nonmatching list (B<[\\[ha]...\\&]>) not containing a newline does not "
284 "match a newline."
285 msgstr ""
286 "Uma lista de não-casamento (B<[^...]>) que não contém um caractere de nova "
287 "linha não encontra um caractere de nova linha."
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, fuzzy
293 #| msgid ""
294 #| "Match-beginning-of-line operator (B<^>) matches the empty string "
295 #| "immediately after a newline, regardless of whether I<eflags>, the "
296 #| "execution flags of B<regexec>(), contains B<REG_NOTBOL>."
297 msgid ""
298 "Match-beginning-of-line operator (B<\\[ha]>) matches the empty string "
299 "immediately after a newline, regardless of whether I<eflags>, the execution "
300 "flags of B<regexec>(), contains B<REG_NOTBOL>."
301 msgstr ""
302 "Operador de 'casamento com início de linha' (B<^>) casa com a sequëncias "
303 "vazia imediatamente depois de um caractere de nova linha, independente se "
304 "I<eflags>, as flags de execução de B<regexec>(), contêm B<REG_NOTBOL>."
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid ""
310 "Match-end-of-line operator (B<$>) matches the empty string immediately "
311 "before a newline, regardless of whether I<eflags> contains B<REG_NOTEOL>."
312 msgstr ""
313 "Operadores de 'casamento com fim de linha' (B<$>) casa com a sequência vazia "
314 "imediatamente antes de um caractere de nova linha, independente se I<eflags> "
315 "contém B<REG_NOTEOL>."
316
317 #. type: SS
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "Matching"
322 msgstr ""
323
324 #. type: Plain text
325 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
326 #: opensuse-leap-16-1 opensuse-tumbleweed
327 #, fuzzy
328 #| msgid ""
329 #| "B<regexec>() is used to match a null-terminated string against the "
330 #| "precompiled pattern buffer, I<preg>. I<nmatch> and I<pmatch> are used to "
331 #| "provide information regarding the location of any matches. I<eflags> may "
332 #| "be the bitwise-B<or> of one or both of B<REG_NOTBOL> and B<REG_NOTEOL> "
333 #| "which cause changes in matching behavior described below."
334 msgid ""
335 "B<regexec>() is used to match a null-terminated string against the compiled "
336 "pattern buffer in I<*preg>, which must have been initialised with "
337 "B<regcomp>(). I<eflags> is the bitwise OR of zero or more of the following "
338 "flags:"
339 msgstr ""
340 "B<regexec>() é usado para encontrar uma sequência terminada em nulo no "
341 "buffer padrão pré-compilado, I<preg>. I<nmatch> e I<pmatch> são usados para "
342 "dar informações a respeito da posição de qualquer casamento. I<eflags> pode "
343 "ser um B<OU> bit-a-bit de um ou ambos B<REG_NOTBOL> e B<REG_NOTEOL> que "
344 "causam mudanças no comportamento de casamento descrito abaixo."
345
346 #. type: TP
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 #, no-wrap
350 msgid "B<REG_NOTBOL>"
351 msgstr "B<REG_NOTBOL>"
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid ""
357 "The match-beginning-of-line operator always fails to match (but see the "
358 "compilation flag B<REG_NEWLINE> above). This flag may be used when "
359 "different portions of a string are passed to B<regexec>() and the beginning "
360 "of the string should not be interpreted as the beginning of the line."
361 msgstr ""
362 "O operador de 'casamento com início de linha' sempre falha em encontrar (mas "
363 "veja o sinalizador de compilação B<REG_NEWLINE> acima). Este sinalizador "
364 "pode ser usada quando porções diferentes de uma sequência são passadas para "
365 "B<regexec>() e o início da sequência não pode ser interpretada como o começo "
366 "da linha."
367
368 #. type: TP
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "B<REG_NOTEOL>"
373 msgstr "B<REG_NOTEOL>"
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 msgid ""
379 "The match-end-of-line operator always fails to match (but see the "
380 "compilation flag B<REG_NEWLINE> above)."
381 msgstr ""
382 "O operador de 'casamento com o fim da linha' sempre falha em encontrar (mas "
383 "veja o sinalizador de compilação B<REG_NEWLINE> acima)."
384
385 #. type: TP
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid "B<REG_STARTEND>"
390 msgstr "B<REG_STARTEND>"
391
392 #. type: Plain text
393 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ""
395 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
396 "[I<string>,\\ I<strnul(string)>). This allows matching embedded NUL bytes. "
397 "If any matches are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the "
398 "match succeeded, and I<n> E<gt> 0), they overwrite I<pmatch> as usual, and "
399 "the match offsets remain relative to I<string> (not I<string + "
400 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
401 msgstr ""
402
403 #. type: SS
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "Match offsets"
408 msgstr ""
409
410 #. type: Plain text
411 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
412 #: opensuse-tumbleweed
413 msgid ""
414 "Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the "
415 "locations of matches within I<string>: B<regexec>() fills I<n> elements of "
416 "I<pmatch> with results: I<pmatch[0]> corresponds to the entire match, "
417 "I<pmatch[1]> to the first subexpression, etc. If there were more matches "
418 "than I<n>, they are discarded; if fewer, unused elements of I<pmatch> are "
419 "filled with B<-1>s."
420 msgstr ""
421
422 #. type: Plain text
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 msgid ""
426 "Each returned valid (non-B<-1>) match corresponds to the range [I<string + "
427 "rm_so>,I< string + rm_eo>)."
428 msgstr ""
429
430 #. type: Plain text
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 msgid ""
434 "I<regoff_t> is a signed integer type capable of storing the largest value "
435 "that can be stored in either an I<ptrdiff_t> type or a I<ssize_t> type."
436 msgstr ""
437
438 #. type: SS
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "Error reporting"
443 msgstr ""
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 msgid ""
449 "B<regerror>() is used to turn the error codes that can be returned by both "
450 "B<regcomp>() and B<regexec>() into error message strings."
451 msgstr ""
452 "B<regerror>() é usado para transformar os códigos de erro que podem ser "
453 "retornados por B<regcomp>() e B<regexec>() para sequências de mensagens de "
454 "erro."
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 "If I<preg> isn't a null pointer, I<errcode> must be the latest error "
461 "returned from an operation on I<preg>."
462 msgstr ""
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid ""
468 "If I<errbuf_size> isn't 0, up to I<errbuf_size> bytes are copied to "
469 "I<errbuf>; the error string is always null-terminated, and truncated to fit."
470 msgstr ""
471
472 #. type: SS
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "Freeing"
477 msgstr ""
478
479 #. type: Plain text
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 msgid ""
483 "B<regfree>() deinitializes the pattern buffer at I<*preg>, freeing any "
484 "associated memory; I<*preg> must have been initialized via B<regcomp>()."
485 msgstr ""
486
487 #. type: SH
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "RETURN VALUE"
492 msgstr "VALOR DE RETORNO"
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid ""
498 "B<regcomp>() returns zero for a successful compilation or an error code for "
499 "failure."
500 msgstr ""
501 "B<regcomp>() retorna zero para uma compilação bem-sucedida ou um código de "
502 "erro em caso de falha."
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "B<regexec>() returns zero for a successful match or B<REG_NOMATCH> for "
509 "failure."
510 msgstr ""
511 "B<regexec>() retorna zero para um casamento bem-sucedido ou B<REG_NOMATCH> "
512 "para falha."
513
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid ""
518 "B<regerror>() returns the size of the buffer required to hold the string."
519 msgstr ""
520
521 #. type: SH
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 #, no-wrap
525 msgid "ERRORS"
526 msgstr "ERROS"
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid "The following errors can be returned by B<regcomp>():"
532 msgstr "Os seguintes erros podem ser retornados por B<regcomp>():"
533
534 #. type: TP
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 #, no-wrap
538 msgid "B<REG_BADBR>"
539 msgstr "B<REG_BADBR>"
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 msgid "Invalid use of back reference operator."
545 msgstr "Uso inválido de operador de referência retroativa."
546
547 #. type: TP
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 #, no-wrap
551 msgid "B<REG_BADPAT>"
552 msgstr "B<REG_BADPAT>"
553
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 msgid "Invalid use of pattern operators such as group or list."
558 msgstr "Uso inválido de operadores de modelo, tais como grupo ou lista."
559
560 #. type: TP
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 #, no-wrap
564 msgid "B<REG_BADRPT>"
565 msgstr "B<REG_BADRPT>"
566
567 #. type: Plain text
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 #, fuzzy
571 #| msgid ""
572 #| "Invalid use of repetition operators such as using `B<*>' as the first "
573 #| "character."
574 msgid ""
575 "Invalid use of repetition operators such as using \\[aq]*\\[aq] as the first "
576 "character."
577 msgstr ""
578 "Uso inválido de operadores de repetição, como o uso de `B<*>' como o "
579 "primeiro caractere."
580
581 #. type: TP
582 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
583 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
584 #, no-wrap
585 msgid "B<REG_EBRACE>"
586 msgstr "B<REG_EBRACE>"
587
588 #. type: Plain text
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 msgid "Un-matched brace interval operators."
592 msgstr "Operadores de intervalo com colchetes descasados."
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_EBRACK>"
599 msgstr "B<REG_EBRACK>"
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 bracket list operators."
605 msgstr "Operadores de lista com colchetes descasados."
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_ECOLLATE>"
612 msgstr "B<REG_ECOLLATE>"
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 "Invalid collating element."
618 msgstr "Elemento de ordenação inválido."
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_ECTYPE>"
625 msgstr "B<REG_ECTYPE>"
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 "Unknown character class name."
631 msgstr "Nome de classe de caractere desconhecido."
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_EEND>"
638 msgstr "B<REG_EEND>"
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 #, fuzzy
644 #| msgid "Non specific error. This is not defined by POSIX.2."
645 msgid "Nonspecific error. This is not defined by POSIX."
646 msgstr "Erro não específico. Este não é definido pelo POSIX.2."
647
648 #. type: TP
649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
651 #, no-wrap
652 msgid "B<REG_EESCAPE>"
653 msgstr "B<REG_EESCAPE>"
654
655 #. type: Plain text
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 msgid "Trailing backslash."
659 msgstr "Barra invertida perdida."
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_EPAREN>"
666 msgstr "B<REG_EPAREN>"
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 "Un-matched parenthesis group operators."
672 msgstr "Operadores de grupo com parênteses descasados."
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_ERANGE>"
679 msgstr "B<REG_ERANGE>"
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 #, fuzzy
685 #| msgid ""
686 #| "Invalid use of the range operator, eg. the ending point of the range "
687 #| "occurs prior to the starting point."
688 msgid ""
689 "Invalid use of the range operator; for example, the ending point of the "
690 "range occurs prior to the starting point."
691 msgstr ""
692 "Uso inválido do operador de faixa, por exemplo, o ponto final da faixa "
693 "ocorre antes do ponto inicial."
694
695 #. type: TP
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 #, no-wrap
699 msgid "B<REG_ESIZE>"
700 msgstr "B<REG_ESIZE>"
701
702 #. type: Plain text
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 #, fuzzy
706 #| msgid ""
707 #| "Compiled regular expression requires a pattern buffer larger than 64Kb. "
708 #| "This is not defined by POSIX.2."
709 msgid ""
710 "Compiled regular expression requires a pattern buffer larger than 64\\ kB. "
711 "This is not defined by POSIX."
712 msgstr ""
713 "Expressão regular compilada requer um buffer modelo maior de 64Kb. Isto não "
714 "é definido pelo POSIX.2."
715
716 #. type: TP
717 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
718 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
719 #, no-wrap
720 msgid "B<REG_ESPACE>"
721 msgstr "B<REG_ESPACE>"
722
723 #. type: Plain text
724 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
725 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
726 msgid "The regex routines ran out of memory."
727 msgstr "As rotinas regex rodaram fora de memória."
728
729 #. type: TP
730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
732 #, no-wrap
733 msgid "B<REG_ESUBREG>"
734 msgstr "B<REG_ESUBREG>"
735
736 #. type: Plain text
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 msgid "Invalid back reference to a subexpression."
740 msgstr "Referência retroativa inválida a uma subexpressão."
741
742 #. type: SH
743 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
744 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
745 #, no-wrap
746 msgid "ATTRIBUTES"
747 msgstr "ATRIBUTOS"
748
749 #. type: Plain text
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 msgid ""
753 "For an explanation of the terms used in this section, see B<attributes>(7)."
754 msgstr ""
755 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
756
757 #. type: tbl table
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 #, no-wrap
761 msgid "Interface"
762 msgstr "Interface"
763
764 #. type: tbl table
765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
767 #, no-wrap
768 msgid "Attribute"
769 msgstr "Atributo"
770
771 #. type: tbl table
772 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
773 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
774 #, no-wrap
775 msgid "Value"
776 msgstr "Valor"
777
778 #. type: tbl table
779 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
780 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
781 #, no-wrap
782 msgid ".na\n"
783 msgstr ".na\n"
784
785 #. type: tbl table
786 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
787 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
788 #, no-wrap
789 msgid ".nh\n"
790 msgstr ".nh\n"
791
792 #. type: tbl table
793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
795 #, no-wrap
796 msgid ""
797 "B<regcomp>(),\n"
798 "B<regexec>()"
799 msgstr ""
800
801 #. type: tbl table
802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
804 #, no-wrap
805 msgid "Thread safety"
806 msgstr "Thread safety"
807
808 #. type: tbl table
809 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
810 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
811 #, no-wrap
812 msgid "MT-Safe locale"
813 msgstr "MT-Safe locale"
814
815 #. type: tbl table
816 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
817 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
818 #, no-wrap
819 msgid "B<regerror>()"
820 msgstr ""
821
822 #. type: tbl table
823 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
824 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
825 #, no-wrap
826 msgid "MT-Safe env"
827 msgstr "Ambiente MT-Safe"
828
829 #. type: tbl table
830 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
831 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
832 #, no-wrap
833 msgid "B<regfree>()"
834 msgstr ""
835
836 #. type: tbl table
837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
839 #, no-wrap
840 msgid "MT-Safe"
841 msgstr "MT-Safe"
842
843 #. type: SH
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 #, no-wrap
847 msgid "STANDARDS"
848 msgstr "PADRÕES"
849
850 #. type: Plain text
851 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
852 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
853 msgid "POSIX.1-2008."
854 msgstr "POSIX.1-2008."
855
856 #. type: SH
857 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
858 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
859 #, no-wrap
860 msgid "HISTORY"
861 msgstr "HISTÓRICO"
862
863 #. type: Plain text
864 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
865 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
866 msgid "POSIX.1-2001."
867 msgstr "POSIX.1-2001."
868
869 #. type: Plain text
870 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
871 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
872 msgid ""
873 "Prior to POSIX.1-2008, I<regoff_t> was required to be capable of storing the "
874 "largest value that can be stored in either an I<off_t> type or a I<ssize_t> "
875 "type."
876 msgstr ""
877
878 #. type: SH
879 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
880 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
881 #, no-wrap
882 msgid "CAVEATS"
883 msgstr ""
884
885 #. glibc, musl, 4.4BSD, illumos
886 #. type: Plain text
887 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
888 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
889 msgid ""
890 "I<re_nsub> is only required to be initialized if B<REG_NOSUB> wasn't "
891 "specified, but all known implementations initialize it regardless."
892 msgstr ""
893
894 #. illumos has two more start/end pairs and the first one is of pointers
895 #. type: Plain text
896 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
897 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
898 msgid ""
899 "Both I<regex_t> and I<regmatch_t> may (and do) have more members, in any "
900 "order. Always reference them by name."
901 msgstr ""
902
903 #. type: SH
904 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
905 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
906 #, no-wrap
907 msgid "EXAMPLES"
908 msgstr "EXEMPLOS"
909
910 #. type: Plain text
911 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
912 #: opensuse-tumbleweed
913 #, no-wrap
914 msgid ""
915 "#include E<lt>stdcountof.hE<gt>\n"
916 "#include E<lt>stdint.hE<gt>\n"
917 "#include E<lt>stdio.hE<gt>\n"
918 "#include E<lt>stdlib.hE<gt>\n"
919 "#include E<lt>regex.hE<gt>\n"
920 "\\&\n"
921 "static const char *const str =\n"
922 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
923 "static const char *const re = \"John.*o\";\n"
924 "\\&\n"
925 "int main(void)\n"
926 "{\n"
927 " static const char *s = str;\n"
928 " regex_t regex;\n"
929 " regmatch_t pmatch[1];\n"
930 " regoff_t off, len;\n"
931 "\\&\n"
932 " if (regcomp(&regex, re, REG_NEWLINE))\n"
933 " exit(EXIT_FAILURE);\n"
934 "\\&\n"
935 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
936 " printf(\"Matches:\\[rs]n\");\n"
937 "\\&\n"
938 " for (unsigned int i = 0; ; i++) {\n"
939 " if (regexec(&regex, s, countof(pmatch), pmatch, 0))\n"
940 " break;\n"
941 "\\&\n"
942 " off = pmatch[0].rm_so + (s - str);\n"
943 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
944 " printf(\"#%u:\\[rs]n\", i);\n"
945 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
946 " (intmax_t) len);\n"
947 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
948 "\\&\n"
949 " s += pmatch[0].rm_eo;\n"
950 " }\n"
951 "\\&\n"
952 " exit(EXIT_SUCCESS);\n"
953 "}\n"
954 msgstr ""
955
956 #. type: SH
957 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
958 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
959 #, no-wrap
960 msgid "SEE ALSO"
961 msgstr "VEJA TAMBÉM"
962
963 #. type: Plain text
964 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
965 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
966 #, fuzzy
967 #| msgid "B<regex>(7), B<GNU regex manual>"
968 msgid "B<grep>(1), B<regex>(7)"
969 msgstr "B<regex>(7), B<manual do regex GNU>"
970
971 #. type: Plain text
972 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
973 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
974 msgid "The glibc manual section, I<Regular Expressions>"
975 msgstr ""
976
977 #. type: TH
978 #: debian-trixie
979 #, no-wrap
980 msgid "2024-06-15"
981 msgstr "15 junho 2024"
982
983 #. type: TH
984 #: debian-trixie
985 #, no-wrap
986 msgid "Linux man-pages 6.9.1"
987 msgstr "Linux man-pages 6.9.1"
988
989 #. type: Plain text
990 #: debian-trixie
991 msgid "Standard C library (I<libc>, I<-lc>)"
992 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
993
994 #. type: Plain text
995 #: debian-trixie fedora-44 fedora-rawhide
996 #, fuzzy, no-wrap
997 #| msgid ""
998 #| "B<int regexec(const regex_t *>I<preg>B<, const char *>I<string>B<, size_t >I<nmatch>B<,>\n"
999 #| "B< regmatch_t >I<pmatch[]>B<, int >I<eflags>B<);>\n"
1000 msgid ""
1001 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
1002 "B< int >I<cflags>B<);>\n"
1003 "B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<string>B<,>\n"
1004 "B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[_Nullable restrict .>I<nmatch>B<],>\n"
1005 "B< int >I<eflags>B<);>\n"
1006 msgstr ""
1007 "B<int regexec(const regex_t *>I<preg>B<, const char *>I<string>B<, size_t >I<nmatch>B<,>\n"
1008 "B< regmatch_t >I<pmatch[]>B<, int >I<eflags>B<);>\n"
1009
1010 #. type: Plain text
1011 #: debian-trixie fedora-44 fedora-rawhide
1012 #, fuzzy, no-wrap
1013 #| msgid ""
1014 #| "B<size_t regerror(int >I<errcode>B<, const regex_t *>I<preg>B<, char *>I<errbuf>B<,>\n"
1015 #| "B< size_t >I<errbuf_size>B<);>\n"
1016 msgid ""
1017 "B<size_t regerror(int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<,>\n"
1018 "B< char >I<errbuf>B<[_Nullable restrict .>I<errbuf_size>B<],>\n"
1019 "B< size_t >I<errbuf_size>B<);>\n"
1020 "B<void regfree(regex_t *>I<preg>B<);>\n"
1021 msgstr ""
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
1025 #. type: Plain text
1026 #: debian-trixie fedora-44 fedora-rawhide
1027 msgid ""
1028 "After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of "
1029 "subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 "
1030 "passed as I<nmatch> to B<regexec>() is sufficient to capture all matches."
1031 msgstr ""
1032
1033 #. type: Plain text
1034 #: debian-trixie fedora-44 fedora-rawhide
1035 msgid ""
1036 "Report only overall success. B<regexec>() will use only I<pmatch> for "
1037 "B<REG_STARTEND>, ignoring I<nmatch>."
1038 msgstr ""
1039
1040 #. type: Plain text
1041 #: debian-trixie
1042 #, fuzzy
1043 #| msgid ""
1044 #| "B<regexec>() is used to match a null-terminated string against the "
1045 #| "precompiled pattern buffer, I<preg>. I<nmatch> and I<pmatch> are used to "
1046 #| "provide information regarding the location of any matches. I<eflags> may "
1047 #| "be the bitwise-B<or> of one or both of B<REG_NOTBOL> and B<REG_NOTEOL> "
1048 #| "which cause changes in matching behavior described below."
1049 msgid ""
1050 "B<regexec>() is used to match a null-terminated string against the compiled "
1051 "pattern buffer in I<*preg>, which must have been initialised with "
1052 "B<regexec>(). I<eflags> is the bitwise OR of zero or more of the following "
1053 "flags:"
1054 msgstr ""
1055 "B<regexec>() é usado para encontrar uma sequência terminada em nulo no "
1056 "buffer padrão pré-compilado, I<preg>. I<nmatch> e I<pmatch> são usados para "
1057 "dar informações a respeito da posição de qualquer casamento. I<eflags> pode "
1058 "ser um B<OU> bit-a-bit de um ou ambos B<REG_NOTBOL> e B<REG_NOTEOL> que "
1059 "causam mudanças no comportamento de casamento descrito abaixo."
1060
1061 #. type: Plain text
1062 #: debian-trixie fedora-44 fedora-rawhide
1063 msgid ""
1064 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
1065 "[I<string>,I< string + strlen(string)>). This allows matching embedded NUL "
1066 "bytes and avoids a B<strlen>(3) on known-length strings. If any matches "
1067 "are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match "
1068 "succeeded, and I<nmatch> E<gt> 0), they overwrite I<pmatch> as usual, and "
1069 "the match offsets remain relative to I<string> (not I<string + "
1070 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
1071 msgstr ""
1072
1073 #. type: Plain text
1074 #: debian-trixie fedora-44 fedora-rawhide
1075 msgid ""
1076 "Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the "
1077 "locations of matches within I<string>: B<regexec>() fills I<nmatch> "
1078 "elements of I<pmatch> with results: I<pmatch[0]> corresponds to the entire "
1079 "match, I<pmatch[1]> to the first subexpression, etc. If there were more "
1080 "matches than I<nmatch>, they are discarded; if fewer, unused elements of "
1081 "I<pmatch> are filled with B<-1>s."
1082 msgstr ""
1083
1084 #. type: Plain text
1085 #: debian-trixie
1086 #, no-wrap
1087 msgid ""
1088 "#include E<lt>stdint.hE<gt>\n"
1089 "#include E<lt>stdio.hE<gt>\n"
1090 "#include E<lt>stdlib.hE<gt>\n"
1091 "#include E<lt>regex.hE<gt>\n"
1092 "\\&\n"
1093 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1094 "\\&\n"
1095 "static const char *const str =\n"
1096 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
1097 "static const char *const re = \"John.*o\";\n"
1098 "\\&\n"
1099 "int main(void)\n"
1100 "{\n"
1101 " static const char *s = str;\n"
1102 " regex_t regex;\n"
1103 " regmatch_t pmatch[1];\n"
1104 " regoff_t off, len;\n"
1105 "\\&\n"
1106 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1107 " exit(EXIT_FAILURE);\n"
1108 "\\&\n"
1109 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1110 " printf(\"Matches:\\[rs]n\");\n"
1111 "\\&\n"
1112 " for (unsigned int i = 0; ; i++) {\n"
1113 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1114 " break;\n"
1115 "\\&\n"
1116 " off = pmatch[0].rm_so + (s - str);\n"
1117 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1118 " printf(\"#%zu:\\[rs]n\", i);\n"
1119 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1120 " (intmax_t) len);\n"
1121 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
1122 "\\&\n"
1123 " s += pmatch[0].rm_eo;\n"
1124 " }\n"
1125 "\\&\n"
1126 " exit(EXIT_SUCCESS);\n"
1127 "}\n"
1128 msgstr ""
1129
1130 #. type: TH
1131 #: fedora-44 fedora-rawhide
1132 #, no-wrap
1133 msgid "2025-02-10"
1134 msgstr "10 fevereiro 2025"
1135
1136 #. type: TH
1137 #: fedora-44 fedora-rawhide
1138 #, no-wrap
1139 msgid "Linux man-pages 6.13"
1140 msgstr "Linux man-pages 6.13"
1141
1142 #. type: Plain text
1143 #: fedora-44 fedora-rawhide
1144 #, no-wrap
1145 msgid ""
1146 "#include E<lt>stdint.hE<gt>\n"
1147 "#include E<lt>stdio.hE<gt>\n"
1148 "#include E<lt>stdlib.hE<gt>\n"
1149 "#include E<lt>regex.hE<gt>\n"
1150 "\\&\n"
1151 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1152 "\\&\n"
1153 "static const char *const str =\n"
1154 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
1155 "static const char *const re = \"John.*o\";\n"
1156 "\\&\n"
1157 "int main(void)\n"
1158 "{\n"
1159 " static const char *s = str;\n"
1160 " regex_t regex;\n"
1161 " regmatch_t pmatch[1];\n"
1162 " regoff_t off, len;\n"
1163 "\\&\n"
1164 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1165 " exit(EXIT_FAILURE);\n"
1166 "\\&\n"
1167 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1168 " printf(\"Matches:\\[rs]n\");\n"
1169 "\\&\n"
1170 " for (unsigned int i = 0; ; i++) {\n"
1171 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1172 " break;\n"
1173 "\\&\n"
1174 " off = pmatch[0].rm_so + (s - str);\n"
1175 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1176 " printf(\"#%u:\\[rs]n\", i);\n"
1177 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1178 " (intmax_t) len);\n"
1179 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
1180 "\\&\n"
1181 " s += pmatch[0].rm_eo;\n"
1182 " }\n"
1183 "\\&\n"
1184 " exit(EXIT_SUCCESS);\n"
1185 "}\n"
1186 msgstr ""
1187
1188 #. type: TH
1189 #: mageia-cauldron
1190 #, no-wrap
1191 msgid "2026-02-10"
1192 msgstr "10 fevereiro 2026"
1193
1194 #. type: TH
1195 #: mageia-cauldron
1196 #, no-wrap
1197 msgid "Linux man-pages 6.17"
1198 msgstr "Linux man-pages 6.17"
1199
1200 #. type: Plain text
1201 #: mageia-cauldron
1202 msgid ""
1203 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
1204 "[I<string>,I< string + strlen(string)>). This allows matching embedded NUL "
1205 "bytes and avoids a B<strlen>(3) on known-length strings. If any matches "
1206 "are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match "
1207 "succeeded, and I<n> E<gt> 0), they overwrite I<pmatch> as usual, and the "
1208 "match offsets remain relative to I<string> (not I<string + "
1209 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
1210 msgstr ""
1211
1212 #. type: TH
1213 #: opensuse-leap-16-1 opensuse-tumbleweed
1214 #, no-wrap
1215 msgid "Linux man-pages (unreleased)"
1216 msgstr "Linux man-pages (não lançado)"