Skip to content

Commit 6885221

Browse files
authored
Fix various typos in documentation (#372)
Most of these typos were found with the following command: find doc -type f -name '*.3' -exec aspell -c {} \;
1 parent 7b649dc commit 6885221

17 files changed

+31
-31
lines changed

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ library. They are also documented in the pcre2build man page.
391391
avoided by linking with libedit (which has a BSD licence) instead.
392392

393393
Enabling libreadline causes the -lreadline option to be added to the
394-
pcre2test build. In many operating environments with a sytem-installed
394+
pcre2test build. In many operating environments with a system-installed
395395
readline library this is sufficient. However, in some environments (e.g. if
396396
an unmodified distribution version of readline is in use), it may be
397397
necessary to specify something like LIBS="-lncurses" as well. This is

doc/html/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ library. They are also documented in the pcre2build man page.
391391
avoided by linking with libedit (which has a BSD licence) instead.
392392

393393
Enabling libreadline causes the -lreadline option to be added to the
394-
pcre2test build. In many operating environments with a sytem-installed
394+
pcre2test build. In many operating environments with a system-installed
395395
readline library this is sufficient. However, in some environments (e.g. if
396396
an unmodified distribution version of readline is in use), it may be
397397
necessary to specify something like LIBS="-lncurses" as well. This is

doc/html/pcre2api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3109,7 +3109,7 @@ <h1>pcre2api man page</h1>
31093109
also set to PCRE2_UNSET. For example, if the string "abc" is matched against
31103110
the pattern (abc)(x(yz)?)? groups 2 and 3 are not matched. The return from the
31113111
function is 2, because the highest used capture group number is 1. The offsets
3112-
for for the second and third capture groupss (assuming the vector is large
3112+
for for the second and third capture groups (assuming the vector is large
31133113
enough, of course) are set to PCRE2_UNSET.
31143114
</P>
31153115
<P>

doc/html/pcre2build.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ <h1>pcre2build man page</h1>
484484
<P>
485485
Setting --enable-pcre2test-libreadline causes the <b>-lreadline</b> option to be
486486
added to the <b>pcre2test</b> build. In many operating environments with a
487-
sytem-installed readline library this is sufficient. However, in some
487+
system-installed readline library this is sufficient. However, in some
488488
environments (e.g. if an unmodified distribution version of readline is in
489489
use), some extra configuration may be necessary. The INSTALL file for
490490
<b>libreadline</b> says this:

doc/html/pcre2jit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ <h1>pcre2jit man page</h1>
381381
stack is freed?
382382
<br>
383383
<br>
384-
Especially on embedded sytems, it might be a good idea to release memory
384+
Especially on embedded systems, it might be a good idea to release memory
385385
sometimes without freeing the stack. There is no API for this at the moment.
386386
Probably a function call which returns with the currently allocated memory for
387387
any stack and another which allows releasing memory (shrinking the stack) would

doc/html/pcre2pattern.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ <h1>pcre2pattern man page</h1>
12861286
Dot never matches a single line-ending character. When the two-character
12871287
sequence CRLF is the only line ending, dot does not match CR if it is
12881288
immediately followed by LF, but otherwise it matches all characters (including
1289-
isolated CRs and LFs). When ANYCRLF is selected for line endings, no occurences
1289+
isolated CRs and LFs). When ANYCRLF is selected for line endings, no occurrences
12901290
of CR of LF match dot. When all Unicode line endings are being recognized, dot
12911291
does not match CR or LF or any of the other line ending characters.
12921292
</P>
@@ -2651,7 +2651,7 @@ <h1>pcre2pattern man page</h1>
26512651
rest of the pattern match checks for two occurrences of the captured word,
26522652
using an ungreedy .*? to scan from the left. If this succeeds, we are done, but
26532653
if the last word in the string does not occur twice, this part of the pattern
2654-
fails. If a traditional atomic lookhead (?= or (*pla: had been used, the
2654+
fails. If a traditional atomic lookahead (?= or (*pla: had been used, the
26552655
assertion could not be re-entered, and the whole match would fail. The pattern
26562656
would succeed only if the very last word in the subject was found twice.
26572657
</P>

doc/html/pcre2posix.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ <h1>pcre2posix man page</h1>
189189
</pre>
190190
The PCRE2_UCP option is set when the regular expression is passed for
191191
compilation to the native function. This causes PCRE2 to use Unicode properties
192-
when matchine \d, \w, etc., instead of just recognizing ASCII values. Note
192+
when matching \d, \w, etc., instead of just recognizing ASCII values. Note
193193
that REG_UCP is not part of the POSIX standard.
194194
<pre>
195195
REG_UNGREEDY

doc/html/pcre2serialize.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h1>pcre2serialize man page</h1>
8888
the vector. The third and fourth arguments point to variables which are set to
8989
point to the created byte stream and its length, respectively. The final
9090
argument is a pointer to a general context, which can be used to specify custom
91-
memory mangagement functions. If this argument is NULL, <b>malloc()</b> is used
91+
memory management functions. If this argument is NULL, <b>malloc()</b> is used
9292
to obtain memory for the byte stream. The yield of the function is the number
9393
of serialized patterns, or one of the following negative error codes:
9494
<pre>
@@ -150,7 +150,7 @@ <h1>pcre2serialize man page</h1>
150150
vector. The first two arguments are a pointer to a suitable vector and its
151151
length, and the third argument points to a byte stream. The final argument is a
152152
pointer to a general context, which can be used to specify custom memory
153-
mangagement functions for the decoded patterns. If this argument is NULL,
153+
management functions for the decoded patterns. If this argument is NULL,
154154
<b>malloc()</b> and <b>free()</b> are used. After deserialization, the byte
155155
stream is no longer needed and can be discarded.
156156
<pre>

doc/html/pcre2syntax.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ <h1>pcre2syntax man page</h1>
213213
Xan Alphanumeric: union of properties L and N
214214
Xps POSIX space: property Z or tab, NL, VT, FF, CR
215215
Xsp Perl space: property Z or tab, NL, VT, FF, CR
216-
Xuc Univerally-named character: one that can be
216+
Xuc Universally-named character: one that can be
217217
represented by a Universal Character Name
218218
Xwd Perl word: property Xan or underscore
219219
</pre>

doc/pcre2.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,7 +3016,7 @@ HOW PCRE2_MATCH() RETURNS A STRING AND CAPTURED SUBSTRINGS
30163016
is matched against the pattern (abc)(x(yz)?)? groups 2 and 3 are not
30173017
matched. The return from the function is 2, because the highest used
30183018
capture group number is 1. The offsets for for the second and third
3019-
capture groupss (assuming the vector is large enough, of course) are
3019+
capture groups (assuming the vector is large enough, of course) are
30203020
set to PCRE2_UNSET.
30213021

30223022
Elements in the ovector that do not correspond to capturing parentheses
@@ -4441,7 +4441,7 @@ PCRE2TEST OPTION FOR LIBREADLINE SUPPORT
44414441

44424442
Setting --enable-pcre2test-libreadline causes the -lreadline option to
44434443
be added to the pcre2test build. In many operating environments with a
4444-
sytem-installed readline library this is sufficient. However, in some
4444+
system-installed readline library this is sufficient. However, in some
44454445
environments (e.g. if an unmodified distribution version of readline is
44464446
in use), some extra configuration may be necessary. The INSTALL file
44474447
for libreadline says this:
@@ -5615,7 +5615,7 @@ JIT STACK FAQ
56155615
if a pattern causes stack overflow with a stack of 1MiB? Is that 1MiB
56165616
kept until the stack is freed?
56175617

5618-
Especially on embedded sytems, it might be a good idea to release mem-
5618+
Especially on embedded systems, it might be a good idea to release mem-
56195619
ory sometimes without freeing the stack. There is no API for this at
56205620
the moment. Probably a function call which returns with the currently
56215621
allocated memory for any stack and another which allows releasing mem-
@@ -7568,7 +7568,7 @@ FULL STOP (PERIOD, DOT) AND \N
75687568
ter sequence CRLF is the only line ending, dot does not match CR if it
75697569
is immediately followed by LF, but otherwise it matches all characters
75707570
(including isolated CRs and LFs). When ANYCRLF is selected for line
7571-
endings, no occurences of CR of LF match dot. When all Unicode line
7571+
endings, no occurrences of CR of LF match dot. When all Unicode line
75727572
endings are being recognized, dot does not match CR or LF or any of the
75737573
other line ending characters.
75747574

@@ -8864,7 +8864,7 @@ NON-ATOMIC ASSERTIONS
88648864
captured word, using an ungreedy .*? to scan from the left. If this
88658865
succeeds, we are done, but if the last word in the string does not oc-
88668866
cur twice, this part of the pattern fails. If a traditional atomic
8867-
lookhead (?= or (*pla: had been used, the assertion could not be re-en-
8867+
lookahead (?= or (*pla: had been used, the assertion could not be re-en-
88688868
tered, and the whole match would fail. The pattern would succeed only
88698869
if the very last word in the subject was found twice.
88708870

@@ -10415,7 +10415,7 @@ COMPILING A PATTERN
1041510415

1041610416
The PCRE2_UCP option is set when the regular expression is passed for
1041710417
compilation to the native function. This causes PCRE2 to use Unicode
10418-
properties when matchine \d, \w, etc., instead of just recognizing
10418+
properties when matching \d, \w, etc., instead of just recognizing
1041910419
ASCII values. Note that REG_UCP is not part of the POSIX standard.
1042010420

1042110421
REG_UNGREEDY
@@ -10766,7 +10766,7 @@ SAVING COMPILED PATTERNS
1076610766
the length of the vector. The third and fourth arguments point to vari-
1076710767
ables which are set to point to the created byte stream and its length,
1076810768
respectively. The final argument is a pointer to a general context,
10769-
which can be used to specify custom memory mangagement functions. If
10769+
which can be used to specify custom memory management functions. If
1077010770
this argument is NULL, malloc() is used to obtain memory for the byte
1077110771
stream. The yield of the function is the number of serialized patterns,
1077210772
or one of the following negative error codes:
@@ -10830,7 +10830,7 @@ RE-USING PRECOMPILED PATTERNS
1083010830
a vector. The first two arguments are a pointer to a suitable vector
1083110831
and its length, and the third argument points to a byte stream. The fi-
1083210832
nal argument is a pointer to a general context, which can be used to
10833-
specify custom memory mangagement functions for the decoded patterns.
10833+
specify custom memory management functions for the decoded patterns.
1083410834
If this argument is NULL, malloc() and free() are used. After deserial-
1083510835
ization, the byte stream is no longer needed and can be discarded.
1083610836

@@ -11060,7 +11060,7 @@ PCRE2 SPECIAL CATEGORY PROPERTIES FOR \p and \P
1106011060
Xan Alphanumeric: union of properties L and N
1106111061
Xps POSIX space: property Z or tab, NL, VT, FF, CR
1106211062
Xsp Perl space: property Z or tab, NL, VT, FF, CR
11063-
Xuc Univerally-named character: one that can be
11063+
Xuc Universally-named character: one that can be
1106411064
represented by a Universal Character Name
1106511065
Xwd Perl word: property Xan or underscore
1106611066

0 commit comments

Comments
 (0)