summaryrefslogtreecommitdiff
path: root/pcredemo.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-11-24 17:39:25 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-11-24 17:39:25 +0000
commit78d4828aaa1f15dfc4b40c0f718112f6508254f8 (patch)
tree6778081b7ffe34ee20aa62245e0fa8d2b4b00ee3 /pcredemo.c
parent1c4a198f0a69223930a4b118a35a618342d20898 (diff)
downloadpcre-78d4828aaa1f15dfc4b40c0f718112f6508254f8.tar.gz
Tidies of documenation and code while preparing for release.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@579 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcredemo.c')
-rw-r--r--pcredemo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcredemo.c b/pcredemo.c
index c20a3d6..3a38ced 100644
--- a/pcredemo.c
+++ b/pcredemo.c
@@ -260,7 +260,7 @@ if (!find_all) /* Check for -g */
}
/* Before running the loop, check for UTF-8 and whether CRLF is a valid newline
-sequence. First, find the options with which the regex was compiled; extract
+sequence. First, find the options with which the regex was compiled; extract
the UTF-8 state, and mask off all but the newline options. */
(void)pcre_fullinfo(re, NULL, PCRE_INFO_OPTIONS, &option_bits);
@@ -286,7 +286,7 @@ if (option_bits == 0)
/* See if CRLF is a valid newline sequence. */
-crlf_is_newline =
+crlf_is_newline =
option_bits == PCRE_NEWLINE_ANY ||
option_bits == PCRE_NEWLINE_CRLF ||
option_bits == PCRE_NEWLINE_ANYCRLF;
@@ -345,11 +345,11 @@ for (;;)
else if (utf8) /* Otherwise, ensure we */
{ /* advance a whole UTF-8 */
while (ovector[1] < subject_length) /* character. */
- {
+ {
if ((subject[ovector[1]] & 0xc0) != 0x80) break;
ovector[1] += 1;
}
- }
+ }
continue; /* Go round the loop again */
}