Debian Codegraph @

po/ar/man3/regex.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n 4.30.2\n"
9 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
10 "PO-Revision-Date: 2026-06-06 08:53+0400\n"
11 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
12 "Language-Team: Arabic <[email protected]>\n"
13 "Language: ar\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 &&"
18 " n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
19 "X-Generator: Lokalize 23.08.5\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 فبراير 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "صفحات دليل لينكس 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "الاسم"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "regcomp, regexec, regerror, regfree - POSIX regex functions"
51 msgstr "regcomp, regexec, regerror, regfree - دوال التعبير النمطي POSIX"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "المكتبة"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "موجز"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>regex.hE<gt>>\n"
78 msgstr "B<#include E<lt>regex.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
82 #: opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,"
86 ">\n"
87 "B< int >I<cflags>B<);>\n"
88 "B<int regexec(const regex_t *restrict >I<preg>B<,>\n"
89 "B< const char *restrict >I<string>B<,>\n"
90 "B< size_t >I<n>B<, regmatch_t >I<pmatch>B<[_Nullable restrict >I<n"
91 ">B<],>\n"
92 "B< int >I<eflags>B<);>\n"
93 msgstr ""
94 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,"
95 ">\n"
96 "B< int >I<cflags>B<);>\n"
97 "B<int regexec(const regex_t *restrict >I<preg>B<,>\n"
98 "B< const char *restrict >I<string>B<,>\n"
99 "B< size_t >I<n>B<, regmatch_t >I<pmatch>B<[_Nullable restrict >I<n"
100 ">B<],>\n"
101 "B< int >I<eflags>B<);>\n"
102
103 #. type: Plain text
104 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
105 #: opensuse-tumbleweed
106 #, no-wrap
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<"
110 ",>\n"
111 "B< char >I<errbuf>B<[_Nullable restrict >I<errbuf_size>B<],>\n"
112 "B< size_t >I<errbuf_size>B<);>\n"
113 "B<void regfree(regex_t *>I<preg>B<);>\n"
114 msgstr ""
115 "B<size_t regerror(>size_t errbuf_size;\n"
116 "B< int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<"
117 ",>\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
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid ""
127 "B<typedef struct {>\n"
128 "B<size_t re_nsub;>\n"
129 "B<} regex_t;>\n"
130 msgstr ""
131 "B<typedef struct {>\n"
132 "B<size_t re_nsub;>\n"
133 "B<} regex_t;>\n"
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 #, no-wrap
139 msgid ""
140 "B<typedef struct {>\n"
141 "B<regoff_t rm_so;>\n"
142 "B<regoff_t rm_eo;>\n"
143 "B<} regmatch_t;>\n"
144 msgstr ""
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
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "B<typedef> /* ... */ B<regoff_t;>\n"
155 msgstr "B<typedef> /* ... */ B<regoff_t;>\n"
156
157 #. type: SH
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, no-wrap
161 msgid "DESCRIPTION"
162 msgstr "الوصف"
163
164 #. type: SS
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid "Compilation"
169 msgstr "التجميع"
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "B<regcomp>() is used to compile a regular expression into a form that is "
176 "suitable for subsequent B<regexec>() searches."
177 msgstr ""
178 "تُستخدم B<regcomp>() لتجميع تعبير نمطي إلى صيغة مناسبة لعمليات بحث "
179 "B<regexec>() لاحقة."
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "On success, the pattern buffer at I<*preg> is initialized. I<regex> is a "
186 "null-terminated string. The locale must be the same when running "
187 "B<regexec>()."
188 msgstr ""
189 "عند النجاح، يُهيأ مخبأ النمط عند I<*preg>. I<regex> هي سلسلة محارف منتهية "
190 "بقيمة خالية. يجب أن يكون الإعداد المحلي نفسه عند تشغيل B<regexec>()."
191
192 #. type: Plain text
193 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
194 #: opensuse-tumbleweed
195 msgid ""
196 "After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of "
197 "subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 "
198 "passed as I<n> to B<regexec>() is sufficient to capture all matches."
199 msgstr ""
200 "بعد نجاح B<regcomp>() ، يحمل I<preg-E<gt>re_nsub> عدد التعبيرات الفرعية في "
201 "I<regex>. لذا، فإن قيمة I<preg-E<gt>re_nsub> + 1 الممررة كـ I<n> إلى "
202 "B<regexec>() كافية لالتقاط جميع التطابقات."
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid "I<cflags> is the bitwise OR of zero or more of the following:"
208 msgstr "I<cflags> هو OR على مستوى البتات لصفر أو أكثر مما يلي:"
209
210 #. type: TP
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid "B<REG_EXTENDED>"
215 msgstr "B<REG_EXTENDED>"
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "Use POSIX Extended Regular Expression syntax when interpreting I<regex>. If "
222 "not set, POSIX Basic Regular Expression syntax is used."
223 msgstr ""
224 "استخدم صيغة التعبير النمطي الموسع POSIX عند تفسير I<regex>. إذا لم يُضبط، "
225 "تُستخدم صيغة التعبير النمطي الأساسي POSIX."
226
227 #. type: TP
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "B<REG_ICASE>"
232 msgstr "B<REG_ICASE>"
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "Do not differentiate case. Subsequent B<regexec>() searches using this "
239 "pattern buffer will be case insensitive."
240 msgstr ""
241 "لا تفرق بين حالة الأحرف. ستكون عمليات بحث B<regexec>() اللاحقة باستخدام "
242 "مخبأ النمط هذا غير حساسة لحالة الأحرف."
243
244 #. type: TP
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "B<REG_NOSUB>"
249 msgstr "B<REG_NOSUB>"
250
251 #. type: Plain text
252 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
253 #: opensuse-tumbleweed
254 msgid ""
255 "Report only overall success. B<regexec>() will use only I<pmatch> for "
256 "B<REG_STARTEND>, ignoring I<n>."
257 msgstr ""
258 "أبلغ فقط عن النجاح الكلي. ستستخدم B<regexec>() فقط I<pmatch> لـ "
259 "B<REG_STARTEND>، متجاهلة I<n>."
260
261 #. type: TP
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "B<REG_NEWLINE>"
266 msgstr "B<REG_NEWLINE>"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid "Match-any-character operators don't match a newline."
272 msgstr "لا تطابق عوامل تشغيل تطابق أي حرف سطرًا جديدًا."
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 msgid ""
278 "A nonmatching list (B<[\\[ha]...\\&]>) not containing a newline does not "
279 "match a newline."
280 msgstr ""
281 "قائمة غير مطابقة (B<[\\[ha]...\\&]>) لا تحتوي على سطر جديد لا تطابق سطرًا "
282 "جديدًا."
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid ""
288 "Match-beginning-of-line operator (B<\\[ha]>) matches the empty string "
289 "immediately after a newline, regardless of whether I<eflags>, the execution "
290 "flags of B<regexec>(), contains B<REG_NOTBOL>."
291 msgstr ""
292 "عامل مطابقة بداية السطر (B<\\[ha]>) يطابق السلسلة الفارغة فورًا بعد سطر جديد، "
293 "بغض النظر عن احتواء I<eflags>، أعلام تنفيذ B<regexec>()، على B<REG_NOTBOL>."
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid ""
299 "Match-end-of-line operator (B<$>) matches the empty string immediately "
300 "before a newline, regardless of whether I<eflags> contains B<REG_NOTEOL>."
301 msgstr ""
302 "عامل مطابقة نهاية السطر (B<$>) يطابق السلسلة الفارغة فورًا قبل سطر جديد، بغض "
303 "النظر عن احتواء I<eflags> على B<REG_NOTEOL>."
304
305 #. type: SS
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "Matching"
310 msgstr "المطابقة"
311
312 #. type: Plain text
313 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
314 #: opensuse-leap-16-1 opensuse-tumbleweed
315 msgid ""
316 "B<regexec>() is used to match a null-terminated string against the compiled "
317 "pattern buffer in I<*preg>, which must have been initialised with "
318 "B<regcomp>(). I<eflags> is the bitwise OR of zero or more of the following "
319 "flags:"
320 msgstr ""
321 "تُستخدم B<regexec>() لمطابقة سلسلة محارف منتهية بقيمة فارغة مع مخبأ النمط "
322 "المُجمَّع في I<*preg>، الذي يجب أن يكون قد تمت تهيئته باستخدام B<regcomp>(). "
323 "I<eflags> هو OR على مستوى البت لصفر أو أكثر من الأعلام التالية:"
324
325 #. type: TP
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "B<REG_NOTBOL>"
330 msgstr "B<REG_NOTBOL>"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid ""
336 "The match-beginning-of-line operator always fails to match (but see the "
337 "compilation flag B<REG_NEWLINE> above). This flag may be used when "
338 "different portions of a string are passed to B<regexec>() and the beginning "
339 "of the string should not be interpreted as the beginning of the line."
340 msgstr ""
341 "عامل مطابقة بداية السطر يفشل دائمًا في المطابقة (لكن انظر علم التجميع "
342 "B<REG_NEWLINE> أعلاه). يمكن استخدام هذا العلم عندما تُمرَّر أجزاء مختلفة من "
343 "سلسلة محارف إلى B<regexec>() ولا ينبغي تفسير بداية السلسلة على أنها بداية "
344 "السطر."
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_NOTEOL>"
351 msgstr "B<REG_NOTEOL>"
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-end-of-line operator always fails to match (but see the "
358 "compilation flag B<REG_NEWLINE> above)."
359 msgstr ""
360 "عامل مطابقة نهاية السطر يفشل دائمًا في المطابقة (لكن انظر علم التجميع "
361 "B<REG_NEWLINE> أعلاه)."
362
363 #. type: TP
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "B<REG_STARTEND>"
368 msgstr "B<REG_STARTEND>"
369
370 #. type: Plain text
371 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
372 #| msgid ""
373 #| "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead "
374 #| "of [I<string>,\\~I<strnul(string)>). This allows matching embedded NUL "
375 #| "bytes. If any matches are returned (B<REG_NOSUB> wasn't passed to "
376 #| "B<regcomp>(), the match succeeded, and I<n> E<gt> 0), they overwrite "
377 #| "I<pmatch> as usual, and the match offsets remain relative to I<string> "
378 #| "(not I<string + pmatch[0].rm_so>). This flag is a BSD extension, not "
379 #| "present in POSIX."
380 msgid ""
381 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
382 "[I<string>,\\ I<strnul(string)>). This allows matching embedded NUL bytes. "
383 "If any matches are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the "
384 "match succeeded, and I<n> E<gt> 0), they overwrite I<pmatch> as usual, and "
385 "the match offsets remain relative to I<string> (not I<string + pmatch[0]."
386 "rm_so>). This flag is a BSD extension, not present in POSIX."
387 msgstr ""
388 "يطابق [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) بدلاً من "
389 "[I<string>,\\ I<strnul(string)>). يسمح هذا بمطابقة وحدات البايت NUL"
390 " المُضمَّنة. "
391 "إذا تم إرجاع أي مطابقات (لم يُمرَّر B<REG_NOSUB> إلى B<regcomp>()، نجحت "
392 "المطابقة، و I<n> E<gt> 0)، فإنها تستبدل I<pmatch> كالمعتاد، وتبقى إزاحات "
393 "المطابقة نسبة إلى I<string> (وليس I<string + pmatch[0].rm_so>). هذا العلم هو "
394 "امتداد BSD، غير موجود في POSIX."
395
396 #. type: SS
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "Match offsets"
401 msgstr "إزاحات المطابقة"
402
403 #. type: Plain text
404 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
405 #: opensuse-tumbleweed
406 msgid ""
407 "Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the "
408 "locations of matches within I<string>: B<regexec>() fills I<n> elements of "
409 "I<pmatch> with results: I<pmatch[0]> corresponds to the entire match, "
410 "I<pmatch[1]> to the first subexpression, etc. If there were more matches "
411 "than I<n>, they are discarded; if fewer, unused elements of I<pmatch> are "
412 "filled with B<-1>s."
413 msgstr ""
414 "ما لم يُمرَّر B<REG_NOSUB> إلى B<regcomp>()، يمكن الحصول على مواقع المطابقات "
415 "داخل I<string>: تملأ B<regexec>() عناصر I<n> من I<pmatch> بالنتائج: يتوافق "
416 "I<pmatch[0]> مع المطابقة بأكملها، و I<pmatch[1]> مع أول تعبير فرعي، وهكذا. "
417 "إذا كان هناك مطابقات أكثر من I<n>، يتم التخلص منها؛ إذا كان أقل، تُملأ "
418 "العناصر غير المستخدمة من I<pmatch> بقيم B<-1>."
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ""
424 "Each returned valid (non-B<-1>) match corresponds to the range [I<string + "
425 "rm_so>,I< string + rm_eo>)."
426 msgstr ""
427 "كل مطابقة صالحة مُعادة (غير B<-1>) تتوافق مع النطاق [I<string + rm_so>,I< "
428 "string + rm_eo>)."
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 "I<regoff_t> هو نوع عدد صحيح مُوقَّع قادر على تخزين أكبر قيمة يمكن تخزينها إما "
438 "في نوع I<ptrdiff_t> أو نوع I<ssize_t>."
439
440 #. type: SS
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, no-wrap
444 msgid "Error reporting"
445 msgstr "الإبلاغ عن الأخطاء"
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 msgid ""
451 "B<regerror>() is used to turn the error codes that can be returned by both "
452 "B<regcomp>() and B<regexec>() into error message strings."
453 msgstr ""
454 "تُستخدم B<regerror>() لتحويل رموز الخطأ التي يمكن إرجاعها بواسطة كل من "
455 "B<regcomp>() و B<regexec>() إلى سلاسل محارف لرسائل الخطأ."
456
457 #. type: Plain text
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 msgid ""
461 "If I<preg> isn't a null pointer, I<errcode> must be the latest error "
462 "returned from an operation on I<preg>."
463 msgstr ""
464 "إذا لم يكن I<preg> مؤشرًا فارغًا، يجب أن يكون I<errcode> أحدث خطأ تم إرجاعه"
465 " من "
466 "عملية على I<preg>."
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "If I<errbuf_size> isn't 0, up to I<errbuf_size> bytes are copied to "
473 "I<errbuf>; the error string is always null-terminated, and truncated to fit."
474 msgstr ""
475 "إذا لم يكن I<errbuf_size> 0، يتم نسخ ما يصل إلى I<errbuf_size> بايت إلى "
476 "I<errbuf>؛ سلسلة محارف الخطأ تكون دائمًا منتهية بقيمة فارغة، ومُقتطعة لتناسب."
477
478 #. type: SS
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "Freeing"
483 msgstr "التحرير"
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 msgid ""
489 "B<regfree>() deinitializes the pattern buffer at I<*preg>, freeing any "
490 "associated memory; I<*preg> must have been initialized via B<regcomp>()."
491 msgstr ""
492 "B<regfree>() تُنهي تهيئة مخزن النمط عند I<*preg>، مُحررةً أي ذاكرة مرتبطة؛"
493 " يجب "
494 "أن يكون I<*preg> قد هُيئ عبر B<regcomp>()."
495
496 #. type: SH
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 #, no-wrap
500 msgid "RETURN VALUE"
501 msgstr "قيمة الإرجاع"
502
503 #. type: Plain text
504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
506 msgid ""
507 "B<regcomp>() returns zero for a successful compilation or an error code for "
508 "failure."
509 msgstr "B<regcomp>() تُرجع صفرًا عند التجميع الناجح أو رمز خطأ عند الفشل."
510
511 #. type: Plain text
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 msgid ""
515 "B<regexec>() returns zero for a successful match or B<REG_NOMATCH> for "
516 "failure."
517 msgstr ""
518 "B<regexec>() تُرجع صفرًا عند المطابقة الناجحة أو B<REG_NOMATCH> عند الفشل."
519
520 #. type: Plain text
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 msgid ""
524 "B<regerror>() returns the size of the buffer required to hold the string."
525 msgstr "B<regerror>() تُرجع حجم المخزن المطلوب لاحتواء سلسلة المحارف."
526
527 #. type: SH
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 #, no-wrap
531 msgid "ERRORS"
532 msgstr "الأخطاء"
533
534 #. type: Plain text
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 msgid "The following errors can be returned by B<regcomp>():"
538 msgstr "يمكن إرجاع الأخطاء التالية بواسطة B<regcomp>():"
539
540 #. type: TP
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 #, no-wrap
544 msgid "B<REG_BADBR>"
545 msgstr "B<REG_BADBR>"
546
547 #. type: Plain text
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 msgid "Invalid use of back reference operator."
551 msgstr "استخدام غير صحيح لعامل المرجع الخلفي."
552
553 #. type: TP
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 #, no-wrap
557 msgid "B<REG_BADPAT>"
558 msgstr "B<REG_BADPAT>"
559
560 #. type: Plain text
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 msgid "Invalid use of pattern operators such as group or list."
564 msgstr "استخدام غير صحيح لعوامل النمط مثل المجموعة أو القائمة."
565
566 #. type: TP
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 #, no-wrap
570 msgid "B<REG_BADRPT>"
571 msgstr "B<REG_BADRPT>"
572
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "Invalid use of repetition operators such as using \\[aq]*\\[aq] as the first "
578 "character."
579 msgstr "استخدام غير صحيح لعوامل التكرار مثل استخدام \\[aq]*\\[aq] كأول محرف."
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 "عوامل نطاق الأقواس غير المتطابقة."
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 "عوامل قائمة الأقواس غير المتطابقة."
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 "عنصر ترتيب غير صحيح."
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 "اسم فئة محارف غير معروف."
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 msgid "Nonspecific error. This is not defined by POSIX."
644 msgstr "خطأ غير محدد. هذا غير مُعرَّف بواسطة POSIX."
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_EESCAPE>"
651 msgstr "B<REG_EESCAPE>"
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 msgid "Trailing backslash."
657 msgstr "شرطة مائلة عكسية زائدة."
658
659 #. type: TP
660 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
661 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
662 #, no-wrap
663 msgid "B<REG_EPAREN>"
664 msgstr "B<REG_EPAREN>"
665
666 #. type: Plain text
667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
669 msgid "Un-matched parenthesis group operators."
670 msgstr "عوامل مجموعة الأقواس غير المتطابقة."
671
672 #. type: TP
673 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
674 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
675 #, no-wrap
676 msgid "B<REG_ERANGE>"
677 msgstr "B<REG_ERANGE>"
678
679 #. type: Plain text
680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
682 msgid ""
683 "Invalid use of the range operator; for example, the ending point of the "
684 "range occurs prior to the starting point."
685 msgstr ""
686 "استخدام غير صحيح لعامل النطاق؛ على سبيل المثال، تحدث نقطة نهاية النطاق قبل "
687 "نقطة البداية."
688
689 #. type: TP
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 #, no-wrap
693 msgid "B<REG_ESIZE>"
694 msgstr "B<REG_ESIZE>"
695
696 #. type: Plain text
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 msgid ""
700 "Compiled regular expression requires a pattern buffer larger than 64\\ kB. "
701 "This is not defined by POSIX."
702 msgstr ""
703 "يتطلب التعبير النمطي المُجمَّع مخزن نمط أكبر من 64\\ كيلوبايت. هذا غير"
704 " مُعرَّف "
705 "بواسطة POSIX."
706
707 #. type: TP
708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
710 #, no-wrap
711 msgid "B<REG_ESPACE>"
712 msgstr "B<REG_ESPACE>"
713
714 #. type: Plain text
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 msgid "The regex routines ran out of memory."
718 msgstr "نفدت الذاكرة من روتينات regex."
719
720 #. type: TP
721 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
722 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
723 #, no-wrap
724 msgid "B<REG_ESUBREG>"
725 msgstr "B<REG_ESUBREG>"
726
727 #. type: Plain text
728 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
729 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
730 msgid "Invalid back reference to a subexpression."
731 msgstr "مرجع خلفي غير صحيح لتعبير فرعي."
732
733 #. type: SH
734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
736 #, no-wrap
737 msgid "ATTRIBUTES"
738 msgstr "السمات"
739
740 #. type: Plain text
741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
743 msgid ""
744 "For an explanation of the terms used in this section, see B<attributes>(7)."
745 msgstr ""
746 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
747
748 #. type: tbl table
749 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
750 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
751 #, no-wrap
752 msgid "Interface"
753 msgstr "الواجهة"
754
755 #. type: tbl table
756 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
757 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
758 #, no-wrap
759 msgid "Attribute"
760 msgstr "السمة"
761
762 #. type: tbl table
763 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
764 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
765 #, no-wrap
766 msgid "Value"
767 msgstr "القيمة"
768
769 #. type: tbl table
770 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
771 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
772 #, no-wrap
773 msgid ".na\n"
774 msgstr ".na\n"
775
776 #. type: tbl table
777 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
778 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
779 #, no-wrap
780 msgid ".nh\n"
781 msgstr ".nh\n"
782
783 #. type: tbl table
784 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
785 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
786 #, no-wrap
787 msgid ""
788 "B<regcomp>(),\n"
789 "B<regexec>()"
790 msgstr ""
791 "B<regcomp>(),\n"
792 "B<regexec>()"
793
794 #. type: tbl table
795 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
796 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
797 #, no-wrap
798 msgid "Thread safety"
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 "MT-Safe locale"
806 msgstr "المنطقة (locale) آمنة لتعدد المسالك (MT-Safe)"
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 "B<regerror>()"
813 msgstr "B<regerror>()"
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 "MT-Safe env"
820 msgstr "بيئة آمنة لتعدد الخيوط (MT-Safe)"
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 "B<regfree>()"
827 msgstr "B<regfree>()"
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 "MT-Safe"
834 msgstr "MT-Safe"
835
836 #. type: SH
837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
839 #, no-wrap
840 msgid "STANDARDS"
841 msgstr "المعايير"
842
843 #. type: Plain text
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 msgid "POSIX.1-2008."
847 msgstr "POSIX.1-2008."
848
849 #. type: SH
850 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
851 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
852 #, no-wrap
853 msgid "HISTORY"
854 msgstr "التاريخ"
855
856 #. type: Plain text
857 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
858 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
859 msgid "POSIX.1-2001."
860 msgstr "POSIX.1-2001."
861
862 #. type: Plain text
863 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
864 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
865 msgid ""
866 "Prior to POSIX.1-2008, I<regoff_t> was required to be capable of storing the "
867 "largest value that can be stored in either an I<off_t> type or a I<ssize_t> "
868 "type."
869 msgstr ""
870 "قبل POSIX.1-2008، كان مطلوبًا من I<regoff_t> أن يكون قادرًا على تخزين أكبر "
871 "قيمة يمكن تخزينها في نوع I<off_t> أو نوع I<ssize_t>."
872
873 #. type: SH
874 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
875 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
876 #, no-wrap
877 msgid "CAVEATS"
878 msgstr "تحذيرات"
879
880 #. glibc, musl, 4.4BSD, illumos
881 #. type: Plain text
882 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
883 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
884 msgid ""
885 "I<re_nsub> is only required to be initialized if B<REG_NOSUB> wasn't "
886 "specified, but all known implementations initialize it regardless."
887 msgstr ""
888 "I<re_nsub> مطلوب فقط أن يُهيَّأ إذا لم يُحدد B<REG_NOSUB>، لكن جميع التطبيقات "
889 "المعروفة تُهيِّئه بغض النظر."
890
891 #. illumos has two more start/end pairs and the first one is of pointers
892 #. type: Plain text
893 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
894 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
895 msgid ""
896 "Both I<regex_t> and I<regmatch_t> may (and do) have more members, in any "
897 "order. Always reference them by name."
898 msgstr ""
899 "قد يحتوي كل من I<regex_t> و I<regmatch_t> على أعضاء إضافيين (ويفعلون ذلك)، "
900 "بأي ترتيب. ارجع إليهم دائمًا بالاسم."
901
902 #. type: SH
903 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
904 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
905 #, no-wrap
906 msgid "EXAMPLES"
907 msgstr "أمثلة"
908
909 #. type: Plain text
910 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
911 #: opensuse-tumbleweed
912 #, no-wrap
913 msgid ""
914 "#include E<lt>stdcountof.hE<gt>\n"
915 "#include E<lt>stdint.hE<gt>\n"
916 "#include E<lt>stdio.hE<gt>\n"
917 "#include E<lt>stdlib.hE<gt>\n"
918 "#include E<lt>regex.hE<gt>\n"
919 "\\&\n"
920 "static const char *const str =\n"
921 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John"
922 " 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 +"
948 " pmatch[0].rm_so);\n"
949 "\\&\n"
950 " s += pmatch[0].rm_eo;\n"
951 " }\n"
952 "\\&\n"
953 " exit(EXIT_SUCCESS);\n"
954 "}\n"
955 msgstr ""
956 "#include E<lt>stdcountof.hE<gt>\n"
957 "#include E<lt>stdint.hE<gt>\n"
958 "#include E<lt>stdio.hE<gt>\n"
959 "#include E<lt>stdlib.hE<gt>\n"
960 "#include E<lt>regex.hE<gt>\n"
961 "\\&\n"
962 "static const char *const str =\n"
963 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John"
964 " Foo;\\[rs]n\";\n"
965 "static const char *const re = \"John.*o\";\n"
966 "\\&\n"
967 "int main(void)\n"
968 "{\n"
969 " static const char *s = str;\n"
970 " regex_t regex;\n"
971 " regmatch_t pmatch[1];\n"
972 " regoff_t off, len;\n"
973 "\\&\n"
974 " if (regcomp(&regex, re, REG_NEWLINE))\n"
975 " exit(EXIT_FAILURE);\n"
976 "\\&\n"
977 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
978 " printf(\"Matches:\\[rs]n\");\n"
979 "\\&\n"
980 " for (unsigned int i = 0; ; i++) {\n"
981 " if (regexec(&regex, s, countof(pmatch), pmatch, 0))\n"
982 " break;\n"
983 "\\&\n"
984 " off = pmatch[0].rm_so + (s - str);\n"
985 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
986 " printf(\"#%u:\\[rs]n\", i);\n"
987 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
988 " (intmax_t) len);\n"
989 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +"
990 " pmatch[0].rm_so);\n"
991 "\\&\n"
992 " s += pmatch[0].rm_eo;\n"
993 " }\n"
994 "\\&\n"
995 " exit(EXIT_SUCCESS);\n"
996 "}\n"
997
998 #. type: SH
999 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1000 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1001 #, no-wrap
1002 msgid "SEE ALSO"
1003 msgstr "انظر أيضًا"
1004
1005 #. type: Plain text
1006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1008 msgid "B<grep>(1), B<regex>(7)"
1009 msgstr "B<grep>(1), B<regex>(7)"
1010
1011 #. type: Plain text
1012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1014 msgid "The glibc manual section, I<Regular Expressions>"
1015 msgstr "قسم دليل glibc، I<التعبيرات النمطية>"
1016
1017 #. type: TH
1018 #: debian-trixie
1019 #, no-wrap
1020 msgid "2024-06-15"
1021 msgstr "15 يونيو 2024"
1022
1023 #. type: TH
1024 #: debian-trixie
1025 #, no-wrap
1026 msgid "Linux man-pages 6.9.1"
1027 msgstr "صفحات دليل لينكس 6.9.1"
1028
1029 #. type: Plain text
1030 #: debian-trixie
1031 msgid "Standard C library (I<libc>, I<-lc>)"
1032 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
1033
1034 #. type: Plain text
1035 #: debian-trixie fedora-44 fedora-rawhide
1036 #, no-wrap
1037 msgid ""
1038 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,"
1039 ">\n"
1040 "B< int >I<cflags>B<);>\n"
1041 "B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<"
1042 "string>B<,>\n"
1043 "B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[_Nullable restrict"
1044 " .>I<nmatch>B<],>\n"
1045 "B< int >I<eflags>B<);>\n"
1046 msgstr ""
1047 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,"
1048 ">\n"
1049 "B< int >I<cflags>B<);>\n"
1050 "B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<"
1051 "string>B<,>\n"
1052 "B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[_Nullable restrict"
1053 " .>I<nmatch>B<],>\n"
1054 "B< int >I<eflags>B<);>\n"
1055
1056 #. type: Plain text
1057 #: debian-trixie fedora-44 fedora-rawhide
1058 #, no-wrap
1059 msgid ""
1060 "B<size_t regerror(int >I<errcode>B<, const regex_t *_Nullable restrict >I<"
1061 "preg>B<,>\n"
1062 "B< char >I<errbuf>B<[_Nullable restrict .>I<errbuf_size>B<],>\n"
1063 "B< size_t >I<errbuf_size>B<);>\n"
1064 "B<void regfree(regex_t *>I<preg>B<);>\n"
1065 msgstr ""
1066 "B<size_t regerror(int >I<errcode>B<, const regex_t *_Nullable restrict >I<"
1067 "preg>B<,>\n"
1068 "B< char >I<errbuf>B<[_Nullable restrict .>I<errbuf_size>B<],>\n"
1069 "B< size_t >I<errbuf_size>B<);>\n"
1070 "B<void regfree(regex_t *>I<preg>B<);>\n"
1071
1072 #. type: Plain text
1073 #: debian-trixie fedora-44 fedora-rawhide
1074 msgid ""
1075 "After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of "
1076 "subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 "
1077 "passed as I<nmatch> to B<regexec>() is sufficient to capture all matches."
1078 msgstr ""
1079 "بعد نجاح B<regcomp>()، يحمل I<preg-E<gt>re_nsub> عدد التعبيرات الفرعية في "
1080 "I<regex>. لذا، قيمة I<preg-E<gt>re_nsub> + 1 الممررة كـ I<nmatch> إلى "
1081 "B<regexec>() كافية لالتقاط جميع المطابقات."
1082
1083 #. type: Plain text
1084 #: debian-trixie fedora-44 fedora-rawhide
1085 msgid ""
1086 "Report only overall success. B<regexec>() will use only I<pmatch> for "
1087 "B<REG_STARTEND>, ignoring I<nmatch>."
1088 msgstr ""
1089 "أبلغ فقط عن النجاح الكلي. يستخدم B<regexec>() فقط I<pmatch> لـ "
1090 "B<REG_STARTEND>، متجاهلاً I<nmatch>."
1091
1092 #. type: Plain text
1093 #: debian-trixie
1094 msgid ""
1095 "B<regexec>() is used to match a null-terminated string against the compiled "
1096 "pattern buffer in I<*preg>, which must have been initialised with "
1097 "B<regexec>(). I<eflags> is the bitwise OR of zero or more of the following "
1098 "flags:"
1099 msgstr ""
1100 "يُستخدم B<regexec>() لمطابقة سلسلة محارف منتهية بصفر مع مخبأ النمط المترجم في "
1101 "I<*preg>، الذي يجب أن يكون قد هُيئ مع B<regexec>(). I<eflags> هو OR بتّي"
1102 " لصفر "
1103 "أو أكثر من الأعلام التالية:"
1104
1105 #. type: Plain text
1106 #: debian-trixie fedora-44 fedora-rawhide
1107 msgid ""
1108 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
1109 "[I<string>,I< string + strlen(string)>). This allows matching embedded NUL "
1110 "bytes and avoids a B<strlen>(3) on known-length strings. If any matches "
1111 "are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match "
1112 "succeeded, and I<nmatch> E<gt> 0), they overwrite I<pmatch> as usual, and "
1113 "the match offsets remain relative to I<string> (not I<string + pmatch[0]."
1114 "rm_so>). This flag is a BSD extension, not present in POSIX."
1115 msgstr ""
1116 "طابق [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) بدلاً من "
1117 "[I<string>,I< string + strlen(string)>). يسمح هذا بمطابقة وحدات البايت NUL "
1118 "المضمنة ويتجنب B<strlen>(3) على سلاسل المحارف ذات الطول المعروف. إذا أُعيدت "
1119 "أي مطابقات (لم يُمرر B<REG_NOSUB> إلى B<regcomp>()، نجحت المطابقة، و "
1120 "I<nmatch> E<gt> 0)، فإنها تستبدل I<pmatch> كالمعتاد، وتبقى إزاحات المطابقة "
1121 "نسبية إلى I<string> (وليس I<string + pmatch[0].rm_so>). هذا العلم هو امتداد "
1122 "BSD، غير موجود في POSIX."
1123
1124 #. type: Plain text
1125 #: debian-trixie fedora-44 fedora-rawhide
1126 msgid ""
1127 "Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the "
1128 "locations of matches within I<string>: B<regexec>() fills I<nmatch> "
1129 "elements of I<pmatch> with results: I<pmatch[0]> corresponds to the entire "
1130 "match, I<pmatch[1]> to the first subexpression, etc. If there were more "
1131 "matches than I<nmatch>, they are discarded; if fewer, unused elements of "
1132 "I<pmatch> are filled with B<-1>s."
1133 msgstr ""
1134 "ما لم يُمرر B<REG_NOSUB> إلى B<regcomp>()، يمكن الحصول على مواقع المطابقات "
1135 "داخل I<string>: يملأ B<regexec>() عناصر I<nmatch> من I<pmatch> بالنتائج: "
1136 "I<pmatch[0]> يقابل المطابقة الكاملة، I<pmatch[1]> يقابل أول تعبير فرعي، "
1137 "إلخ. إذا كان هناك مطابقات أكثر من I<nmatch>، تُتجاهل؛ إذا كان أقل، تملأ "
1138 "العناصر غير المستخدمة من I<pmatch> بقيم B<-1>."
1139
1140 #. type: Plain text
1141 #: debian-trixie
1142 #, no-wrap
1143 msgid ""
1144 "#include E<lt>stdint.hE<gt>\n"
1145 "#include E<lt>stdio.hE<gt>\n"
1146 "#include E<lt>stdlib.hE<gt>\n"
1147 "#include E<lt>regex.hE<gt>\n"
1148 "\\&\n"
1149 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1150 "\\&\n"
1151 "static const char *const str =\n"
1152 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John"
1153 " Foo;\\[rs]n\";\n"
1154 "static const char *const re = \"John.*o\";\n"
1155 "\\&\n"
1156 "int main(void)\n"
1157 "{\n"
1158 " static const char *s = str;\n"
1159 " regex_t regex;\n"
1160 " regmatch_t pmatch[1];\n"
1161 " regoff_t off, len;\n"
1162 "\\&\n"
1163 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1164 " exit(EXIT_FAILURE);\n"
1165 "\\&\n"
1166 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1167 " printf(\"Matches:\\[rs]n\");\n"
1168 "\\&\n"
1169 " for (unsigned int i = 0; ; i++) {\n"
1170 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1171 " break;\n"
1172 "\\&\n"
1173 " off = pmatch[0].rm_so + (s - str);\n"
1174 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1175 " printf(\"#%zu:\\[rs]n\", i);\n"
1176 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1177 " (intmax_t) len);\n"
1178 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +"
1179 " 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 "#include E<lt>stdint.hE<gt>\n"
1188 "#include E<lt>stdio.hE<gt>\n"
1189 "#include E<lt>stdlib.hE<gt>\n"
1190 "#include E<lt>regex.hE<gt>\n"
1191 "\\&\n"
1192 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1193 "\\&\n"
1194 "static const char *const str =\n"
1195 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John"
1196 " Foo;\\[rs]n\";\n"
1197 "static const char *const re = \"John.*o\";\n"
1198 "\\&\n"
1199 "int main(void)\n"
1200 "{\n"
1201 " static const char *s = str;\n"
1202 " regex_t regex;\n"
1203 " regmatch_t pmatch[1];\n"
1204 " regoff_t off, len;\n"
1205 "\\&\n"
1206 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1207 " exit(EXIT_FAILURE);\n"
1208 "\\&\n"
1209 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1210 " printf(\"Matches:\\[rs]n\");\n"
1211 "\\&\n"
1212 " for (unsigned int i = 0; ; i++) {\n"
1213 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1214 " break;\n"
1215 "\\&\n"
1216 " off = pmatch[0].rm_so + (s - str);\n"
1217 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1218 " printf(\"#%zu:\\[rs]n\", i);\n"
1219 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1220 " (intmax_t) len);\n"
1221 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +"
1222 " pmatch[0].rm_so);\n"
1223 "\\&\n"
1224 " s += pmatch[0].rm_eo;\n"
1225 " }\n"
1226 "\\&\n"
1227 " exit(EXIT_SUCCESS);\n"
1228 "}\n"
1229
1230 #. type: TH
1231 #: fedora-44 fedora-rawhide
1232 #, no-wrap
1233 msgid "2025-02-10"
1234 msgstr "10 فبراير 2025"
1235
1236 #. type: TH
1237 #: fedora-44 fedora-rawhide
1238 #, no-wrap
1239 msgid "Linux man-pages 6.13"
1240 msgstr "صفحات دليل لينكس 6.13"
1241
1242 #. type: Plain text
1243 #: fedora-44 fedora-rawhide
1244 #, no-wrap
1245 msgid ""
1246 "#include E<lt>stdint.hE<gt>\n"
1247 "#include E<lt>stdio.hE<gt>\n"
1248 "#include E<lt>stdlib.hE<gt>\n"
1249 "#include E<lt>regex.hE<gt>\n"
1250 "\\&\n"
1251 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1252 "\\&\n"
1253 "static const char *const str =\n"
1254 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John"
1255 " Foo;\\[rs]n\";\n"
1256 "static const char *const re = \"John.*o\";\n"
1257 "\\&\n"
1258 "int main(void)\n"
1259 "{\n"
1260 " static const char *s = str;\n"
1261 " regex_t regex;\n"
1262 " regmatch_t pmatch[1];\n"
1263 " regoff_t off, len;\n"
1264 "\\&\n"
1265 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1266 " exit(EXIT_FAILURE);\n"
1267 "\\&\n"
1268 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1269 " printf(\"Matches:\\[rs]n\");\n"
1270 "\\&\n"
1271 " for (unsigned int i = 0; ; i++) {\n"
1272 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1273 " break;\n"
1274 "\\&\n"
1275 " off = pmatch[0].rm_so + (s - str);\n"
1276 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1277 " printf(\"#%u:\\[rs]n\", i);\n"
1278 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1279 " (intmax_t) len);\n"
1280 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +"
1281 " pmatch[0].rm_so);\n"
1282 "\\&\n"
1283 " s += pmatch[0].rm_eo;\n"
1284 " }\n"
1285 "\\&\n"
1286 " exit(EXIT_SUCCESS);\n"
1287 "}\n"
1288 msgstr ""
1289 "#include E<lt>stdint.hE<gt>\n"
1290 "#include E<lt>stdio.hE<gt>\n"
1291 "#include E<lt>stdlib.hE<gt>\n"
1292 "#include E<lt>regex.hE<gt>\n"
1293 "\\&\n"
1294 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1295 "\\&\n"
1296 "static const char *const str =\n"
1297 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John"
1298 " Foo;\\[rs]n\";\n"
1299 "static const char *const re = \"John.*o\";\n"
1300 "\\&\n"
1301 "int main(void)\n"
1302 "{\n"
1303 " static const char *s = str;\n"
1304 " regex_t regex;\n"
1305 " regmatch_t pmatch[1];\n"
1306 " regoff_t off, len;\n"
1307 "\\&\n"
1308 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1309 " exit(EXIT_FAILURE);\n"
1310 "\\&\n"
1311 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1312 " printf(\"Matches:\\[rs]n\");\n"
1313 "\\&\n"
1314 " for (unsigned int i = 0; ; i++) {\n"
1315 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1316 " break;\n"
1317 "\\&\n"
1318 " off = pmatch[0].rm_so + (s - str);\n"
1319 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1320 " printf(\"#%u:\\[rs]n\", i);\n"
1321 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1322 " (intmax_t) len);\n"
1323 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +"
1324 " pmatch[0].rm_so);\n"
1325 "\\&\n"
1326 " s += pmatch[0].rm_eo;\n"
1327 " }\n"
1328 "\\&\n"
1329 " exit(EXIT_SUCCESS);\n"
1330 "}\n"
1331
1332 #. type: TH
1333 #: mageia-cauldron
1334 #, no-wrap
1335 msgid "2026-02-10"
1336 msgstr "10 فبراير 2026"
1337
1338 #. type: TH
1339 #: mageia-cauldron
1340 #, no-wrap
1341 msgid "Linux man-pages 6.17"
1342 msgstr "صفحات دليل لينكس 6.17"
1343
1344 #. type: Plain text
1345 #: mageia-cauldron
1346 msgid ""
1347 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
1348 "[I<string>,I< string + strlen(string)>). This allows matching embedded NUL "
1349 "bytes and avoids a B<strlen>(3) on known-length strings. If any matches "
1350 "are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match "
1351 "succeeded, and I<n> E<gt> 0), they overwrite I<pmatch> as usual, and the "
1352 "match offsets remain relative to I<string> (not I<string + pmatch[0]."
1353 "rm_so>). This flag is a BSD extension, not present in POSIX."
1354 msgstr ""
1355 "طابق [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) بدلاً من "
1356 "[I<string>,I< string + strlen(string)>). يسمح هذا بمطابقة وحدات البايت NUL "
1357 "المضمنة ويتجنب B<strlen>(3) على سلاسل المحارف ذات الطول المعروف. إذا أُعيدت "
1358 "أي مطابقات (لم يُمرر B<REG_NOSUB> إلى B<regcomp>()، نجحت المطابقة، و I<n> "
1359 "E<gt> 0)، فإنها تستبدل I<pmatch> كالمعتاد، وتبقى إزاحات المطابقة نسبية إلى "
1360 "I<string> (وليس I<string + pmatch[0].rm_so>). هذا العلم هو امتداد BSD، غير "
1361 "موجود في POSIX."
1362
1363 #. type: TH
1364 #: opensuse-leap-16-1 opensuse-tumbleweed
1365 #, no-wrap
1366 msgid "Linux man-pages (unreleased)"
1367 msgstr "صفحات دليل لينكس (لم تصدر بعد)"
1368