Fix typos in documentation.

This commit is contained in:
Philip.Hazel 2017-09-25 15:05:29 +00:00
parent 8bbf2b1924
commit 14edec2ad7
3 changed files with 19 additions and 19 deletions

View File

@ -2358,7 +2358,7 @@ Here is an example of a simple call to <b>pcre2_match()</b>:
11, /* the length of the subject string */ 11, /* the length of the subject string */
0, /* start at offset 0 in the subject */ 0, /* start at offset 0 in the subject */
0, /* default options */ 0, /* default options */
match_data, /* the match data block */ md, /* the match data block */
NULL); /* a match context; NULL means use defaults */ NULL); /* a match context; NULL means use defaults */
</pre> </pre>
If the subject string is zero-terminated, the length can be given as If the subject string is zero-terminated, the length can be given as
@ -3273,10 +3273,10 @@ default.
<P> <P>
PCRE2_ERROR_BADREPLACEMENT is used for miscellaneous syntax errors in the PCRE2_ERROR_BADREPLACEMENT is used for miscellaneous syntax errors in the
replacement string, with more particular errors being PCRE2_ERROR_BADREPESCAPE replacement string, with more particular errors being PCRE2_ERROR_BADREPESCAPE
(invalid escape sequence), PCRE2_ERROR_REPMISSING_BRACE (closing curly bracket (invalid escape sequence), PCRE2_ERROR_REPMISSINGBRACE (closing curly bracket
not found), PCRE2_BADSUBSTITUTION (syntax error in extended group not found), PCRE2_ERROR_BADSUBSTITUTION (syntax error in extended group
substitution), and PCRE2_BADSUBPATTERN (the pattern match ended before it substitution), and PCRE2_ERROR_BADSUBSPATTERN (the pattern match ended before
started, which can happen if \K is used in an assertion). it started, which can happen if \K is used in an assertion).
</P> </P>
<P> <P>
As for all PCRE2 errors, a text message that describes the error can be As for all PCRE2 errors, a text message that describes the error can be
@ -3560,7 +3560,7 @@ Cambridge, England.
</P> </P>
<br><a name="SEC42" href="#TOC1">REVISION</a><br> <br><a name="SEC42" href="#TOC1">REVISION</a><br>
<P> <P>
Last updated: 17 September 2017 Last updated: 25 September 2017
<br> <br>
Copyright &copy; 1997-2017 University of Cambridge. Copyright &copy; 1997-2017 University of Cambridge.
<br> <br>

View File

@ -2322,7 +2322,7 @@ MATCHING A PATTERN: THE TRADITIONAL FUNCTION
11, /* the length of the subject string */ 11, /* the length of the subject string */
0, /* start at offset 0 in the subject */ 0, /* start at offset 0 in the subject */
0, /* default options */ 0, /* default options */
match_data, /* the match data block */ md, /* the match data block */
NULL); /* a match context; NULL means use defaults */ NULL); /* a match context; NULL means use defaults */
If the subject string is zero-terminated, the length can be given as If the subject string is zero-terminated, the length can be given as
@ -3170,10 +3170,10 @@ CREATING A NEW STRING WITH SUBSTITUTIONS
PCRE2_ERROR_BADREPLACEMENT is used for miscellaneous syntax errors in PCRE2_ERROR_BADREPLACEMENT is used for miscellaneous syntax errors in
the replacement string, with more particular errors being the replacement string, with more particular errors being
PCRE2_ERROR_BADREPESCAPE (invalid escape sequence), PCRE2_ERROR_REP- PCRE2_ERROR_BADREPESCAPE (invalid escape sequence), PCRE2_ERROR_REP-
MISSING_BRACE (closing curly bracket not found), PCRE2_BADSUBSTITUTION MISSINGBRACE (closing curly bracket not found), PCRE2_ERROR_BADSUBSTI-
(syntax error in extended group substitution), and PCRE2_BADSUBPATTERN TUTION (syntax error in extended group substitution), and
(the pattern match ended before it started, which can happen if \K is PCRE2_ERROR_BADSUBSPATTERN (the pattern match ended before it started,
used in an assertion). which can happen if \K is used in an assertion).
As for all PCRE2 errors, a text message that describes the error can be As for all PCRE2 errors, a text message that describes the error can be
obtained by calling the pcre2_get_error_message() function (see obtained by calling the pcre2_get_error_message() function (see
@ -3437,7 +3437,7 @@ AUTHOR
REVISION REVISION
Last updated: 17 September 2017 Last updated: 25 September 2017
Copyright (c) 1997-2017 University of Cambridge. Copyright (c) 1997-2017 University of Cambridge.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------

View File

@ -1,4 +1,4 @@
.TH PCRE2API 3 "17 September 2017" "PCRE2 10.31" .TH PCRE2API 3 "25 September 2017" "PCRE2 10.31"
.SH NAME .SH NAME
PCRE2 - Perl-compatible regular expressions (revised API) PCRE2 - Perl-compatible regular expressions (revised API)
.sp .sp
@ -2335,7 +2335,7 @@ Here is an example of a simple call to \fBpcre2_match()\fP:
11, /* the length of the subject string */ 11, /* the length of the subject string */
0, /* start at offset 0 in the subject */ 0, /* start at offset 0 in the subject */
0, /* default options */ 0, /* default options */
match_data, /* the match data block */ md, /* the match data block */
NULL); /* a match context; NULL means use defaults */ NULL); /* a match context; NULL means use defaults */
.sp .sp
If the subject string is zero-terminated, the length can be given as If the subject string is zero-terminated, the length can be given as
@ -3267,10 +3267,10 @@ default.
.P .P
PCRE2_ERROR_BADREPLACEMENT is used for miscellaneous syntax errors in the PCRE2_ERROR_BADREPLACEMENT is used for miscellaneous syntax errors in the
replacement string, with more particular errors being PCRE2_ERROR_BADREPESCAPE replacement string, with more particular errors being PCRE2_ERROR_BADREPESCAPE
(invalid escape sequence), PCRE2_ERROR_REPMISSING_BRACE (closing curly bracket (invalid escape sequence), PCRE2_ERROR_REPMISSINGBRACE (closing curly bracket
not found), PCRE2_BADSUBSTITUTION (syntax error in extended group not found), PCRE2_ERROR_BADSUBSTITUTION (syntax error in extended group
substitution), and PCRE2_BADSUBPATTERN (the pattern match ended before it substitution), and PCRE2_ERROR_BADSUBSPATTERN (the pattern match ended before
started, which can happen if \eK is used in an assertion). it started, which can happen if \eK is used in an assertion).
.P .P
As for all PCRE2 errors, a text message that describes the error can be As for all PCRE2 errors, a text message that describes the error can be
obtained by calling the \fBpcre2_get_error_message()\fP function (see obtained by calling the \fBpcre2_get_error_message()\fP function (see
@ -3573,6 +3573,6 @@ Cambridge, England.
.rs .rs
.sp .sp
.nf .nf
Last updated: 17 September 2017 Last updated: 25 September 2017
Copyright (c) 1997-2017 University of Cambridge. Copyright (c) 1997-2017 University of Cambridge.
.fi .fi