github的一些开源项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1074 lines
30 KiB

  1. # There are two sorts of patterns in this test. A number of them are
  2. # representative patterns whose lengths and offsets are checked. This is just a
  3. # doublecheck test to ensure the sizes don't go horribly wrong when something
  4. # is changed. The operation of these patterns is checked in other tests.
  5. #
  6. # This file also contains tests whose output varies with code unit size and/or
  7. # link size. Unicode support is required for these tests. There are separate
  8. # output files for each code unit size and link size.
  9. #pattern fullbincode,memory
  10. /((?i)b)/
  11. Memory allocation - compiled block : 157
  12. Memory allocation - code portion : 21
  13. ------------------------------------------------------------------
  14. 0 16 Bra
  15. 4 8 CBra 1
  16. 10 /i b
  17. 12 8 Ket
  18. 16 16 Ket
  19. 20 End
  20. ------------------------------------------------------------------
  21. /(?s)(.*X|^B)/
  22. Memory allocation - compiled block : 166
  23. Memory allocation - code portion : 30
  24. ------------------------------------------------------------------
  25. 0 25 Bra
  26. 4 10 CBra 1
  27. 10 AllAny*
  28. 12 X
  29. 14 7 Alt
  30. 18 ^
  31. 19 B
  32. 21 17 Ket
  33. 25 25 Ket
  34. 29 End
  35. ------------------------------------------------------------------
  36. /(?s:.*X|^B)/
  37. Memory allocation - compiled block : 164
  38. Memory allocation - code portion : 28
  39. ------------------------------------------------------------------
  40. 0 23 Bra
  41. 4 8 Bra
  42. 8 AllAny*
  43. 10 X
  44. 12 7 Alt
  45. 16 ^
  46. 17 B
  47. 19 15 Ket
  48. 23 23 Ket
  49. 27 End
  50. ------------------------------------------------------------------
  51. /^[[:alnum:]]/
  52. Memory allocation - compiled block : 179
  53. Memory allocation - code portion : 43
  54. ------------------------------------------------------------------
  55. 0 38 Bra
  56. 4 ^
  57. 5 [0-9A-Za-z]
  58. 38 38 Ket
  59. 42 End
  60. ------------------------------------------------------------------
  61. /#/Ix
  62. Memory allocation - compiled block : 145
  63. Memory allocation - code portion : 9
  64. ------------------------------------------------------------------
  65. 0 4 Bra
  66. 4 4 Ket
  67. 8 End
  68. ------------------------------------------------------------------
  69. Capture group count = 0
  70. May match empty string
  71. Options: extended
  72. Subject length lower bound = 0
  73. /a#/Ix
  74. Memory allocation - compiled block : 147
  75. Memory allocation - code portion : 11
  76. ------------------------------------------------------------------
  77. 0 6 Bra
  78. 4 a
  79. 6 6 Ket
  80. 10 End
  81. ------------------------------------------------------------------
  82. Capture group count = 0
  83. Options: extended
  84. First code unit = 'a'
  85. Subject length lower bound = 1
  86. /x?+/
  87. Memory allocation - compiled block : 147
  88. Memory allocation - code portion : 11
  89. ------------------------------------------------------------------
  90. 0 6 Bra
  91. 4 x?+
  92. 6 6 Ket
  93. 10 End
  94. ------------------------------------------------------------------
  95. /x++/
  96. Memory allocation - compiled block : 147
  97. Memory allocation - code portion : 11
  98. ------------------------------------------------------------------
  99. 0 6 Bra
  100. 4 x++
  101. 6 6 Ket
  102. 10 End
  103. ------------------------------------------------------------------
  104. /x{1,3}+/
  105. Memory allocation - compiled block : 151
  106. Memory allocation - code portion : 15
  107. ------------------------------------------------------------------
  108. 0 10 Bra
  109. 4 x
  110. 6 x{0,2}+
  111. 10 10 Ket
  112. 14 End
  113. ------------------------------------------------------------------
  114. /(x)*+/
  115. Memory allocation - compiled block : 158
  116. Memory allocation - code portion : 22
  117. ------------------------------------------------------------------
  118. 0 17 Bra
  119. 4 Braposzero
  120. 5 8 CBraPos 1
  121. 11 x
  122. 13 8 KetRpos
  123. 17 17 Ket
  124. 21 End
  125. ------------------------------------------------------------------
  126. /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/
  127. Memory allocation - compiled block : 268
  128. Memory allocation - code portion : 132
  129. ------------------------------------------------------------------
  130. 0 127 Bra
  131. 4 ^
  132. 5 118 CBra 1
  133. 11 8 CBra 2
  134. 17 a+
  135. 19 8 Ket
  136. 23 40 CBra 3
  137. 29 [ab]+?
  138. 63 40 Ket
  139. 67 40 CBra 4
  140. 73 [bc]+
  141. 107 40 Ket
  142. 111 8 CBra 5
  143. 117 \w*+
  144. 119 8 Ket
  145. 123 118 Ket
  146. 127 127 Ket
  147. 131 End
  148. ------------------------------------------------------------------
  149. "8J\$WE\<\.rX\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b"
  150. Memory allocation - compiled block : 964
  151. Memory allocation - code portion : 828
  152. ------------------------------------------------------------------
  153. 0 823 Bra
  154. 4 8J$WE<.rX+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
  155. 822 \b
  156. 823 823 Ket
  157. 827 End
  158. ------------------------------------------------------------------
  159. "\$\<\.X\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b"
  160. Memory allocation - compiled block : 954
  161. Memory allocation - code portion : 818
  162. ------------------------------------------------------------------
  163. 0 813 Bra
  164. 4 $<.X+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
  165. 812 \b
  166. 813 813 Ket
  167. 817 End
  168. ------------------------------------------------------------------
  169. /(a(?1)b)/
  170. Memory allocation - compiled block : 163
  171. Memory allocation - code portion : 27
  172. ------------------------------------------------------------------
  173. 0 22 Bra
  174. 4 14 CBra 1
  175. 10 a
  176. 12 4 Recurse
  177. 16 b
  178. 18 14 Ket
  179. 22 22 Ket
  180. 26 End
  181. ------------------------------------------------------------------
  182. /(a(?1)+b)/
  183. Memory allocation - compiled block : 171
  184. Memory allocation - code portion : 35
  185. ------------------------------------------------------------------
  186. 0 30 Bra
  187. 4 22 CBra 1
  188. 10 a
  189. 12 8 SBra
  190. 16 4 Recurse
  191. 20 8 KetRmax
  192. 24 b
  193. 26 22 Ket
  194. 30 30 Ket
  195. 34 End
  196. ------------------------------------------------------------------
  197. /a(?P<name1>b|c)d(?P<longername2>e)/
  198. Memory allocation - compiled block : 207
  199. Memory allocation - code portion : 43
  200. ------------------------------------------------------------------
  201. 0 38 Bra
  202. 4 a
  203. 6 8 CBra 1
  204. 12 b
  205. 14 6 Alt
  206. 18 c
  207. 20 14 Ket
  208. 24 d
  209. 26 8 CBra 2
  210. 32 e
  211. 34 8 Ket
  212. 38 38 Ket
  213. 42 End
  214. ------------------------------------------------------------------
  215. /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/
  216. Memory allocation - compiled block : 203
  217. Memory allocation - code portion : 55
  218. ------------------------------------------------------------------
  219. 0 50 Bra
  220. 4 30 Bra
  221. 8 a
  222. 10 20 CBra 1
  223. 16 c
  224. 18 8 CBra 2
  225. 24 d
  226. 26 8 Ket
  227. 30 20 Ket
  228. 34 30 Ket
  229. 38 8 CBra 3
  230. 44 a
  231. 46 8 Ket
  232. 50 50 Ket
  233. 54 End
  234. ------------------------------------------------------------------
  235. /(?P<a>a)...(?P=a)bbb(?P>a)d/
  236. Memory allocation - compiled block : 179
  237. Memory allocation - code portion : 39
  238. ------------------------------------------------------------------
  239. 0 34 Bra
  240. 4 8 CBra 1
  241. 10 a
  242. 12 8 Ket
  243. 16 Any
  244. 17 Any
  245. 18 Any
  246. 19 \1
  247. 22 bbb
  248. 28 4 Recurse
  249. 32 d
  250. 34 34 Ket
  251. 38 End
  252. ------------------------------------------------------------------
  253. /abc(?C255)de(?C)f/
  254. Memory allocation - compiled block : 173
  255. Memory allocation - code portion : 37
  256. ------------------------------------------------------------------
  257. 0 32 Bra
  258. 4 abc
  259. 10 Callout 255 10 1
  260. 18 de
  261. 22 Callout 0 16 1
  262. 30 f
  263. 32 32 Ket
  264. 36 End
  265. ------------------------------------------------------------------
  266. /abcde/auto_callout
  267. Memory allocation - compiled block : 203
  268. Memory allocation - code portion : 67
  269. ------------------------------------------------------------------
  270. 0 62 Bra
  271. 4 Callout 255 0 1
  272. 12 a
  273. 14 Callout 255 1 1
  274. 22 b
  275. 24 Callout 255 2 1
  276. 32 c
  277. 34 Callout 255 3 1
  278. 42 d
  279. 44 Callout 255 4 1
  280. 52 e
  281. 54 Callout 255 5 0
  282. 62 62 Ket
  283. 66 End
  284. ------------------------------------------------------------------
  285. /\x{100}/utf
  286. Memory allocation - compiled block : 148
  287. Memory allocation - code portion : 12
  288. ------------------------------------------------------------------
  289. 0 7 Bra
  290. 4 \x{100}
  291. 7 7 Ket
  292. 11 End
  293. ------------------------------------------------------------------
  294. /\x{1000}/utf
  295. Memory allocation - compiled block : 149
  296. Memory allocation - code portion : 13
  297. ------------------------------------------------------------------
  298. 0 8 Bra
  299. 4 \x{1000}
  300. 8 8 Ket
  301. 12 End
  302. ------------------------------------------------------------------
  303. /\x{10000}/utf
  304. Memory allocation - compiled block : 150
  305. Memory allocation - code portion : 14
  306. ------------------------------------------------------------------
  307. 0 9 Bra
  308. 4 \x{10000}
  309. 9 9 Ket
  310. 13 End
  311. ------------------------------------------------------------------
  312. /\x{100000}/utf
  313. Memory allocation - compiled block : 150
  314. Memory allocation - code portion : 14
  315. ------------------------------------------------------------------
  316. 0 9 Bra
  317. 4 \x{100000}
  318. 9 9 Ket
  319. 13 End
  320. ------------------------------------------------------------------
  321. /\x{10ffff}/utf
  322. Memory allocation - compiled block : 150
  323. Memory allocation - code portion : 14
  324. ------------------------------------------------------------------
  325. 0 9 Bra
  326. 4 \x{10ffff}
  327. 9 9 Ket
  328. 13 End
  329. ------------------------------------------------------------------
  330. /\x{110000}/utf
  331. Failed: error 134 at offset 9: character code point value in \x{} or \o{} is too large
  332. /[\x{ff}]/utf
  333. Memory allocation - compiled block : 148
  334. Memory allocation - code portion : 12
  335. ------------------------------------------------------------------
  336. 0 7 Bra
  337. 4 \x{ff}
  338. 7 7 Ket
  339. 11 End
  340. ------------------------------------------------------------------
  341. /[\x{100}]/utf
  342. Memory allocation - compiled block : 148
  343. Memory allocation - code portion : 12
  344. ------------------------------------------------------------------
  345. 0 7 Bra
  346. 4 \x{100}
  347. 7 7 Ket
  348. 11 End
  349. ------------------------------------------------------------------
  350. /\x80/utf
  351. Memory allocation - compiled block : 148
  352. Memory allocation - code portion : 12
  353. ------------------------------------------------------------------
  354. 0 7 Bra
  355. 4 \x{80}
  356. 7 7 Ket
  357. 11 End
  358. ------------------------------------------------------------------
  359. /\xff/utf
  360. Memory allocation - compiled block : 148
  361. Memory allocation - code portion : 12
  362. ------------------------------------------------------------------
  363. 0 7 Bra
  364. 4 \x{ff}
  365. 7 7 Ket
  366. 11 End
  367. ------------------------------------------------------------------
  368. /\x{0041}\x{2262}\x{0391}\x{002e}/I,utf
  369. Memory allocation - compiled block : 156
  370. Memory allocation - code portion : 20
  371. ------------------------------------------------------------------
  372. 0 15 Bra
  373. 4 A\x{2262}\x{391}.
  374. 15 15 Ket
  375. 19 End
  376. ------------------------------------------------------------------
  377. Capture group count = 0
  378. Options: utf
  379. First code unit = 'A'
  380. Last code unit = '.'
  381. Subject length lower bound = 4
  382. /\x{D55c}\x{ad6d}\x{C5B4}/I,utf
  383. Memory allocation - compiled block : 157
  384. Memory allocation - code portion : 21
  385. ------------------------------------------------------------------
  386. 0 16 Bra
  387. 4 \x{d55c}\x{ad6d}\x{c5b4}
  388. 16 16 Ket
  389. 20 End
  390. ------------------------------------------------------------------
  391. Capture group count = 0
  392. Options: utf
  393. First code unit = \xed
  394. Last code unit = \xb4
  395. Subject length lower bound = 3
  396. /\x{65e5}\x{672c}\x{8a9e}/I,utf
  397. Memory allocation - compiled block : 157
  398. Memory allocation - code portion : 21
  399. ------------------------------------------------------------------
  400. 0 16 Bra
  401. 4 \x{65e5}\x{672c}\x{8a9e}
  402. 16 16 Ket
  403. 20 End
  404. ------------------------------------------------------------------
  405. Capture group count = 0
  406. Options: utf
  407. First code unit = \xe6
  408. Last code unit = \x9e
  409. Subject length lower bound = 3
  410. /[\x{100}]/utf
  411. Memory allocation - compiled block : 148
  412. Memory allocation - code portion : 12
  413. ------------------------------------------------------------------
  414. 0 7 Bra
  415. 4 \x{100}
  416. 7 7 Ket
  417. 11 End
  418. ------------------------------------------------------------------
  419. /[Z\x{100}]/utf
  420. Memory allocation - compiled block : 186
  421. Memory allocation - code portion : 50
  422. ------------------------------------------------------------------
  423. 0 45 Bra
  424. 4 [Z\x{100}]
  425. 45 45 Ket
  426. 49 End
  427. ------------------------------------------------------------------
  428. /^[\x{100}\E-\Q\E\x{150}]/utf
  429. Memory allocation - compiled block : 157
  430. Memory allocation - code portion : 21
  431. ------------------------------------------------------------------
  432. 0 16 Bra
  433. 4 ^
  434. 5 [\x{100}-\x{150}]
  435. 16 16 Ket
  436. 20 End
  437. ------------------------------------------------------------------
  438. /^[\QĀ\E-\QŐ\E]/utf
  439. Memory allocation - compiled block : 157
  440. Memory allocation - code portion : 21
  441. ------------------------------------------------------------------
  442. 0 16 Bra
  443. 4 ^
  444. 5 [\x{100}-\x{150}]
  445. 16 16 Ket
  446. 20 End
  447. ------------------------------------------------------------------
  448. /^[\QĀ\E-\QŐ\E/utf
  449. Failed: error 106 at offset 15: missing terminating ] for character class
  450. /[\p{L}]/
  451. Memory allocation - compiled block : 154
  452. Memory allocation - code portion : 18
  453. ------------------------------------------------------------------
  454. 0 13 Bra
  455. 4 [\p{L}]
  456. 13 13 Ket
  457. 17 End
  458. ------------------------------------------------------------------
  459. /[\p{^L}]/
  460. Memory allocation - compiled block : 154
  461. Memory allocation - code portion : 18
  462. ------------------------------------------------------------------
  463. 0 13 Bra
  464. 4 [\P{L}]
  465. 13 13 Ket
  466. 17 End
  467. ------------------------------------------------------------------
  468. /[\P{L}]/
  469. Memory allocation - compiled block : 154
  470. Memory allocation - code portion : 18
  471. ------------------------------------------------------------------
  472. 0 13 Bra
  473. 4 [\P{L}]
  474. 13 13 Ket
  475. 17 End
  476. ------------------------------------------------------------------
  477. /[\P{^L}]/
  478. Memory allocation - compiled block : 154
  479. Memory allocation - code portion : 18
  480. ------------------------------------------------------------------
  481. 0 13 Bra
  482. 4 [\p{L}]
  483. 13 13 Ket
  484. 17 End
  485. ------------------------------------------------------------------
  486. /[abc\p{L}\x{0660}]/utf
  487. Memory allocation - compiled block : 189
  488. Memory allocation - code portion : 53
  489. ------------------------------------------------------------------
  490. 0 48 Bra
  491. 4 [a-c\p{L}\x{660}]
  492. 48 48 Ket
  493. 52 End
  494. ------------------------------------------------------------------
  495. /[\p{Nd}]/utf
  496. Memory allocation - compiled block : 154
  497. Memory allocation - code portion : 18
  498. ------------------------------------------------------------------
  499. 0 13 Bra
  500. 4 [\p{Nd}]
  501. 13 13 Ket
  502. 17 End
  503. ------------------------------------------------------------------
  504. /[\p{Nd}+-]+/utf
  505. Memory allocation - compiled block : 187
  506. Memory allocation - code portion : 51
  507. ------------------------------------------------------------------
  508. 0 46 Bra
  509. 4 [+\-\p{Nd}]++
  510. 46 46 Ket
  511. 50 End
  512. ------------------------------------------------------------------
  513. /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/i,utf
  514. Memory allocation - compiled block : 163
  515. Memory allocation - code portion : 27
  516. ------------------------------------------------------------------
  517. 0 22 Bra
  518. 4 /i A\x{391}\x{10427}\x{ff3a}\x{1fb0}
  519. 22 22 Ket
  520. 26 End
  521. ------------------------------------------------------------------
  522. /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/utf
  523. Memory allocation - compiled block : 163
  524. Memory allocation - code portion : 27
  525. ------------------------------------------------------------------
  526. 0 22 Bra
  527. 4 A\x{391}\x{10427}\x{ff3a}\x{1fb0}
  528. 22 22 Ket
  529. 26 End
  530. ------------------------------------------------------------------
  531. /[\x{105}-\x{109}]/i,utf
  532. Memory allocation - compiled block : 156
  533. Memory allocation - code portion : 20
  534. ------------------------------------------------------------------
  535. 0 15 Bra
  536. 4 [\x{104}-\x{109}]
  537. 15 15 Ket
  538. 19 End
  539. ------------------------------------------------------------------
  540. /( ( (?(1)0|) )* )/x
  541. Memory allocation - compiled block : 183
  542. Memory allocation - code portion : 47
  543. ------------------------------------------------------------------
  544. 0 42 Bra
  545. 4 34 CBra 1
  546. 10 Brazero
  547. 11 23 SCBra 2
  548. 17 9 Cond
  549. 21 1 Cond ref
  550. 24 0
  551. 26 4 Alt
  552. 30 13 Ket
  553. 34 23 KetRmax
  554. 38 34 Ket
  555. 42 42 Ket
  556. 46 End
  557. ------------------------------------------------------------------
  558. /( (?(1)0|)* )/x
  559. Memory allocation - compiled block : 173
  560. Memory allocation - code portion : 37
  561. ------------------------------------------------------------------
  562. 0 32 Bra
  563. 4 24 CBra 1
  564. 10 Brazero
  565. 11 9 SCond
  566. 15 1 Cond ref
  567. 18 0
  568. 20 4 Alt
  569. 24 13 KetRmax
  570. 28 24 Ket
  571. 32 32 Ket
  572. 36 End
  573. ------------------------------------------------------------------
  574. /[a]/
  575. Memory allocation - compiled block : 147
  576. Memory allocation - code portion : 11
  577. ------------------------------------------------------------------
  578. 0 6 Bra
  579. 4 a
  580. 6 6 Ket
  581. 10 End
  582. ------------------------------------------------------------------
  583. /[a]/utf
  584. Memory allocation - compiled block : 147
  585. Memory allocation - code portion : 11
  586. ------------------------------------------------------------------
  587. 0 6 Bra
  588. 4 a
  589. 6 6 Ket
  590. 10 End
  591. ------------------------------------------------------------------
  592. /[\xaa]/
  593. Memory allocation - compiled block : 147
  594. Memory allocation - code portion : 11
  595. ------------------------------------------------------------------
  596. 0 6 Bra
  597. 4 \x{aa}
  598. 6 6 Ket
  599. 10 End
  600. ------------------------------------------------------------------
  601. /[\xaa]/utf
  602. Memory allocation - compiled block : 148
  603. Memory allocation - code portion : 12
  604. ------------------------------------------------------------------
  605. 0 7 Bra
  606. 4 \x{aa}
  607. 7 7 Ket
  608. 11 End
  609. ------------------------------------------------------------------
  610. /[^a]/
  611. Memory allocation - compiled block : 147
  612. Memory allocation - code portion : 11
  613. ------------------------------------------------------------------
  614. 0 6 Bra
  615. 4 [^a]
  616. 6 6 Ket
  617. 10 End
  618. ------------------------------------------------------------------
  619. /[^a]/utf
  620. Memory allocation - compiled block : 147
  621. Memory allocation - code portion : 11
  622. ------------------------------------------------------------------
  623. 0 6 Bra
  624. 4 [^a]
  625. 6 6 Ket
  626. 10 End
  627. ------------------------------------------------------------------
  628. /[^\xaa]/
  629. Memory allocation - compiled block : 147
  630. Memory allocation - code portion : 11
  631. ------------------------------------------------------------------
  632. 0 6 Bra
  633. 4 [^\x{aa}]
  634. 6 6 Ket
  635. 10 End
  636. ------------------------------------------------------------------
  637. /[^\xaa]/utf
  638. Memory allocation - compiled block : 148
  639. Memory allocation - code portion : 12
  640. ------------------------------------------------------------------
  641. 0 7 Bra
  642. 4 [^\x{aa}]
  643. 7 7 Ket
  644. 11 End
  645. ------------------------------------------------------------------
  646. #pattern -memory
  647. /[^\d]/utf,ucp
  648. ------------------------------------------------------------------
  649. 0 13 Bra
  650. 4 [^\p{Nd}]
  651. 13 13 Ket
  652. 17 End
  653. ------------------------------------------------------------------
  654. /[[:^alpha:][:^cntrl:]]+/utf,ucp
  655. ------------------------------------------------------------------
  656. 0 17 Bra
  657. 4 [\P{L}\P{Cc}]++
  658. 17 17 Ket
  659. 21 End
  660. ------------------------------------------------------------------
  661. /[[:^cntrl:][:^alpha:]]+/utf,ucp
  662. ------------------------------------------------------------------
  663. 0 17 Bra
  664. 4 [\P{Cc}\P{L}]++
  665. 17 17 Ket
  666. 21 End
  667. ------------------------------------------------------------------
  668. /[[:alpha:]]+/utf,ucp
  669. ------------------------------------------------------------------
  670. 0 14 Bra
  671. 4 [\p{L}]++
  672. 14 14 Ket
  673. 18 End
  674. ------------------------------------------------------------------
  675. /[[:^alpha:]\S]+/utf,ucp
  676. ------------------------------------------------------------------
  677. 0 17 Bra
  678. 4 [\P{L}\P{Xsp}]++
  679. 17 17 Ket
  680. 21 End
  681. ------------------------------------------------------------------
  682. /abc(d|e)(*THEN)x(123(*THEN)4|567(b|q)(*THEN)xx)/
  683. ------------------------------------------------------------------
  684. 0 83 Bra
  685. 4 abc
  686. 10 8 CBra 1
  687. 16 d
  688. 18 6 Alt
  689. 22 e
  690. 24 14 Ket
  691. 28 *THEN
  692. 29 x
  693. 31 15 CBra 2
  694. 37 123
  695. 43 *THEN
  696. 44 4
  697. 46 33 Alt
  698. 50 567
  699. 56 8 CBra 3
  700. 62 b
  701. 64 6 Alt
  702. 68 q
  703. 70 14 Ket
  704. 74 *THEN
  705. 75 xx
  706. 79 48 Ket
  707. 83 83 Ket
  708. 87 End
  709. ------------------------------------------------------------------
  710. /(((a\2)|(a*)\g<-1>))*a?/
  711. ------------------------------------------------------------------
  712. 0 62 Bra
  713. 4 Brazero
  714. 5 51 SCBra 1
  715. 11 21 CBra 2
  716. 17 11 CBra 3
  717. 23 a
  718. 25 \2
  719. 28 11 Ket
  720. 32 20 Alt
  721. 36 8 CBra 4
  722. 42 a*
  723. 44 8 Ket
  724. 48 36 Recurse
  725. 52 41 Ket
  726. 56 51 KetRmax
  727. 60 a?+
  728. 62 62 Ket
  729. 66 End
  730. ------------------------------------------------------------------
  731. /((?+1)(\1))/
  732. ------------------------------------------------------------------
  733. 0 31 Bra
  734. 4 23 CBra 1
  735. 10 14 Recurse
  736. 14 9 CBra 2
  737. 20 \1
  738. 23 9 Ket
  739. 27 23 Ket
  740. 31 31 Ket
  741. 35 End
  742. ------------------------------------------------------------------
  743. "(?1)(?#?'){2}(a)"
  744. ------------------------------------------------------------------
  745. 0 24 Bra
  746. 4 12 Recurse
  747. 8 12 Recurse
  748. 12 8 CBra 1
  749. 18 a
  750. 20 8 Ket
  751. 24 24 Ket
  752. 28 End
  753. ------------------------------------------------------------------
  754. /.((?2)(?R)|\1|$)()/
  755. ------------------------------------------------------------------
  756. 0 45 Bra
  757. 4 Any
  758. 5 14 CBra 1
  759. 11 35 Recurse
  760. 15 0 Recurse
  761. 19 7 Alt
  762. 23 \1
  763. 26 5 Alt
  764. 30 $
  765. 31 26 Ket
  766. 35 6 CBra 2
  767. 41 6 Ket
  768. 45 45 Ket
  769. 49 End
  770. ------------------------------------------------------------------
  771. /.((?3)(?R)()(?2)|\1|$)()/
  772. ------------------------------------------------------------------
  773. 0 59 Bra
  774. 4 Any
  775. 5 28 CBra 1
  776. 11 49 Recurse
  777. 15 0 Recurse
  778. 19 6 CBra 2
  779. 25 6 Ket
  780. 29 19 Recurse
  781. 33 7 Alt
  782. 37 \1
  783. 40 5 Alt
  784. 44 $
  785. 45 40 Ket
  786. 49 6 CBra 3
  787. 55 6 Ket
  788. 59 59 Ket
  789. 63 End
  790. ------------------------------------------------------------------
  791. /(?1)()((((((\1++))\x85)+)|))/
  792. ------------------------------------------------------------------
  793. 0 96 Bra
  794. 4 8 Recurse
  795. 8 6 CBra 1
  796. 14 6 Ket
  797. 18 74 CBra 2
  798. 24 60 CBra 3
  799. 30 50 CBra 4
  800. 36 40 CBra 5
  801. 42 28 CBra 6
  802. 48 18 CBra 7
  803. 54 8 Once
  804. 58 \1+
  805. 62 8 Ket
  806. 66 18 Ket
  807. 70 28 Ket
  808. 74 \x{85}
  809. 76 40 KetRmax
  810. 80 50 Ket
  811. 84 4 Alt
  812. 88 64 Ket
  813. 92 74 Ket
  814. 96 96 Ket
  815. 100 End
  816. ------------------------------------------------------------------
  817. # Check the absolute limit on nesting (?| etc. This varies with code unit
  818. # width because the workspace is a different number of bytes. It will fail
  819. # with link size 2 in 8-bit and 16-bit but not in 32-bit.
  820. /(?|(?|(?J:(?|(?x:(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|(?|
  821. )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
  822. /parens_nest_limit=1000,-fullbincode
  823. # Use "expand" to create some very long patterns with nested parentheses, in
  824. # order to test workspace overflow. Again, this varies with code unit width,
  825. # and even when it fails in two modes, the error offset differs. It also varies
  826. # with link size - hence multiple tests with different values.
  827. /(?'ABC'\[[bar](]{792}*THEN:\[A]{255}\[)]{793}/expand,-fullbincode,parens_nest_limit=1000
  828. /(?'ABC'\[[bar](]{793}*THEN:\[A]{255}\[)]{794}/expand,-fullbincode,parens_nest_limit=1000
  829. /(?'ABC'\[[bar](]{1793}*THEN:\[A]{255}\[)]{1794}/expand,-fullbincode,parens_nest_limit=2000
  830. Failed: error 186 at offset 12820: regular expression is too complicated
  831. /(?(1)(?1)){8,}+()/debug
  832. ------------------------------------------------------------------
  833. 0 150 Bra
  834. 4 132 Once
  835. 8 11 Cond
  836. 12 1 Cond ref
  837. 15 140 Recurse
  838. 19 11 Ket
  839. 23 11 Cond
  840. 27 1 Cond ref
  841. 30 140 Recurse
  842. 34 11 Ket
  843. 38 11 Cond
  844. 42 1 Cond ref
  845. 45 140 Recurse
  846. 49 11 Ket
  847. 53 11 Cond
  848. 57 1 Cond ref
  849. 60 140 Recurse
  850. 64 11 Ket
  851. 68 11 Cond
  852. 72 1 Cond ref
  853. 75 140 Recurse
  854. 79 11 Ket
  855. 83 11 Cond
  856. 87 1 Cond ref
  857. 90 140 Recurse
  858. 94 11 Ket
  859. 98 11 Cond
  860. 102 1 Cond ref
  861. 105 140 Recurse
  862. 109 11 Ket
  863. 113 19 SBraPos
  864. 117 11 SCond
  865. 121 1 Cond ref
  866. 124 140 Recurse
  867. 128 11 Ket
  868. 132 19 KetRpos
  869. 136 132 Ket
  870. 140 6 CBra 1
  871. 146 6 Ket
  872. 150 150 Ket
  873. 154 End
  874. ------------------------------------------------------------------
  875. Capture group count = 1
  876. Max back reference = 1
  877. May match empty string
  878. Subject length lower bound = 0
  879. abcd
  880. 0:
  881. 1:
  882. /(?(1)|a(?1)b){2,}+()/debug
  883. ------------------------------------------------------------------
  884. 0 76 Bra
  885. 4 58 Once
  886. 8 7 Cond
  887. 12 1 Cond ref
  888. 15 12 Alt
  889. 19 a
  890. 21 66 Recurse
  891. 25 b
  892. 27 19 Ket
  893. 31 27 SBraPos
  894. 35 7 SCond
  895. 39 1 Cond ref
  896. 42 12 Alt
  897. 46 a
  898. 48 66 Recurse
  899. 52 b
  900. 54 19 Ket
  901. 58 27 KetRpos
  902. 62 58 Ket
  903. 66 6 CBra 1
  904. 72 6 Ket
  905. 76 76 Ket
  906. 80 End
  907. ------------------------------------------------------------------
  908. Capture group count = 1
  909. Max back reference = 1
  910. May match empty string
  911. Subject length lower bound = 0
  912. abcde
  913. No match
  914. /((?1)(?2)(?3)(?4)(?5)(?6)(?7)(?8)(?9)(?9)(?8)(?7)(?6)(?5)(?4)(?3)(?2)(?1)(?0)){2,}()()()()()()()()()/debug
  915. ------------------------------------------------------------------
  916. 0 266 Bra
  917. 4 82 CBra 1
  918. 10 4 Recurse
  919. 14 176 Recurse
  920. 18 186 Recurse
  921. 22 196 Recurse
  922. 26 206 Recurse
  923. 30 216 Recurse
  924. 34 226 Recurse
  925. 38 236 Recurse
  926. 42 246 Recurse
  927. 46 246 Recurse
  928. 50 236 Recurse
  929. 54 226 Recurse
  930. 58 216 Recurse
  931. 62 206 Recurse
  932. 66 196 Recurse
  933. 70 186 Recurse
  934. 74 176 Recurse
  935. 78 4 Recurse
  936. 82 0 Recurse
  937. 86 82 Ket
  938. 90 82 SCBra 1
  939. 96 4 Recurse
  940. 100 176 Recurse
  941. 104 186 Recurse
  942. 108 196 Recurse
  943. 112 206 Recurse
  944. 116 216 Recurse
  945. 120 226 Recurse
  946. 124 236 Recurse
  947. 128 246 Recurse
  948. 132 246 Recurse
  949. 136 236 Recurse
  950. 140 226 Recurse
  951. 144 216 Recurse
  952. 148 206 Recurse
  953. 152 196 Recurse
  954. 156 186 Recurse
  955. 160 176 Recurse
  956. 164 4 Recurse
  957. 168 0 Recurse
  958. 172 82 KetRmax
  959. 176 6 CBra 2
  960. 182 6 Ket
  961. 186 6 CBra 3
  962. 192 6 Ket
  963. 196 6 CBra 4
  964. 202 6 Ket
  965. 206 6 CBra 5
  966. 212 6 Ket
  967. 216 6 CBra 6
  968. 222 6 Ket
  969. 226 6 CBra 7
  970. 232 6 Ket
  971. 236 6 CBra 8
  972. 242 6 Ket
  973. 246 6 CBra 9
  974. 252 6 Ket
  975. 256 6 CBra 10
  976. 262 6 Ket
  977. 266 266 Ket
  978. 270 End
  979. ------------------------------------------------------------------
  980. Capture group count = 10
  981. May match empty string
  982. Subject length lower bound = 0
  983. /([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00](*ACCEPT)/
  984. Failed: error 114 at offset 509: missing closing parenthesis
  985. /([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00]([00](*ACCEPT)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))/-fullbincode
  986. #pattern -fullbincode
  987. /\[()]{65535}/expand
  988. # End of testinput8