File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / pcre / testdata / testinputEBC
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 08:25:57 2013 UTC (11 years ago) by misho
Branches: pcre, MAIN
CVS tags: v8_34, v8_33, HEAD
8.33

    1: /-- This is a specialized test for checking, when PCRE is compiled with the
    2: EBCDIC option but in an ASCII environment, that newline and white space
    3: functionality is working. It catches cases where explicit values such as 0x0a
    4: have been used instead of names like CHAR_LF. Needless to say, it is not a
    5: genuine EBCDIC test! In patterns, alphabetic characters that follow a backslash
    6: must be in EBCDIC code. In data, newlines and other spacing characters must be
    7: in EBCDIC, but can be specified as escapes. --/
    8: 
    9: /-- Test default newline and variations --/
   10: 
   11: /^A/m
   12:     ABC
   13:     12\x15ABC
   14: 
   15: /^A/m<any>
   16:     12\x15ABC
   17:     12\x0dABC
   18:     12\x0d\x15ABC
   19:     12\x25ABC
   20: 
   21: /^A/m<anycrlf>
   22:     12\x15ABC
   23:     12\x0dABC
   24:     12\x0d\x15ABC
   25:     ** Fail
   26:     12\x25ABC
   27: 
   28: /-- Test \h --/
   29: 
   30: /^A\ˆ/
   31:     A B
   32: 
   33: /-- Test \H --/
   34: 
   35: /^A\È/
   36:     AB
   37:     ** Fail
   38:     A B
   39: 
   40: /-- Test \R --/
   41: 
   42: /^A\Ù/
   43:     A\x15B
   44:     A\x0dB
   45:     A\x25B
   46:     A\x0bB
   47:     A\x0cB
   48:     ** Fail
   49:     A B
   50: 
   51: /-- Test \v --/
   52: 
   53: /^A\¥/
   54:     A\x15B
   55:     A\x0dB
   56:     A\x25B
   57:     A\x0bB
   58:     A\x0cB
   59:     ** Fail
   60:     A B
   61: 
   62: /-- Test \V --/
   63: 
   64: /^A\å/
   65:     A B
   66:     ** Fail
   67:     A\x15B
   68:     A\x0dB
   69:     A\x25B
   70:     A\x0bB
   71:     A\x0cB
   72:     
   73: /-- For repeated items, use an atomic group so that the output is the same
   74: for DFA matching (otherwise it may show multiple matches). --/ 
   75: 
   76: /-- Test \h+ --/
   77: 
   78: /^A(?>\ˆ+)/
   79:     A B
   80: 
   81: /-- Test \H+ --/
   82: 
   83: /^A(?>\È+)/
   84:     AB
   85:     ** Fail
   86:     A B
   87: 
   88: /-- Test \R+ --/
   89: 
   90: /^A(?>\Ù+)/
   91:     A\x15B
   92:     A\x0dB
   93:     A\x25B
   94:     A\x0bB
   95:     A\x0cB
   96:     ** Fail
   97:     A B
   98: 
   99: /-- Test \v+ --/
  100: 
  101: /^A(?>\¥+)/
  102:     A\x15B
  103:     A\x0dB
  104:     A\x25B
  105:     A\x0bB
  106:     A\x0cB
  107:     ** Fail
  108:     A B
  109: 
  110: /-- Test \V+ --/
  111: 
  112: /^A(?>\å+)/
  113:     A B
  114:     ** Fail
  115:     A\x15B
  116:     A\x0dB
  117:     A\x25B
  118:     A\x0bB
  119:     A\x0cB
  120: 
  121: /-- End --/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>