Back to index

glibc  2.9
testcases.h
Go to the documentation of this file.
00001   {0, "(.*)*\\1", "xx"},
00002   {0, "^", ""},
00003   {0, "$", ""},
00004   {0, "^$", ""},
00005   {0, "^a$", "a"},
00006   {0, "abc", "abc"},
00007   {1, "abc", "xbc"},
00008   {1, "abc", "axc"},
00009   {1, "abc", "abx"},
00010   {0, "abc", "xabcy"},
00011   {0, "abc", "ababc"},
00012   {0, "ab*c", "abc"},
00013   {0, "ab*bc", "abc"},
00014   {0, "ab*bc", "abbc"},
00015   {0, "ab*bc", "abbbbc"},
00016   {0, "ab+bc", "abbc"},
00017   {1, "ab+bc", "abc"},
00018   {1, "ab+bc", "abq"},
00019   {0, "ab+bc", "abbbbc"},
00020   {0, "ab?bc", "abbc"},
00021   {0, "ab?bc", "abc"},
00022   {1, "ab?bc", "abbbbc"},
00023   {0, "ab?c", "abc"},
00024   {0, "^abc$", "abc"},
00025   {1, "^abc$", "abcc"},
00026   {0, "^abc", "abcc"},
00027   {1, "^abc$", "aabc"},
00028   {0, "abc$", "aabc"},
00029   {0, "^", "abc"},
00030   {0, "$", "abc"},
00031   {0, "a.c", "abc"},
00032   {0, "a.c", "axc"},
00033   {0, "a.*c", "axyzc"},
00034   {1, "a.*c", "axyzd"},
00035   {1, "a[bc]d", "abc"},
00036   {0, "a[bc]d", "abd"},
00037   {1, "a[b-d]e", "abd"},
00038   {0, "a[b-d]e", "ace"},
00039   {0, "a[b-d]", "aac"},
00040   {0, "a[-b]", "a-"},
00041   {0, "a[b-]", "a-"},
00042   {2, "a[b-a]", "-"},
00043   {2, "a[]b", "-"},
00044   {2, "a[", "-"},
00045   {0, "a]", "a]"},
00046   {0, "a[]]b", "a]b"},
00047   {0, "a[^bc]d", "aed"},
00048   {1, "a[^bc]d", "abd"},
00049   {0, "a[^-b]c", "adc"},
00050   {1, "a[^-b]c", "a-c"},
00051   {1, "a[^]b]c", "a]c"},
00052   {0, "a[^]b]c", "adc"},
00053   {0, "ab|cd", "abc"},
00054   {0, "ab|cd", "abcd"},
00055   {0, "()ef", "def"},
00056   {0, "()*", "-"},
00057   {2, "*a", "-"},
00058   {2, "^*", "-"},
00059   {2, "$*", "-"},
00060   {2, "(*)b", "-"},
00061   {1, "$b", "b"},
00062   {2, "a\\", "-"},
00063   {0, "a\\(b", "a(b"},
00064   {0, "a\\(*b", "ab"},
00065   {0, "a\\(*b", "a((b"},
00066   {1, "a\\x", "a\\x"},
00067   {1, "abc)", "-"},
00068   {2, "(abc", "-"},
00069   {0, "((a))", "abc"},
00070   {0, "(a)b(c)", "abc"},
00071   {0, "a+b+c", "aabbabc"},
00072   {0, "a**", "-"},
00073   {0, "a*?", "-"},
00074   {0, "(a*)*", "-"},
00075   {0, "(a*)+", "-"},
00076   {0, "(a|)*", "-"},
00077   {0, "(a*|b)*", "-"},
00078   {0, "(a+|b)*", "ab"},
00079   {0, "(a+|b)+", "ab"},
00080   {0, "(a+|b)?", "ab"},
00081   {0, "[^ab]*", "cde"},
00082   {0, "(^)*", "-"},
00083   {0, "(ab|)*", "-"},
00084   {2, ")(", "-"},
00085   {1, "abc", ""},
00086   {1, "abc", ""},
00087   {0, "a*", ""},
00088   {0, "([abc])*d", "abbbcd"},
00089   {0, "([abc])*bcd", "abcd"},
00090   {0, "a|b|c|d|e", "e"},
00091   {0, "(a|b|c|d|e)f", "ef"},
00092   {0, "((a*|b))*", "-"},
00093   {0, "abcd*efg", "abcdefg"},
00094   {0, "ab*", "xabyabbbz"},
00095   {0, "ab*", "xayabbbz"},
00096   {0, "(ab|cd)e", "abcde"},
00097   {0, "[abhgefdc]ij", "hij"},
00098   {1, "^(ab|cd)e", "abcde"},
00099   {0, "(abc|)ef", "abcdef"},
00100   {0, "(a|b)c*d", "abcd"},
00101   {0, "(ab|ab*)bc", "abc"},
00102   {0, "a([bc]*)c*", "abc"},
00103   {0, "a([bc]*)(c*d)", "abcd"},
00104   {0, "a([bc]+)(c*d)", "abcd"},
00105   {0, "a([bc]*)(c+d)", "abcd"},
00106   {0, "a[bcd]*dcdcde", "adcdcde"},
00107   {1, "a[bcd]+dcdcde", "adcdcde"},
00108   {0, "(ab|a)b*c", "abc"},
00109   {0, "((a)(b)c)(d)", "abcd"},
00110   {0, "[A-Za-z_][A-Za-z0-9_]*", "alpha"},
00111   {0, "^a(bc+|b[eh])g|.h$", "abh"},
00112   {0, "(bc+d$|ef*g.|h?i(j|k))", "effgz"},
00113   {0, "(bc+d$|ef*g.|h?i(j|k))", "ij"},
00114   {1, "(bc+d$|ef*g.|h?i(j|k))", "effg"},
00115   {1, "(bc+d$|ef*g.|h?i(j|k))", "bcdd"},
00116   {0, "(bc+d$|ef*g.|h?i(j|k))", "reffgz"},
00117   {1, "((((((((((a))))))))))", "-"},
00118   {0, "(((((((((a)))))))))", "a"},
00119   {1, "multiple words of text", "uh-uh"},
00120   {0, "multiple words", "multiple words, yeah"},
00121   {0, "(.*)c(.*)", "abcde"},
00122   {1, "\\((.*),", "(.*)\\)"},
00123   {1, "[k]", "ab"},
00124   {0, "abcd", "abcd"},
00125   {0, "a(bc)d", "abcd"},
00126   {0, "a[-]?c", "ac"},
00127   {0, "(....).*\\1", "beriberi"},
00128   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Qaddafi"},
00129   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mo'ammar Gadhafi"},
00130   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Kaddafi"},
00131   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Qadhafi"},
00132   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Moammar El Kadhafi"},
00133   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Gadafi"},
00134   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mu'ammar al-Qadafi"},
00135   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Moamer El Kazzafi"},
00136   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Moamar al-Gaddafi"},
00137   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mu'ammar Al Qathafi"},
00138   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Al Qathafi"},
00139   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mo'ammar el-Gadhafi"},
00140   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Moamar El Kadhafi"},
00141   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar al-Qadhafi"},
00142   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mu'ammar al-Qadhdhafi"},
00143   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mu'ammar Qadafi"},
00144   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Moamar Gaddafi"},
00145   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mu'ammar Qadhdhafi"},
00146   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Khaddafi"},
00147   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar al-Khaddafi"},
00148   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mu'amar al-Kadafi"},
00149   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Ghaddafy"},
00150   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Ghadafi"},
00151   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Ghaddafi"},
00152   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muamar Kaddafi"},
00153   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Quathafi"},
00154   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muammar Gheddafi"},
00155   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Muamar Al-Kaddafi"},
00156   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Moammar Khadafy "},
00157   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Moammar Qudhafi"},
00158   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mu'ammar al-Qaddafi"},
00159   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mulazim Awwal Mu'ammar Muhammad Abu Minyar al-Qadhafi"},
00160   {0, "[[:digit:]]+", "01234"},
00161   {1, "[[:alpha:]]+", "01234"},
00162   {0, "^[[:digit:]]*$", "01234"},
00163   {1, "^[[:digit:]]*$", "01234a"},
00164   {0, "^[[:alnum:]]*$", "01234a"},
00165   {0, "^[[:xdigit:]]*$", "01234a"},
00166   {1, "^[[:xdigit:]]*$", "01234g"},
00167   {0, "^[[:alnum:][:space:]]*$", "Hello world"},