# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:39+0200\n" "PO-Revision-Date: 2026-06-06 08:53+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 &&" " n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "regex" msgstr "regex" #. type: TH #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "2026-02-22" msgstr "22 فبراير 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "regcomp, regexec, regerror, regfree - POSIX regex functions" msgstr "regcomp, regexec, regerror, regfree - دوال التعبير النمطي POSIX" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "المكتبة" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "مكتبة سي المعيارية (I،\\ I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Eregex.hE>\n" msgstr "B<#include Eregex.hE>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "BIB<, const char *restrict >IB<," ">\n" "B< int >IB<);>\n" "BIB<,>\n" "B< const char *restrict >IB<,>\n" "B< size_t >IB<, regmatch_t >IB<[_Nullable restrict >IB<],>\n" "B< int >IB<);>\n" msgstr "" "BIB<, const char *restrict >IB<," ">\n" "B< int >IB<);>\n" "BIB<,>\n" "B< const char *restrict >IB<,>\n" "B< size_t >IB<, regmatch_t >IB<[_Nullable restrict >IB<],>\n" "B< int >IB<);>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "Bsize_t errbuf_size;\n" "B< int >IB<, const regex_t *_Nullable restrict >IB<" ",>\n" "B< char >IB<[_Nullable restrict >IB<],>\n" "B< size_t >IB<);>\n" "BIB<);>\n" msgstr "" "Bsize_t errbuf_size;\n" "B< int >IB<, const regex_t *_Nullable restrict >IB<" ",>\n" "B< char >IB<[_Nullable restrict >IB<],>\n" "B< size_t >IB<);>\n" "BIB<);>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B\n" "B\n" "B<} regex_t;>\n" msgstr "" "B\n" "B\n" "B<} regex_t;>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B\n" "B\n" "B\n" "B<} regmatch_t;>\n" msgstr "" "B\n" "B\n" "B\n" "B<} regmatch_t;>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B /* ... */ B\n" msgstr "B /* ... */ B\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Compilation" msgstr "التجميع" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() is used to compile a regular expression into a form that is " "suitable for subsequent B() searches." msgstr "" "تُستخدم B() لتجميع تعبير نمطي إلى صيغة مناسبة لعمليات بحث " "B() لاحقة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, the pattern buffer at I<*preg> is initialized. I is a " "null-terminated string. The locale must be the same when running " "B()." msgstr "" "عند النجاح، يُهيأ مخبأ النمط عند I<*preg>. I هي سلسلة محارف منتهية " "بقيمة خالية. يجب أن يكون الإعداد المحلي نفسه عند تشغيل B()." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "After B() succeeds, Ire_nsub> holds the number of " "subexpressions in I. Thus, a value of Ire_nsub> + 1 " "passed as I to B() is sufficient to capture all matches." msgstr "" "بعد نجاح B() ، يحمل Ire_nsub> عدد التعبيرات الفرعية في " "I. لذا، فإن قيمة Ire_nsub> + 1 الممررة كـ I إلى " "B() كافية لالتقاط جميع التطابقات." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is the bitwise OR of zero or more of the following:" msgstr "I هو OR على مستوى البتات لصفر أو أكثر مما يلي:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Use POSIX Extended Regular Expression syntax when interpreting I. If " "not set, POSIX Basic Regular Expression syntax is used." msgstr "" "استخدم صيغة التعبير النمطي الموسع POSIX عند تفسير I. إذا لم يُضبط، " "تُستخدم صيغة التعبير النمطي الأساسي POSIX." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Do not differentiate case. Subsequent B() searches using this " "pattern buffer will be case insensitive." msgstr "" "لا تفرق بين حالة الأحرف. ستكون عمليات بحث B() اللاحقة باستخدام " "مخبأ النمط هذا غير حساسة لحالة الأحرف." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Report only overall success. B() will use only I for " "B, ignoring I." msgstr "" "أبلغ فقط عن النجاح الكلي. ستستخدم B() فقط I لـ " "B، متجاهلة I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Match-any-character operators don't match a newline." msgstr "لا تطابق عوامل تشغيل تطابق أي حرف سطرًا جديدًا." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A nonmatching list (B<[\\[ha]...\\&]>) not containing a newline does not " "match a newline." msgstr "" "قائمة غير مطابقة (B<[\\[ha]...\\&]>) لا تحتوي على سطر جديد لا تطابق سطرًا " "جديدًا." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Match-beginning-of-line operator (B<\\[ha]>) matches the empty string " "immediately after a newline, regardless of whether I, the execution " "flags of B(), contains B." msgstr "" "عامل مطابقة بداية السطر (B<\\[ha]>) يطابق السلسلة الفارغة فورًا بعد سطر جديد، " "بغض النظر عن احتواء I، أعلام تنفيذ B()، على B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Match-end-of-line operator (B<$>) matches the empty string immediately " "before a newline, regardless of whether I contains B." msgstr "" "عامل مطابقة نهاية السطر (B<$>) يطابق السلسلة الفارغة فورًا قبل سطر جديد، بغض " "النظر عن احتواء I على B." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Matching" msgstr "المطابقة" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() is used to match a null-terminated string against the compiled " "pattern buffer in I<*preg>, which must have been initialised with " "B(). I is the bitwise OR of zero or more of the following " "flags:" msgstr "" "تُستخدم B() لمطابقة سلسلة محارف منتهية بقيمة فارغة مع مخبأ النمط " "المُجمَّع في I<*preg>، الذي يجب أن يكون قد تمت تهيئته باستخدام B(). " "I هو OR على مستوى البت لصفر أو أكثر من الأعلام التالية:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The match-beginning-of-line operator always fails to match (but see the " "compilation flag B above). This flag may be used when " "different portions of a string are passed to B() and the beginning " "of the string should not be interpreted as the beginning of the line." msgstr "" "عامل مطابقة بداية السطر يفشل دائمًا في المطابقة (لكن انظر علم التجميع " "B أعلاه). يمكن استخدام هذا العلم عندما تُمرَّر أجزاء مختلفة من " "سلسلة محارف إلى B() ولا ينبغي تفسير بداية السلسلة على أنها بداية " "السطر." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The match-end-of-line operator always fails to match (but see the " "compilation flag B above)." msgstr "" "عامل مطابقة نهاية السطر يفشل دائمًا في المطابقة (لكن انظر علم التجميع " "B أعلاه)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #| msgid "" #| "Match [I,I< string + pmatch[0].rm_eo>) instead " #| "of [I,\\~I). This allows matching embedded NUL " #| "bytes. If any matches are returned (B wasn't passed to " #| "B(), the match succeeded, and I E 0), they overwrite " #| "I as usual, and the match offsets remain relative to I " #| "(not I). This flag is a BSD extension, not " #| "present in POSIX." msgid "" "Match [I,I< string + pmatch[0].rm_eo>) instead of " "[I,\\ I). This allows matching embedded NUL bytes. " "If any matches are returned (B wasn't passed to B(), the " "match succeeded, and I E 0), they overwrite I as usual, and " "the match offsets remain relative to I (not I). This flag is a BSD extension, not present in POSIX." msgstr "" "يطابق [I,I< string + pmatch[0].rm_eo>) بدلاً من " "[I,\\ I). يسمح هذا بمطابقة وحدات البايت NUL" " المُضمَّنة. " "إذا تم إرجاع أي مطابقات (لم يُمرَّر B إلى B()، نجحت " "المطابقة، و I E 0)، فإنها تستبدل I كالمعتاد، وتبقى إزاحات " "المطابقة نسبة إلى I (وليس I). هذا العلم هو " "امتداد BSD، غير موجود في POSIX." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Match offsets" msgstr "إزاحات المطابقة" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Unless B was passed to B(), it is possible to obtain the " "locations of matches within I: B() fills I elements of " "I with results: I corresponds to the entire match, " "I to the first subexpression, etc. If there were more matches " "than I, they are discarded; if fewer, unused elements of I are " "filled with B<-1>s." msgstr "" "ما لم يُمرَّر B إلى B()، يمكن الحصول على مواقع المطابقات " "داخل I: تملأ B() عناصر I من I بالنتائج: يتوافق " "I مع المطابقة بأكملها، و I مع أول تعبير فرعي، وهكذا. " "إذا كان هناك مطابقات أكثر من I، يتم التخلص منها؛ إذا كان أقل، تُملأ " "العناصر غير المستخدمة من I بقيم B<-1>." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Each returned valid (non-B<-1>) match corresponds to the range [I,I< string + rm_eo>)." msgstr "" "كل مطابقة صالحة مُعادة (غير B<-1>) تتوافق مع النطاق [I,I< " "string + rm_eo>)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is a signed integer type capable of storing the largest value " "that can be stored in either an I type or a I type." msgstr "" "I هو نوع عدد صحيح مُوقَّع قادر على تخزين أكبر قيمة يمكن تخزينها إما " "في نوع I أو نوع I." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Error reporting" msgstr "الإبلاغ عن الأخطاء" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() is used to turn the error codes that can be returned by both " "B() and B() into error message strings." msgstr "" "تُستخدم B() لتحويل رموز الخطأ التي يمكن إرجاعها بواسطة كل من " "B() و B() إلى سلاسل محارف لرسائل الخطأ." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I isn't a null pointer, I must be the latest error " "returned from an operation on I." msgstr "" "إذا لم يكن I مؤشرًا فارغًا، يجب أن يكون I أحدث خطأ تم إرجاعه" " من " "عملية على I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I isn't 0, up to I bytes are copied to " "I; the error string is always null-terminated, and truncated to fit." msgstr "" "إذا لم يكن I 0، يتم نسخ ما يصل إلى I بايت إلى " "I؛ سلسلة محارف الخطأ تكون دائمًا منتهية بقيمة فارغة، ومُقتطعة لتناسب." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Freeing" msgstr "التحرير" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() deinitializes the pattern buffer at I<*preg>, freeing any " "associated memory; I<*preg> must have been initialized via B()." msgstr "" "B() تُنهي تهيئة مخزن النمط عند I<*preg>، مُحررةً أي ذاكرة مرتبطة؛" " يجب " "أن يكون I<*preg> قد هُيئ عبر B()." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "قيمة الإرجاع" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() returns zero for a successful compilation or an error code for " "failure." msgstr "B() تُرجع صفرًا عند التجميع الناجح أو رمز خطأ عند الفشل." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() returns zero for a successful match or B for " "failure." msgstr "" "B() تُرجع صفرًا عند المطابقة الناجحة أو B عند الفشل." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() returns the size of the buffer required to hold the string." msgstr "B() تُرجع حجم المخزن المطلوب لاحتواء سلسلة المحارف." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "الأخطاء" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The following errors can be returned by B():" msgstr "يمكن إرجاع الأخطاء التالية بواسطة B():" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Invalid use of back reference operator." msgstr "استخدام غير صحيح لعامل المرجع الخلفي." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Invalid use of pattern operators such as group or list." msgstr "استخدام غير صحيح لعوامل النمط مثل المجموعة أو القائمة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Invalid use of repetition operators such as using \\[aq]*\\[aq] as the first " "character." msgstr "استخدام غير صحيح لعوامل التكرار مثل استخدام \\[aq]*\\[aq] كأول محرف." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Un-matched brace interval operators." msgstr "عوامل نطاق الأقواس غير المتطابقة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Un-matched bracket list operators." msgstr "عوامل قائمة الأقواس غير المتطابقة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Invalid collating element." msgstr "عنصر ترتيب غير صحيح." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Unknown character class name." msgstr "اسم فئة محارف غير معروف." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Nonspecific error. This is not defined by POSIX." msgstr "خطأ غير محدد. هذا غير مُعرَّف بواسطة POSIX." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Trailing backslash." msgstr "شرطة مائلة عكسية زائدة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Un-matched parenthesis group operators." msgstr "عوامل مجموعة الأقواس غير المتطابقة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Invalid use of the range operator; for example, the ending point of the " "range occurs prior to the starting point." msgstr "" "استخدام غير صحيح لعامل النطاق؛ على سبيل المثال، تحدث نقطة نهاية النطاق قبل " "نقطة البداية." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Compiled regular expression requires a pattern buffer larger than 64\\ kB. " "This is not defined by POSIX." msgstr "" "يتطلب التعبير النمطي المُجمَّع مخزن نمط أكبر من 64\\ كيلوبايت. هذا غير" " مُعرَّف " "بواسطة POSIX." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The regex routines ran out of memory." msgstr "نفدت الذاكرة من روتينات regex." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Invalid back reference to a subexpression." msgstr "مرجع خلفي غير صحيح لتعبير فرعي." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "السمات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B(7)." #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "الواجهة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "السمة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "القيمة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr ".na\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr ".nh\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B(),\n" "B()" msgstr "" "B(),\n" "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "سلامة الخيوط" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Safe locale" msgstr "المنطقة (locale) آمنة لتعدد المسالك (MT-Safe)" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Safe env" msgstr "بيئة آمنة لتعدد الخيوط (MT-Safe)" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Safe" msgstr "MT-Safe" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2008." msgstr "POSIX.1-2008." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2001." msgstr "POSIX.1-2001." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Prior to POSIX.1-2008, I was required to be capable of storing the " "largest value that can be stored in either an I type or a I " "type." msgstr "" "قبل POSIX.1-2008، كان مطلوبًا من I أن يكون قادرًا على تخزين أكبر " "قيمة يمكن تخزينها في نوع I أو نوع I." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "CAVEATS" msgstr "تحذيرات" #. glibc, musl, 4.4BSD, illumos #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is only required to be initialized if B wasn't " "specified, but all known implementations initialize it regardless." msgstr "" "I مطلوب فقط أن يُهيَّأ إذا لم يُحدد B، لكن جميع التطبيقات " "المعروفة تُهيِّئه بغض النظر." #. illumos has two more start/end pairs and the first one is of pointers #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Both I and I may (and do) have more members, in any " "order. Always reference them by name." msgstr "" "قد يحتوي كل من I و I على أعضاء إضافيين (ويفعلون ذلك)، " "بأي ترتيب. ارجع إليهم دائمًا بالاسم." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#include Estdcountof.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eregex.hE\n" "\\&\n" "static const char *const str =\n" " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John" " Foo;\\[rs]n\";\n" "static const char *const re = \"John.*o\";\n" "\\&\n" "int main(void)\n" "{\n" " static const char *s = str;\n" " regex_t regex;\n" " regmatch_t pmatch[1];\n" " regoff_t off, len;\n" "\\&\n" " if (regcomp(®ex, re, REG_NEWLINE))\n" " exit(EXIT_FAILURE);\n" "\\&\n" " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n" " printf(\"Matches:\\[rs]n\");\n" "\\&\n" " for (unsigned int i = 0; ; i++) {\n" " if (regexec(®ex, s, countof(pmatch), pmatch, 0))\n" " break;\n" "\\&\n" " off = pmatch[0].rm_so + (s - str);\n" " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n" " printf(\"#%u:\\[rs]n\", i);\n" " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n" " (intmax_t) len);\n" " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +" " pmatch[0].rm_so);\n" "\\&\n" " s += pmatch[0].rm_eo;\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Estdcountof.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eregex.hE\n" "\\&\n" "static const char *const str =\n" " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John" " Foo;\\[rs]n\";\n" "static const char *const re = \"John.*o\";\n" "\\&\n" "int main(void)\n" "{\n" " static const char *s = str;\n" " regex_t regex;\n" " regmatch_t pmatch[1];\n" " regoff_t off, len;\n" "\\&\n" " if (regcomp(®ex, re, REG_NEWLINE))\n" " exit(EXIT_FAILURE);\n" "\\&\n" " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n" " printf(\"Matches:\\[rs]n\");\n" "\\&\n" " for (unsigned int i = 0; ; i++) {\n" " if (regexec(®ex, s, countof(pmatch), pmatch, 0))\n" " break;\n" "\\&\n" " off = pmatch[0].rm_so + (s - str);\n" " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n" " printf(\"#%u:\\[rs]n\", i);\n" " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n" " (intmax_t) len);\n" " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +" " pmatch[0].rm_so);\n" "\\&\n" " s += pmatch[0].rm_eo;\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(1), B(7)" msgstr "B(1), B(7)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The glibc manual section, I" msgstr "قسم دليل glibc، I<التعبيرات النمطية>" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 يونيو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "مكتبة سي المعيارية (I، I<-lc>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "BIB<, const char *restrict >IB<," ">\n" "B< int >IB<);>\n" "BIB<, const char *restrict >I<" "string>B<,>\n" "B< size_t >IB<, regmatch_t >IB<[_Nullable restrict" " .>IB<],>\n" "B< int >IB<);>\n" msgstr "" "BIB<, const char *restrict >IB<," ">\n" "B< int >IB<);>\n" "BIB<, const char *restrict >I<" "string>B<,>\n" "B< size_t >IB<, regmatch_t >IB<[_Nullable restrict" " .>IB<],>\n" "B< int >IB<);>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "BIB<, const regex_t *_Nullable restrict >I<" "preg>B<,>\n" "B< char >IB<[_Nullable restrict .>IB<],>\n" "B< size_t >IB<);>\n" "BIB<);>\n" msgstr "" "BIB<, const regex_t *_Nullable restrict >I<" "preg>B<,>\n" "B< char >IB<[_Nullable restrict .>IB<],>\n" "B< size_t >IB<);>\n" "BIB<);>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "After B() succeeds, Ire_nsub> holds the number of " "subexpressions in I. Thus, a value of Ire_nsub> + 1 " "passed as I to B() is sufficient to capture all matches." msgstr "" "بعد نجاح B()، يحمل Ire_nsub> عدد التعبيرات الفرعية في " "I. لذا، قيمة Ire_nsub> + 1 الممررة كـ I إلى " "B() كافية لالتقاط جميع المطابقات." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "Report only overall success. B() will use only I for " "B, ignoring I." msgstr "" "أبلغ فقط عن النجاح الكلي. يستخدم B() فقط I لـ " "B، متجاهلاً I." #. type: Plain text #: debian-trixie msgid "" "B() is used to match a null-terminated string against the compiled " "pattern buffer in I<*preg>, which must have been initialised with " "B(). I is the bitwise OR of zero or more of the following " "flags:" msgstr "" "يُستخدم B() لمطابقة سلسلة محارف منتهية بصفر مع مخبأ النمط المترجم في " "I<*preg>، الذي يجب أن يكون قد هُيئ مع B(). I هو OR بتّي" " لصفر " "أو أكثر من الأعلام التالية:" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "Match [I,I< string + pmatch[0].rm_eo>) instead of " "[I,I< string + strlen(string)>). This allows matching embedded NUL " "bytes and avoids a B(3) on known-length strings. If any matches " "are returned (B wasn't passed to B(), the match " "succeeded, and I E 0), they overwrite I as usual, and " "the match offsets remain relative to I (not I). This flag is a BSD extension, not present in POSIX." msgstr "" "طابق [I,I< string + pmatch[0].rm_eo>) بدلاً من " "[I,I< string + strlen(string)>). يسمح هذا بمطابقة وحدات البايت NUL " "المضمنة ويتجنب B(3) على سلاسل المحارف ذات الطول المعروف. إذا أُعيدت " "أي مطابقات (لم يُمرر B إلى B()، نجحت المطابقة، و " "I E 0)، فإنها تستبدل I كالمعتاد، وتبقى إزاحات المطابقة " "نسبية إلى I (وليس I). هذا العلم هو امتداد " "BSD، غير موجود في POSIX." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "Unless B was passed to B(), it is possible to obtain the " "locations of matches within I: B() fills I " "elements of I with results: I corresponds to the entire " "match, I to the first subexpression, etc. If there were more " "matches than I, they are discarded; if fewer, unused elements of " "I are filled with B<-1>s." msgstr "" "ما لم يُمرر B إلى B()، يمكن الحصول على مواقع المطابقات " "داخل I: يملأ B() عناصر I من I بالنتائج: " "I يقابل المطابقة الكاملة، I يقابل أول تعبير فرعي، " "إلخ. إذا كان هناك مطابقات أكثر من I، تُتجاهل؛ إذا كان أقل، تملأ " "العناصر غير المستخدمة من I بقيم B<-1>." #. type: Plain text #: debian-trixie #, no-wrap msgid "" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eregex.hE\n" "\\&\n" "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n" "\\&\n" "static const char *const str =\n" " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John" " Foo;\\[rs]n\";\n" "static const char *const re = \"John.*o\";\n" "\\&\n" "int main(void)\n" "{\n" " static const char *s = str;\n" " regex_t regex;\n" " regmatch_t pmatch[1];\n" " regoff_t off, len;\n" "\\&\n" " if (regcomp(®ex, re, REG_NEWLINE))\n" " exit(EXIT_FAILURE);\n" "\\&\n" " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n" " printf(\"Matches:\\[rs]n\");\n" "\\&\n" " for (unsigned int i = 0; ; i++) {\n" " if (regexec(®ex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n" " break;\n" "\\&\n" " off = pmatch[0].rm_so + (s - str);\n" " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n" " printf(\"#%zu:\\[rs]n\", i);\n" " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n" " (intmax_t) len);\n" " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +" " pmatch[0].rm_so);\n" "\\&\n" " s += pmatch[0].rm_eo;\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eregex.hE\n" "\\&\n" "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n" "\\&\n" "static const char *const str =\n" " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John" " Foo;\\[rs]n\";\n" "static const char *const re = \"John.*o\";\n" "\\&\n" "int main(void)\n" "{\n" " static const char *s = str;\n" " regex_t regex;\n" " regmatch_t pmatch[1];\n" " regoff_t off, len;\n" "\\&\n" " if (regcomp(®ex, re, REG_NEWLINE))\n" " exit(EXIT_FAILURE);\n" "\\&\n" " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n" " printf(\"Matches:\\[rs]n\");\n" "\\&\n" " for (unsigned int i = 0; ; i++) {\n" " if (regexec(®ex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n" " break;\n" "\\&\n" " off = pmatch[0].rm_so + (s - str);\n" " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n" " printf(\"#%zu:\\[rs]n\", i);\n" " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n" " (intmax_t) len);\n" " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +" " pmatch[0].rm_so);\n" "\\&\n" " s += pmatch[0].rm_eo;\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2025-02-10" msgstr "10 فبراير 2025" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: Plain text #: fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eregex.hE\n" "\\&\n" "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n" "\\&\n" "static const char *const str =\n" " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John" " Foo;\\[rs]n\";\n" "static const char *const re = \"John.*o\";\n" "\\&\n" "int main(void)\n" "{\n" " static const char *s = str;\n" " regex_t regex;\n" " regmatch_t pmatch[1];\n" " regoff_t off, len;\n" "\\&\n" " if (regcomp(®ex, re, REG_NEWLINE))\n" " exit(EXIT_FAILURE);\n" "\\&\n" " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n" " printf(\"Matches:\\[rs]n\");\n" "\\&\n" " for (unsigned int i = 0; ; i++) {\n" " if (regexec(®ex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n" " break;\n" "\\&\n" " off = pmatch[0].rm_so + (s - str);\n" " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n" " printf(\"#%u:\\[rs]n\", i);\n" " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n" " (intmax_t) len);\n" " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +" " pmatch[0].rm_so);\n" "\\&\n" " s += pmatch[0].rm_eo;\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eregex.hE\n" "\\&\n" "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n" "\\&\n" "static const char *const str =\n" " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John" " Foo;\\[rs]n\";\n" "static const char *const re = \"John.*o\";\n" "\\&\n" "int main(void)\n" "{\n" " static const char *s = str;\n" " regex_t regex;\n" " regmatch_t pmatch[1];\n" " regoff_t off, len;\n" "\\&\n" " if (regcomp(®ex, re, REG_NEWLINE))\n" " exit(EXIT_FAILURE);\n" "\\&\n" " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n" " printf(\"Matches:\\[rs]n\");\n" "\\&\n" " for (unsigned int i = 0; ; i++) {\n" " if (regexec(®ex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n" " break;\n" "\\&\n" " off = pmatch[0].rm_so + (s - str);\n" " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n" " printf(\"#%u:\\[rs]n\", i);\n" " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n" " (intmax_t) len);\n" " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s +" " pmatch[0].rm_so);\n" "\\&\n" " s += pmatch[0].rm_eo;\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: mageia-cauldron #, no-wrap msgid "2026-02-10" msgstr "10 فبراير 2026" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: Plain text #: mageia-cauldron msgid "" "Match [I,I< string + pmatch[0].rm_eo>) instead of " "[I,I< string + strlen(string)>). This allows matching embedded NUL " "bytes and avoids a B(3) on known-length strings. If any matches " "are returned (B wasn't passed to B(), the match " "succeeded, and I E 0), they overwrite I as usual, and the " "match offsets remain relative to I (not I). This flag is a BSD extension, not present in POSIX." msgstr "" "طابق [I,I< string + pmatch[0].rm_eo>) بدلاً من " "[I,I< string + strlen(string)>). يسمح هذا بمطابقة وحدات البايت NUL " "المضمنة ويتجنب B(3) على سلاسل المحارف ذات الطول المعروف. إذا أُعيدت " "أي مطابقات (لم يُمرر B إلى B()، نجحت المطابقة، و I " "E 0)، فإنها تستبدل I كالمعتاد، وتبقى إزاحات المطابقة نسبية إلى " "I (وليس I). هذا العلم هو امتداد BSD، غير " "موجود في POSIX." #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"