diff options
Diffstat (limited to 'templates/man3/regex.3.pot')
-rw-r--r-- | templates/man3/regex.3.pot | 1185 |
1 files changed, 1185 insertions, 0 deletions
diff --git a/templates/man3/regex.3.pot b/templates/man3/regex.3.pot new file mode 100644 index 00000000..66eef597 --- /dev/null +++ b/templates/man3/regex.3.pot @@ -0,0 +1,1185 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2024-03-01 17:05+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. type: TH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "regex" +msgstr "" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "2023-10-31" +msgstr "" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "Linux man-pages 6.06" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "NAME" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "regcomp, regexec, regerror, regfree - POSIX regex functions" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "LIBRARY" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Standard C library (I<libc>, I<-lc>)" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SYNOPSIS" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<#include E<lt>regex.hE<gt>>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "" +"B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n" +"B< int >I<cflags>B<);>\n" +"B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<string>B<,>\n" +"B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[_Nullable restrict .>I<nmatch>B<],>\n" +"B< int >I<eflags>B<);>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "" +"B<size_t regerror(int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<,>\n" +"B< char >I<errbuf>B<[_Nullable restrict .>I<errbuf_size>B<],>\n" +"B< size_t >I<errbuf_size>B<);>\n" +"B<void regfree(regex_t *>I<preg>B<);>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "" +"B<typedef struct {>\n" +"B<size_t re_nsub;>\n" +"B<} regex_t;>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "" +"B<typedef struct {>\n" +"B<regoff_t rm_so;>\n" +"B<regoff_t rm_eo;>\n" +"B<} regmatch_t;>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "B<typedef> /* ... */ B<regoff_t;>\n" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "DESCRIPTION" +msgstr "" + +#. type: SS +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "Compilation" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"B<regcomp>() is used to compile a regular expression into a form that is " +"suitable for subsequent B<regexec>() searches." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"On success, the pattern buffer at I<*preg> is initialized. I<regex> is a " +"null-terminated string. The locale must be the same when running " +"B<regexec>()." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of " +"subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 " +"passed as I<nmatch> to B<regexec>() is sufficient to capture all matches." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "I<cflags> is the bitwise OR of zero or more of the following:" +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_EXTENDED>" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"Use POSIX Extended Regular Expression syntax when interpreting I<regex>. If " +"not set, POSIX Basic Regular Expression syntax is used." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_ICASE>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Do not differentiate case. Subsequent B<regexec>() searches using this " +"pattern buffer will be case insensitive." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_NOSUB>" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"Report only overall success. B<regexec>() will use only I<pmatch> for " +"B<REG_STARTEND>, ignoring I<nmatch>." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_NEWLINE>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Match-any-character operators don't match a newline." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"A nonmatching list (B<[\\[ha]...\\&]>) not containing a newline does not " +"match a newline." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Match-beginning-of-line operator (B<\\[ha]>) matches the empty string " +"immediately after a newline, regardless of whether I<eflags>, the execution " +"flags of B<regexec>(), contains B<REG_NOTBOL>." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Match-end-of-line operator (B<$>) matches the empty string immediately " +"before a newline, regardless of whether I<eflags> contains B<REG_NOTEOL>." +msgstr "" + +#. type: SS +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "Matching" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"B<regexec>() is used to match a null-terminated string against the compiled " +"pattern buffer in I<*preg>, which must have been initialised with " +"B<regexec>(). I<eflags> is the bitwise OR of zero or more of the following " +"flags:" +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_NOTBOL>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The match-beginning-of-line operator always fails to match (but see the " +"compilation flag B<REG_NEWLINE> above). This flag may be used when " +"different portions of a string are passed to B<regexec>() and the beginning " +"of the string should not be interpreted as the beginning of the line." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_NOTEOL>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The match-end-of-line operator always fails to match (but see the " +"compilation flag B<REG_NEWLINE> above)." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_STARTEND>" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of " +"[I<string>,I< string + strlen(string)>). This allows matching embedded NUL " +"bytes and avoids a B<strlen>(3) on known-length strings. If any matches " +"are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match " +"succeeded, and I<nmatch> E<gt> 0), they overwrite I<pmatch> as usual, and " +"the match offsets remain relative to I<string> (not I<string + pmatch[0]." +"rm_so>). This flag is a BSD extension, not present in POSIX." +msgstr "" + +#. type: SS +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "Match offsets" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the " +"locations of matches within I<string>: B<regexec>() fills I<nmatch> " +"elements of I<pmatch> with results: I<pmatch[0]> corresponds to the entire " +"match, I<pmatch[1]> to the first subexpression, etc. If there were more " +"matches than I<nmatch>, they are discarded; if fewer, unused elements of " +"I<pmatch> are filled with B<-1>s." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"Each returned valid (non-B<-1>) match corresponds to the range [I<string + " +"rm_so>,I< string + rm_eo>)." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"I<regoff_t> is a signed integer type capable of storing the largest value " +"that can be stored in either an I<ptrdiff_t> type or a I<ssize_t> type." +msgstr "" + +#. type: SS +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "Error reporting" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"B<regerror>() is used to turn the error codes that can be returned by both " +"B<regcomp>() and B<regexec>() into error message strings." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"If I<preg> isn't a null pointer, I<errcode> must be the latest error " +"returned from an operation on I<preg>." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"If I<errbuf_size> isn't 0, up to I<errbuf_size> bytes are copied to " +"I<errbuf>; the error string is always null-terminated, and truncated to fit." +msgstr "" + +#. type: SS +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "Freeing" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"B<regfree>() deinitializes the pattern buffer at I<*preg>, freeing any " +"associated memory; I<*preg> must have been initialized via B<regcomp>()." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "RETURN VALUE" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"B<regcomp>() returns zero for a successful compilation or an error code for " +"failure." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"B<regexec>() returns zero for a successful match or B<REG_NOMATCH> for " +"failure." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"B<regerror>() returns the size of the buffer required to hold the string." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "ERRORS" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The following errors can be returned by B<regcomp>():" +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_BADBR>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Invalid use of back reference operator." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_BADPAT>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Invalid use of pattern operators such as group or list." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_BADRPT>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Invalid use of repetition operators such as using \\[aq]*\\[aq] as the first " +"character." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_EBRACE>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Un-matched brace interval operators." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_EBRACK>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Un-matched bracket list operators." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_ECOLLATE>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Invalid collating element." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_ECTYPE>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Unknown character class name." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_EEND>" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "Nonspecific error. This is not defined by POSIX." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_EESCAPE>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Trailing backslash." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_EPAREN>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Un-matched parenthesis group operators." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_ERANGE>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 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-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_ESIZE>" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"Compiled regular expression requires a pattern buffer larger than 64\\ kB. " +"This is not defined by POSIX." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_ESPACE>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The regex routines ran out of memory." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<REG_ESUBREG>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Invalid back reference to a subexpression." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "ATTRIBUTES" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"For an explanation of the terms used in this section, see B<attributes>(7)." +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Interface" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Attribute" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Value" +msgstr "" + +#. type: tbl table +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid ".na\n" +msgstr "" + +#. type: tbl table +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid ".nh\n" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"B<regcomp>(),\n" +"B<regexec>()" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Thread safety" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "MT-Safe locale" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<regerror>()" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "MT-Safe env" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<regfree>()" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "MT-Safe" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "STANDARDS" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "POSIX.1-2008." +msgstr "" + +#. type: SH +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "HISTORY" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "POSIX.1-2001." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"Prior to POSIX.1-2008, I<regoff_t> was required to be capable of storing the " +"largest value that can be stored in either an I<off_t> type or a I<ssize_t> " +"type." +msgstr "" + +#. type: SH +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "CAVEATS" +msgstr "" + +#. glibc, musl, 4.4BSD, illumos +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"I<re_nsub> is only required to be initialized if B<REG_NOSUB> wasn't " +"specified, but all known implementations initialize it regardless." +msgstr "" + +#. illumos has two more start/end pairs and the first one is of pointers +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +msgid "" +"Both I<regex_t> and I<regmatch_t> may (and do) have more members, in any " +"order. Always reference them by name." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "EXAMPLES" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "" +"#include E<lt>stdint.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>regex.hE<gt>\n" +"\\&\n" +"#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n" +"\\&\n" +"static const char *const str =\n" +" \"1) John Driverhacker;\\en2) John Doe;\\en3) John Foo;\\en\";\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 = \\e\"%s\\e\"\\en\", str);\n" +" printf(\"Matches:\\en\");\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:\\en\", i);\n" +" printf(\"offset = %jd; length = %jd\\en\", (intmax_t) off,\n" +" (intmax_t) len);\n" +" printf(\"substring = \\e\"%.*s\\e\"\\en\", len, s + pmatch[0].rm_so);\n" +"\\&\n" +" s += pmatch[0].rm_eo;\n" +" }\n" +"\\&\n" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SEE ALSO" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "B<grep>(1), B<regex>(7)" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The glibc manual section, I<Regular Expressions>" +msgstr "" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "2023-02-05" +msgstr "" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "Linux man-pages 6.03" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n" +"B< int >I<cflags>B<);>\n" +"B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<string>B<,>\n" +"B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[restrict .>I<nmatch>B<],>\n" +"B< int >I<eflags>B<);>\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"B<size_t regerror(int >I<errcode>B<, const regex_t *restrict >I<preg>B<,>\n" +"B< char >I<errbuf>B<[restrict .>I<errbuf_size>B<], size_t >I<errbuf_size>B<);>\n" +"B<void regfree(regex_t *>I<preg>B<);>\n" +msgstr "" + +#. type: SS +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "POSIX regex compiling" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"B<regcomp>() is supplied with I<preg>, a pointer to a pattern buffer " +"storage area; I<regex>, a pointer to the null-terminated string and " +"I<cflags>, flags used to determine the type of compilation." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"All regular expression searching must be done via a compiled pattern buffer, " +"thus B<regexec>() must always be supplied with the address of a " +"B<regcomp>()-initialized pattern buffer." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "I<cflags> is the bitwise-B<or> of zero or more of the following:" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"Use B<POSIX> Extended Regular Expression syntax when interpreting I<regex>. " +"If not set, B<POSIX> Basic Regular Expression syntax is used." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"Do not report position of matches. The I<nmatch> and I<pmatch> arguments to " +"B<regexec>() are ignored if the pattern buffer supplied was compiled with " +"this flag set." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"A nonmatching list (B<[\\[ha]...]>) not containing a newline does not match " +"a newline." +msgstr "" + +#. type: SS +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "POSIX regex matching" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"B<regexec>() is used to match a null-terminated string against the " +"precompiled pattern buffer, I<preg>. I<nmatch> and I<pmatch> are used to " +"provide information regarding the location of any matches. I<eflags> is the " +"bitwise-B<or> of zero or more of the following flags:" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"Use I<pmatch[0]> on the input string, starting at byte I<pmatch[0].rm_so> " +"and ending before byte I<pmatch[0].rm_eo>. This allows matching embedded " +"NUL bytes and avoids a B<strlen>(3) on large strings. It does not use " +"I<nmatch> on input, and does not change B<REG_NOTBOL> or B<REG_NEWLINE> " +"processing. This flag is a BSD extension, not present in POSIX." +msgstr "" + +#. type: SS +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "Byte offsets" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"Unless B<REG_NOSUB> was set for the compilation of the pattern buffer, it is " +"possible to obtain match addressing information. I<pmatch> must be " +"dimensioned to have at least I<nmatch> elements. These are filled in by " +"B<regexec>() with substring match addresses. The offsets of the " +"subexpression starting at the I<i>th open parenthesis are stored in " +"I<pmatch[i]>. The entire regular expression's match addresses are stored in " +"I<pmatch[0]>. (Note that to return the offsets of I<N> subexpression " +"matches, I<nmatch> must be at least I<N+1>.) Any unused structure elements " +"will contain the value -1." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"The I<regmatch_t> structure which is the type of I<pmatch> is defined in " +"I<E<lt>regex.hE<gt>>." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"typedef struct {\n" +" regoff_t rm_so;\n" +" regoff_t rm_eo;\n" +"} regmatch_t;\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"Each I<rm_so> element that is not -1 indicates the start offset of the next " +"largest substring match within the string. The relative I<rm_eo> element " +"indicates the end offset of the match, which is the offset of the first " +"character after the matching text." +msgstr "" + +#. type: SS +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "POSIX error reporting" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"B<regerror>() is passed the error code, I<errcode>, the pattern buffer, " +"I<preg>, a pointer to a character string buffer, I<errbuf>, and the size of " +"the string buffer, I<errbuf_size>. It returns the size of the I<errbuf> " +"required to contain the null-terminated error message string. If both " +"I<errbuf> and I<errbuf_size> are nonzero, I<errbuf> is filled in with the " +"first I<errbuf_size - 1> characters of the error message and a terminating " +"null byte (\\[aq]\\e0\\[aq])." +msgstr "" + +#. type: SS +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "POSIX pattern buffer freeing" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"Supplying B<regfree>() with a precompiled pattern buffer, I<preg>, will " +"free the memory allocated to the pattern buffer by the compiling process, " +"B<regcomp>()." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "Nonspecific error. This is not defined by POSIX.2." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +msgid "" +"Compiled regular expression requires a pattern buffer larger than 64\\ kB. " +"This is not defined by POSIX.2." +msgstr "" + +#. type: Plain text +#: debian-bookworm +msgid "POSIX.1-2001, POSIX.1-2008." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"#include E<lt>stdint.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>regex.hE<gt>\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"static const char *const str =\n" +" \"1) John Driverhacker;\\en2) John Doe;\\en3) John Foo;\\en\";\n" +"static const char *const re = \"John.*o\";\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"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" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" if (regcomp(®ex, re, REG_NEWLINE))\n" +" exit(EXIT_FAILURE);\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" printf(\"String = \\e\"%s\\e\"\\en\", str);\n" +" printf(\"Matches:\\en\");\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" for (unsigned int i = 0; ; i++) {\n" +" if (regexec(®ex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n" +" break;\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" off = pmatch[0].rm_so + (s - str);\n" +" len = pmatch[0].rm_eo - pmatch[0].rm_so;\n" +" printf(\"#%zu:\\en\", i);\n" +" printf(\"offset = %jd; length = %jd\\en\", (intmax_t) off,\n" +" (intmax_t) len);\n" +" printf(\"substring = \\e\"%.*s\\e\"\\en\", len, s + pmatch[0].rm_so);\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" s += pmatch[0].rm_eo;\n" +" }\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "2023-07-20" +msgstr "" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages 6.05.01" +msgstr "" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "2023-03-30" +msgstr "" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "Linux man-pages 6.04" +msgstr "" |