diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-11-24 17:39:25 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-11-24 17:39:25 +0000 |
commit | 78d4828aaa1f15dfc4b40c0f718112f6508254f8 (patch) | |
tree | 6778081b7ffe34ee20aa62245e0fa8d2b4b00ee3 /doc/pcredemo.3 | |
parent | 1c4a198f0a69223930a4b118a35a618342d20898 (diff) | |
download | pcre-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 'doc/pcredemo.3')
-rw-r--r-- | doc/pcredemo.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/pcredemo.3 b/doc/pcredemo.3 index c419086..efc9041 100644 --- a/doc/pcredemo.3 +++ b/doc/pcredemo.3 @@ -277,7 +277,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); @@ -303,7 +303,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; @@ -362,11 +362,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 */ } |