summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2023-04-20 15:02:07 +0200
committerAlejandro Colomar <alx@kernel.org>2023-04-20 15:36:16 +0200
commitd293b1c18fca05c65208680cc21b9018fa0506dd (patch)
treeff92369193cdce2e78d2706f07cf6b1e67ef9ed8
parentb347075376508483b73547314bb042157e1a2f09 (diff)
regex.3: Fix subsection headings
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/regex.310
1 files changed, 5 insertions, 5 deletions
diff --git a/man3/regex.3 b/man3/regex.3
index 4f9c68b83..129c42412 100644
--- a/man3/regex.3
+++ b/man3/regex.3
@@ -31,7 +31,7 @@ size_t " errbuf_size );
.BI "void regfree(regex_t *" preg );
.fi
.SH DESCRIPTION
-.SS POSIX regex compiling
+.SS Compilation
.BR regcomp ()
is used to compile a regular expression into a form that is suitable
for subsequent
@@ -110,7 +110,7 @@ whether
.I eflags
contains
.BR REG_NOTEOL .
-.SS POSIX regex matching
+.SS Matching
.BR regexec ()
is used to match a null-terminated string
against the precompiled pattern buffer,
@@ -159,7 +159,7 @@ or
.B REG_NEWLINE
processing.
This flag is a BSD extension, not present in POSIX.
-.SS Byte offsets
+.SS Match offsets
Unless
.B REG_NOSUB
was set for the compilation of the pattern buffer, it is possible to
@@ -209,7 +209,7 @@ 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.
-.SS POSIX error reporting
+.SS Error reporting
.BR regerror ()
is used to turn the error codes that can be returned by both
.BR regcomp ()
@@ -238,7 +238,7 @@ are nonzero,
is filled in with the first
.I "errbuf_size \- 1"
characters of the error message and a terminating null byte (\[aq]\e0\[aq]).
-.SS POSIX pattern buffer freeing
+.SS Freeing
Supplying
.BR regfree ()
with a precompiled pattern buffer,