< prev index next >

test/jdk/java/util/regex/TestCases.txt

Print this page
rev 57456 : [mq]: 8236034-Use-optimized-Ques-node-for-curly-0-1-quantifier

*** 1,7 **** // ! // Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved. // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. // // This code is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License version 2 only, as // published by the Free Software Foundation. --- 1,7 ---- // ! // Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. // // This code is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License version 2 only, as // published by the Free Software Foundation.
*** 32,61 **** --- 32,85 ---- // Test unsetting of backed off groups ^(a)?a a true a 1 + ^(a){0,1}a + a + true a 1 + ^(aa(bb)?)+$ aabbaa true aabbaa 2 aa bb + ^(aa(bb){0,1})+$ + aabbaa + true aabbaa 2 aa bb + ((a|b)?b)+ b true b 2 b + ((a|b){0,1}b)+ + b + true b 2 b + (aaa)?aaa aaa true aaa 1 + (aaa){0,1}aaa + aaa + true aaa 1 + ^(a(b)?)+$ aba true aba 2 a b + ^(a(b){0,1})+$ + aba + true aba 2 a b + ^(a(b(c)?)?)?abc abc true abc 3 + ^(a(b(c){0,1}){0,1}){0,1}abc + abc + true abc 3 + ^(a(b(c))).* abc true abc 3 abc bc c // use of x modifier
*** 748,803 **** --- 772,875 ---- // Greedy ? metacharacter a?b aaaab true ab 0 + a{0,1}b + aaaab + true ab 0 + a?b b true b 0 + a{0,1}b + b + true b 0 + a?b aaaccc false 0 + a{0,1}b + aaaccc + false 0 + .?b aaaab true ab 0 + .{0,1}b + aaaab + true ab 0 + // Reluctant ? metacharacter a??b aaaab true ab 0 + a{0,1}?b + aaaab + true ab 0 + a??b b true b 0 + a{0,1}?b + b + true b 0 + a??b aaaccc false 0 + a{0,1}?b + aaaccc + false 0 + .??b aaaab true ab 0 + .{0,1}?b + aaaab + true ab 0 + // Possessive ? metacharacter a?+b aaaab true ab 0 + a{0,1}+b + aaaab + true ab 0 + a?+b b true b 0 + a{0,1}+b + b + true b 0 + a?+b aaaccc false 0 + a{0,1}+b + aaaccc + false 0 + .?+b aaaab true ab 0 + .{0,1}+b + aaaab + true ab 0 + // Greedy + metacharacter a+b aaaab true aaaab 0
*** 1153,1157 **** --- 1225,1233 ---- true blahblah 0 (|f)?+ foo true 1 + + (|f){0,1}+ + foo + true 1
< prev index next >