|
current/doc pcrs.3,1.5,1.6 Doxyfile,1.2,NONE: msg#00026web.privoxy.cvs
Update of /cvsroot/ijbswa/current/doc In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv26899/doc Modified Files: pcrs.3 Removed Files: Doxyfile Log Message: Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch) with what was really the latest development (the v_3_0_branch branch) Index: pcrs.3 =================================================================== RCS file: /cvsroot/ijbswa/current/doc/pcrs.3,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- pcrs.3 8 Mar 2002 13:47:12 -0000 1.5 +++ pcrs.3 18 Jul 2006 14:48:49 -0000 1.6 @@ -1,4 +1,4 @@ -.\" Copyright (c) 2001 Andreas S. Oesterhelt <oes@xxxxxxxxxxxxxx> +.\" Copyright (c) 2001-2003 Andreas S. Oesterhelt <oes@xxxxxxxxxxxxxx> .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as @@ -20,7 +20,7 @@ .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, .\" MA 02111, USA. .\" -.TH PCRS 3 "4 March 2002" "pcrs-0.0.1" +.TH PCRS 3 "2 December 2003" "pcrs-0.0.3" .SH NAME pcrs - Perl-compatible regular substitution. .SH SYNOPSIS @@ -251,21 +251,26 @@ .RI "The first " subject_length " bytes following " subject " are processed, so" .RI "a " subject_length " that exceeds the actual " subject " is dangerous." -Note that if you want to get your zero-terminated C strings back including their -.RI "termination, you must let " subject_length " include the binary zero, i.e." -set it to -.BI strlen( subject ") + 1." +.RI "Note that for zero-terminated C strings, you should set " subject_length " to" +.BI strlen( subject ) \fR, +so that the dollar metacharacter matches at the end of the string, not after +the string-terminating null byte. For convenience, an extra null byte is +appended to the result so it can again be used as a string. .RI "The " subject " itself is left untouched, and the " *result " is dynamically" .RB "allocated, so it is the caller's responsibility to " free() " it when it's" no longer needed. -.RI "The result's length is written to " *result_length "." +.RI "The result's length (excluding the extra null byte) is written to " *result_length "." .RB "If the job matched, the " PCRS_SUCCESS " flag in" .IB job ->flags is set. + +.SS String subjects +If your + .SS Return value and diagnostics .RB "On success, " pcrs_execute() " returns the number of substitutions that" @@ -419,9 +424,9 @@ fprintf(stderr, "%s: compile error: %s (%d).\\n", Argv[0], pcrs_strerror(err), err); } - if (0 > (err = pcrs_execute(job, Argv[2], strlen(Argv[2]) + 1, &result, &newsize))) + if (0 > (err = pcrs_execute(job, Argv[2], strlen(Argv[2]), &result, &newsize))) { - fprintf(stderr, "%s: Exec error: %s (%d).\\n", Argv[0], pcrs_strerror(err), err); + fprintf(stderr, "%s: exec error: %s (%d).\\n", Argv[0], pcrs_strerror(err), err); } else { @@ -446,6 +451,10 @@ is a Bad Thing[tm]. It should be dynamically expanded until it reaches the .SM PCRE limit of 99. +.br +This limitation is particularly embarassing since +.SM PCRE +3.5 has raised the capturing subpattern limit to 65K. All of the above values can be adjusted in the "Capacity" section .RB "of " pcrs.h "." @@ -459,8 +468,8 @@ .SH HISTORY .SM PCRS -was originally written for the Internet Junkbuster project -(http://sourceforge.net/projects/ijbswa/). +was originally written for the Privoxy project +(http://www.privoxy.org/). .SH SEE ALSO .B PCRE(3), perl(1), perlre(1) @@ -468,7 +477,7 @@ .SH AUTHOR .SM PCRS -is Copyright 2000, 2001 by Andreas Oesterhelt <andreas@xxxxxxxxxxxxxx> and is +is Copyright 2000 - 2003 by Andreas Oesterhelt <andreas@xxxxxxxxxxxxxx> and is licensed under the terms of the GNU Lesser General Public License (LGPL), version 2.1, which should be included in this distribution, with the exception that the permission to replace that license with the GNU General Public --- Doxyfile DELETED --- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | current/doc/webserver index.html, 1.30, 1.31 p_doc.css, 1.3, 1.4 privoxy-index.html, 1.3, 1.4 default_page.php, 1.1, NONE p_web.css, 1.1, NONE: 00026, noreply |
|---|---|
| Next by Date: | current/doc/webserver/submit confirmad.php, 1.3, 1.4 index.php, 1.6, 1.7: 00026, noreply |
| Previous by Thread: | current/doc/webserver index.html, 1.30, 1.31 p_doc.css, 1.3, 1.4 privoxy-index.html, 1.3, 1.4 default_page.php, 1.1, NONE p_web.css, 1.1, NONEi: 00026, noreply |
| Next by Thread: | current/doc/webserver/submit confirmad.php, 1.3, 1.4 index.php, 1.6, 1.7: 00026, noreply |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |