/[pcre]/code/trunk/doc/pcrepattern.3
ViewVC logotype

Diff of /code/trunk/doc/pcrepattern.3

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

revision 1000 by ph10, Tue Jul 10 14:29:26 2012 UTC revision 1001 by ph10, Wed Aug 8 10:18:25 2012 UTC
# Line 246  one of the following escape sequences th Line 246  one of the following escape sequences th
246    \ex{hhh..} character with hex code hhh.. (non-JavaScript mode)    \ex{hhh..} character with hex code hhh.. (non-JavaScript mode)
247    \euhhhh    character with hex code hhhh (JavaScript mode only)    \euhhhh    character with hex code hhhh (JavaScript mode only)
248  .sp  .sp
249  The precise effect of \ecx is as follows: if x is a lower case letter, it  The precise effect of \ecx on ASCII characters is as follows: if x is a lower
250  is converted to upper case. Then bit 6 of the character (hex 40) is inverted.  case letter, it is converted to upper case. Then bit 6 of the character (hex
251  Thus \ecz becomes hex 1A (z is 7A), but \ec{ becomes hex 3B ({ is 7B), while  40) is inverted. Thus \ecA to \ecZ become hex 01 to hex 1A (A is 41, Z is 5A),
252  \ec; becomes hex 7B (; is 3B). If the byte following \ec has a value greater  but \ec{ becomes hex 3B ({ is 7B), and \ec; becomes hex 7B (; is 3B). If the
253  than 127, a compile-time error occurs. This locks out non-ASCII characters in  data item (byte or 16-bit value) following \ec has a value greater than 127, a
254  all modes. (When PCRE is compiled in EBCDIC mode, all byte values are valid. A  compile-time error occurs. This locks out non-ASCII characters in all modes.
255  lower case letter is converted to upper case, and then the 0xc0 bits are  .P
256  flipped.)  The \ec facility was designed for use with ASCII characters, but with the
257    extension to Unicode it is even less useful than it once was. It is, however,
258    recognized when PCRE is compiled in EBCDIC mode, where data items are always
259    bytes. In this mode, all values are valid after \ec. If the next character is a
260    lower case letter, it is converted to upper case. Then the 0xc0 bits of the
261    byte are inverted. Thus \ecA becomes hex 01, as in ASCII (A is C1), but because
262    the EBCDIC letters are disjoint, \ecZ becomes hex 29 (Z is E9), and other
263    characters also generate different values.
264  .P  .P
265  By default, after \ex, from zero to two hexadecimal digits are read (letters  By default, after \ex, from zero to two hexadecimal digits are read (letters
266  can be in upper or lower case). Any number of hexadecimal digits may appear  can be in upper or lower case). Any number of hexadecimal digits may appear
# Line 2922  Cambridge CB2 3QH, England. Line 2929  Cambridge CB2 3QH, England.
2929  .rs  .rs
2930  .sp  .sp
2931  .nf  .nf
2932  Last updated: 10 July 2012  Last updated: 08 August 2012
2933  Copyright (c) 1997-2012 University of Cambridge.  Copyright (c) 1997-2012 University of Cambridge.
2934  .fi  .fi

Legend:
Removed from v.1000  
changed lines
  Added in v.1001

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12