summaryrefslogtreecommitdiff
path: root/pcretest.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-04-17 08:22:40 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-04-17 08:22:40 +0000
commitc2ca0181556e8224559ea493ebe08ad3ab1e986d (patch)
tree102a51f4c58b029b4245299e060f3d2a2a04a8a6 /pcretest.c
parent99c49a95b9892e71ec8cd69cd1bcb3a96964ba15 (diff)
downloadpcre-c2ca0181556e8224559ea493ebe08ad3ab1e986d.tar.gz
Update HTML documentation.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@150 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcretest.c')
-rw-r--r--pcretest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcretest.c b/pcretest.c
index 7a6b1d3..980d404 100644
--- a/pcretest.c
+++ b/pcretest.c
@@ -852,7 +852,7 @@ while (argc > 1 && argv[op][0] == '-')
(void)pcre_config(PCRE_CONFIG_NEWLINE, &rc);
printf(" Newline sequence is %s\n", (rc == '\r')? "CR" :
(rc == '\n')? "LF" : (rc == ('\r'<<8 | '\n'))? "CRLF" :
- (rc == -2)? "ANYCRLF" :
+ (rc == -2)? "ANYCRLF" :
(rc == -1)? "ANY" : "???");
(void)pcre_config(PCRE_CONFIG_LINK_SIZE, &rc);
printf(" Internal link size = %d\n", rc);
@@ -2225,7 +2225,7 @@ while (!done)
to advance the start offset, and continue. We won't be at the end of the
string - that was checked before setting g_notempty.
- Complication arises in the case when the newline option is "any" or
+ Complication arises in the case when the newline option is "any" or
"anycrlf". If the previous match was at the end of a line terminated by
CRLF, an advance of one character just passes the \r, whereas we should
prefer the longer newline sequence, as does the code in pcre_exec().
@@ -2248,11 +2248,11 @@ while (!done)
obits = (d == '\r')? PCRE_NEWLINE_CR :
(d == '\n')? PCRE_NEWLINE_LF :
(d == ('\r'<<8 | '\n'))? PCRE_NEWLINE_CRLF :
- (d == -2)? PCRE_NEWLINE_ANYCRLF :
+ (d == -2)? PCRE_NEWLINE_ANYCRLF :
(d == -1)? PCRE_NEWLINE_ANY : 0;
}
if (((obits & PCRE_NEWLINE_BITS) == PCRE_NEWLINE_ANY ||
- (obits & PCRE_NEWLINE_BITS) == PCRE_NEWLINE_ANYCRLF)
+ (obits & PCRE_NEWLINE_BITS) == PCRE_NEWLINE_ANYCRLF)
&&
start_offset < len - 1 &&
bptr[start_offset] == '\r' &&