/[pcre]/code/trunk/doc/pcretest.txt
ViewVC logotype

Diff of /code/trunk/doc/pcretest.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1319 by ph10, Fri Mar 22 16:13:13 2013 UTC revision 1320 by ph10, Wed May 1 16:39:35 2013 UTC
# Line 29  SYNOPSIS Line 29  SYNOPSIS
29         They are all documented here, but without much justification.         They are all documented here, but without much justification.
30    
31    
32    INPUT DATA FORMAT
33    
34           Input to pcretest is processed line by line, either by  calling  the  C
35           library's fgets() function, or via the libreadline library (see below).
36           In Unix-like environments, fgets() treats any bytes other than  newline
37           as  data characters. However, in some Windows environments character 26
38           (hex 1A) causes an immediate end of file, and no further data is  read.
39           For  maximum  portability,  therefore,  it  is safest to use only ASCII
40           characters in pcretest input files.
41    
42    
43  PCRE's 8-BIT, 16-BIT AND 32-BIT LIBRARIES  PCRE's 8-BIT, 16-BIT AND 32-BIT LIBRARIES
44    
45         From release 8.30, two separate PCRE libraries can be built. The origi-         From release 8.30, two separate PCRE libraries can be built. The origi-
46         nal  one  supports  8-bit  character  strings, whereas the newer 16-bit         nal  one  supports  8-bit  character  strings, whereas the newer 16-bit
47         library supports  character  strings  encoded  in  16-bit  units.  From         library supports  character  strings  encoded  in  16-bit  units.  From
48         release  8.32,  a  third  library  can  be  built, supporting character         release  8.32,  a  third  library  can  be  built, supporting character
49         strings encoded in 32-bit units.  The pcretest program can be  used  to         strings encoded in 32-bit units. The pcretest program can  be  used  to
50         test all three libraries. However, it is itself still an 8-bit program,         test all three libraries. However, it is itself still an 8-bit program,
51         reading 8-bit input and writing 8-bit output. When testing  the  16-bit         reading 8-bit input and writing 8-bit output.  When testing the  16-bit
52         or  32-bit  library, the patterns and data strings are converted to 16-         or  32-bit  library, the patterns and data strings are converted to 16-
53         or 32-bit format before being passed to  the  PCRE  library  functions.         or 32-bit format before being passed to  the  PCRE  library  functions.
54         Results are converted to 8-bit for output.         Results are converted to 8-bit for output.
55    
56         References to functions and structures of the form pcre[16|32]_xx below         References to functions and structures of the form pcre[16|32]_xx below
57         mean "pcre_xx when using the 8-bit library or pcre16_xx when using  the         mean "pcre_xx when using the 8-bit library, pcre16_xx  when  using  the
58         16-bit library".         16-bit library, or pcre32_xx when using the 32-bit library".
59    
60    
61  COMMAND LINE OPTIONS  COMMAND LINE OPTIONS
# Line 274  PATTERN MODIFIERS Line 285  PATTERN MODIFIERS
285         groups that are described in detail in the following sections.         groups that are described in detail in the following sections.
286    
287           /8              set UTF mode           /8              set UTF mode
288             /9              set PCRE_NEVER_UTF (locks out UTF mode)
289           /?              disable UTF validity check           /?              disable UTF validity check
290           /+              show remainder of subject after match           /+              show remainder of subject after match
291           /=              show all captures (not just those that are set)           /=              show all captures (not just those that are set)
# Line 340  PATTERN MODIFIERS Line 352  PATTERN MODIFIERS
352           /8              PCRE_UTF32          ) when using the 32-bit           /8              PCRE_UTF32          ) when using the 32-bit
353           /?              PCRE_NO_UTF32_CHECK )   library           /?              PCRE_NO_UTF32_CHECK )   library
354    
355             /9              PCRE_NEVER_UTF
356           /A              PCRE_ANCHORED           /A              PCRE_ANCHORED
357           /C              PCRE_AUTO_CALLOUT           /C              PCRE_AUTO_CALLOUT
358           /E              PCRE_DOLLAR_ENDONLY           /E              PCRE_DOLLAR_ENDONLY
# Line 1017  AUTHOR Line 1030  AUTHOR
1030    
1031  REVISION  REVISION
1032    
1033         Last updated: 22 February 2013         Last updated: 26 April 2013
1034         Copyright (c) 1997-2013 University of Cambridge.         Copyright (c) 1997-2013 University of Cambridge.

Legend:
Removed from v.1319  
changed lines
  Added in v.1320

  ViewVC Help
Powered by ViewVC 1.1.5