Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfc04890

Browse files
authored
Fix documentation pcre2test.1 (#701)
The error -47 corresponds to PCRE2_ERROR_MATCHLIMIT not PCRE2_ERROR_NOMEMORY.
1 parent861a8aa commitfc04890

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

‎doc/html/pcre2test.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ <h1>pcre2test man page</h1>
15901590
123abc123\=replace=[10]XYZ
15911591
1: 123XYZ123
15921592
123abc123\=replace=[9]XYZ
1593-
Failed: error -47: no more memory
1593+
Failed: error -48: no more memory
15941594
</pre>
15951595
The default action of<b>pcre2_substitute()</b> is to return
15961596
PCRE2_ERROR_NOMEMORY when the output buffer is too small. However, if the
@@ -1603,7 +1603,7 @@ <h1>pcre2test man page</h1>
16031603
<pre>
16041604
/abc/substitute_overflow_length
16051605
123abc123\=replace=[9]XYZ
1606-
Failed: error -47: no more memory: 10 code units are needed
1606+
Failed: error -48: no more memory: 10 code units are needed
16071607
</pre>
16081608
A replacement string is ignored with POSIX and DFA matching. Specifying partial
16091609
matching provokes an error return ("bad option value") from

‎doc/pcre2test.1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ character. Here is an example that tests the edge case:
15551555
123abc123\e=replace=[10]XYZ
15561556
1: 123XYZ123
15571557
123abc123\e=replace=[9]XYZ
1558-
Failed: error -47: no more memory
1558+
Failed: error -48: no more memory
15591559
.sp
15601560
The default action of\fBpcre2_substitute()\fP is to return
15611561
PCRE2_ERROR_NOMEMORY when the output buffer is too small. However, if the
@@ -1568,7 +1568,7 @@ for the trailing zero) as part of the error message. For example:
15681568
.sp
15691569
/abc/substitute_overflow_length
15701570
123abc123\e=replace=[9]XYZ
1571-
Failed: error -47: no more memory: 10 code units are needed
1571+
Failed: error -48: no more memory: 10 code units are needed
15721572
.sp
15731573
A replacement string is ignored with POSIX and DFA matching. Specifying partial
15741574
matching provokes an error return ("bad option value") from

‎doc/pcre2test.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ SUBJECT MODIFIERS
14361436
123abc123\=replace=[10]XYZ
14371437
1: 123XYZ123
14381438
123abc123\=replace=[9]XYZ
1439-
Failed: error -47: no more memory
1439+
Failed: error -48: no more memory
14401440

14411441
The default action of pcre2_substitute() is to return PCRE2_ER-
14421442
ROR_NOMEMORY when the output buffer is too small. However, if the
@@ -1450,7 +1450,7 @@ SUBJECT MODIFIERS
14501450

14511451
/abc/substitute_overflow_length
14521452
123abc123\=replace=[9]XYZ
1453-
Failed: error -47: no more memory: 10 code units are needed
1453+
Failed: error -48: no more memory: 10 code units are needed
14541454

14551455
A replacement string is ignored with POSIX and DFA matching. Specifying
14561456
partial matching provokes an error return ("bad option value") from

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp