|
Implementations | ||||||||||||||||
Tests | BaseX 7.7 XQ30 |
EMC/xDB xDB_main_r2411365 XQ30 |
Saxon-EE 9.5.1.1 XP20 |
Saxon-EE 9.5.1.1 XQ10 |
Saxon-EE 9.5.1.1 XP30 |
Saxon-EE 9.5.1.1 XQ30 |
Saxon-EE 9.5.1.4 XQX30 (QT3 v1.1) |
XmlPrime 3.0.0.0 XP30 (QT3 vCVS) |
XmlPrime 3.0.0.0 XQ30 (QT3 vCVS) |
XmlPrime 3.0.0.0 XQX30 (QT3 vCVS) |
XmlPrime 3.0.0.0 XP20 (QT3 vCVS) |
XmlPrime 3.0.0.0 XQX10 (QT3 vCVS) |
XmlPrime 3.0.0.0 XQ10 (QT3 vCVS) |
Zorba 2.9 XQ10 (QT3 vCVS) |
Zorba 2.9 XQ30 (QT3 vCVS) |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fn-replace | 74/74 | 74/74 | 73/73 | 74/74 | 76/76 | 74/74 | 74/74 | 76/76 | 74/74 | 74/74 | 73/73 | 74/74 | 74/74 | 74/74 | 74/74 | 1/15 |
fn-replace3args-1[+]
X fn-replace3args-1: fn:replace("This is a characte","This is a characte","This is a characte") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace3args-2[+]
X fn-replace3args-2: fn:replace("This is a characte","This is a characte","This is a characte") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace3args-3[+]
X fn-replace3args-3: fn:replace("This is a characte","This is a characte","This is a characte") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace3args-4[+]
X fn-replace3args-4: fn:replace("This is a characte","This is a characte","This is a characte") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace3args-5[+]
X fn-replace3args-5: fn:replace("This is a characte","This is a characte","This is a characte") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace3args-6[+]
X fn-replace3args-6: fn:replace("This is a characte","This is a characte","This is a characte") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace3args-7[+]
X fn-replace3args-7: fn:replace(xs:string("This is a characte"),xs:string("This is a characte"),xs:string("This is a characte")) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replaceErr-1[+]
X fn-replaceErr-1: fn:replace("abracadabra", "bra", "*", "p") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replaceErr-2[+]
X fn-replaceErr-2: fn:replace("abracadabra", "bra", "\") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replaceErr-3[+]
X fn-replaceErr-3: fn:replace("abracadabra", "bra", "$y") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-1[+]
X fn-replace-1: replace("abracadabra", "bra", "*") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-2[+]
X fn-replace-2: replace("abracadabra", "a.*a", "*") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-3[+]
X fn-replace-3: replace("abracadabra", "a.*?a", "*") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-4[+]
X fn-replace-4: replace("abracadabra", "a", "") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-5[+]
X fn-replace-5: replace("abracadabra", "a(.)", "a$1$1") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-6[+]
X fn-replace-6: replace("abracadabra", ".*?", "$1") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-7[+]
X fn-replace-7: replace("AAAA", "A+", "b") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-8[+]
X fn-replace-8: replace("AAAA", "A+?", "b") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-9[+]
X fn-replace-9: replace("darted", "^(.*?)d(.*)$", "$1c$2") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-10[+]
X fn-replace-10: fn:replace("abcd", "(ab)|(a)", "[1=$1][2=$2]") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-11[+]
X fn-replace-11: fn:count(fn:replace((), "bra", "*")) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-12[+]
X fn-replace-12: replace("abracadabra", "bra", "*", "") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-13[+]
X fn-replace-13: fn:replace("abracadabra?abracadabra", "\?", "with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-14[+]
X fn-replace-14: fn:replace("abracadabra*abracadabra", "\*", "with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-15[+]
X fn-replace-15: fn:replace("abracadabra+abracadabra", "\+", "with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-16[+]
X fn-replace-16: fn:replace("abracadabra{abracadabra", "\{", "with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-17[+]
X fn-replace-17: fn:replace("abracadabra}abracadabra", "\}", "with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-18[+]
X fn-replace-18: fn:replace("abracadabra(abracadabra", "\(", "with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-19[+]
X fn-replace-19: fn:replace("abracadabra)abracadabra", "\)", "with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-20[+]
X fn-replace-20: fn:replace("abracadabra[abracadabra", "\[", "with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-21[+]
X fn-replace-21: fn:replace("abracadabra]abracadabra", "\]", "with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-22[+]
X fn-replace-22: fn:replace("abracadabra-abracadabra", "\-","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-23[+]
X fn-replace-23: fn:replace("abracadabra.abracadabra", "\.","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-24[+]
X fn-replace-24: fn:replace("abracadabra|abracadabra", "\|","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-25[+]
X fn-replace-25: fn:replace("abracadabra\abracadabra", "\\","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-26[+]
X fn-replace-26: fn:replace("abracadabra abracadabra", "\t","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-27[+]
X fn-replace-27: fn:replace("abracadabra abracadabra", "\n","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-28[+]
X fn-replace-28: fn:replace("abracadabraabracadabra", "aa{1}","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-29[+]
X fn-replace-29: fn:replace("abracadabraabracadabraabracadabra", "aa{1,}","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-30[+]
X fn-replace-30: fn:replace("abracadabraabracadabraabracadabra", "aa{1,2}","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-31[+]
X fn-replace-31: fn:replace("abracadabra^abracadabra", "\^","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-32[+]
X fn-replace-32: fn:replace("abracadabra", "^a","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-33[+]
X fn-replace-33: fn:replace("abracadabra", "ww","with") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-34[+]
X fn-replace-34: fn:replace("abracadabra", "a", "$1", "q") |
no result | n/a | no result | n/a
notXP20 |
n/a
notXQ10 |
pass | n/a
notXQ30 |
pass | n/a | n/a | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XP30+, satisfied=true) was not met. |
n/a
Dependency (type=spec, value=XP30+, satisfied=true) was not met. |
|
fn-replace-35[+]
X fn-replace-35: fn:replace("a?bracadabra?", "a?", "\$1", "q") |
no result | n/a | no result | n/a
notXP20 |
n/a
notXQ10 |
pass | n/a
notXQ30 |
pass | n/a | n/a | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XP30+, satisfied=true) was not met. |
n/a
Dependency (type=spec, value=XP30+, satisfied=true) was not met. |
|
fn-replace-36[+]
X fn-replace-36: fn:replace("abracadabra", "([aA])(?:br)([aA])", "$1**$2") |
no result | n/a | no result | n/a
notXP20 |
n/a
notXQ10 |
pass | n/a
notXQ30 |
pass | n/a | n/a | n/a | n/a | n/a | n/a
Dependency (type=spec, value=XP30+, satisfied=true) was not met. |
n/a
Dependency (type=spec, value=XP30+, satisfied=true) was not met. |
|
fn-replace-37[+]
X fn-replace-37: fn:replace("abracadabra", "a", "\$") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-38[+]
X fn-replace-38: fn:replace("abracadabra", "(a)", "\$$1") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-39[+]
X fn-replace-39: fn:replace("abracadabra", "a", "\\") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-40[+]
X fn-replace-40: fn:replace("abracadabra", "((((( ((((( (((((a))))) ))))) )))))", "|$1$15|", "x") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-41[+]
X fn-replace-41: fn:replace("abracadabra", "((((( ((((( (((((a))))) ))))) )))))", "$1520", "x") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-42[+]
X fn-replace-42: fn:replace("abracadabra", "((((( ((((( (((((a)(b))))) ))))) )))))", "($14.$15.$16.$17)", "x") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-43[+]
X fn-replace-43: fn:replace(concat('Mary', codepoints-to-string(13), 'Jones'), 'Mary.Jones', 'Jacob Jones') |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-44[+]
X fn-replace-44: fn:replace(concat('Mary', codepoints-to-string(13), 'Jones'), 'Mary.Jones', 'Jacob Jones', 's') |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
fn-replace-45[+]
X fn-replace-45: replace("Now, let's SEND OUT for QUICHE!!", "[A-Z][A-Z]+", "$0$0") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K-ReplaceFunc-1[+]
X K-ReplaceFunc-1: replace("input", "pattern", "replacement", " ") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K-ReplaceFunc-2[+]
X K-ReplaceFunc-2: replace("input", (), "replacement") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K-ReplaceFunc-3[+]
X K-ReplaceFunc-3: replace("input", "pattern", ()) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K-ReplaceFunc-4[+]
X K-ReplaceFunc-4: replace("input", "pattern", "replacement", "X") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K-ReplaceFunc-5[+]
X K-ReplaceFunc-5: replace("input", "pattern", "replacement", "", ()) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K-ReplaceFunc-6[+]
X K-ReplaceFunc-6: replace("input", "in", "thisIsInvalid\") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K-ReplaceFunc-7[+]
X K-ReplaceFunc-7: replace("input", "(input)", "thisIsInvalid$") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K-ReplaceFunc-8[+]
X K-ReplaceFunc-8: replace("input", "in", "thisIsInvalid\ ") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K-ReplaceFunc-9[+]
X K-ReplaceFunc-9: replace("input", "in", "thisIsInvalid$ ") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-ReplaceFunc-1[+]
X K2-ReplaceFunc-1: replace("a a a ", "(a )", "replacment: \1") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-ReplaceFunc-2[+]
X K2-ReplaceFunc-2: replace("a a a ", "(a )", "replacment: \1") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-ReplaceFunc-3[+]
X K2-ReplaceFunc-3: replace("abcd", "(a)\2(b)", "") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-ReplaceFunc-4[+]
X K2-ReplaceFunc-4: replace("abcd", "(asd)[\1]", "") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-ReplaceFunc-5[+]
X K2-ReplaceFunc-5: replace("abcd", "(asd)[asd\1]", "") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-ReplaceFunc-6[+]
X K2-ReplaceFunc-6: replace("abcd", "(asd)[asd\0]", "") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-ReplaceFunc-7[+]
X K2-ReplaceFunc-7: replace("abcd", "1[asd\0]", "") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
K2-ReplaceFunc-8[+]
X K2-ReplaceFunc-8: declare function local:doReplace($input as xs:string?, $pattern as xs:string, $replacement as xs:string) as xs:string { fn:replace($input, $pattern, $replacement) }; <result> <para>{fn:replace("ThiY Ybcd.", "Y", "Q")}</para> <para>{local:doReplace("ThiY iY a abYY.", "Y", "Q")}</para> </result>, fn:replace("ThiY abcdY.", "Y", "Q"), local:doReplace("ThiY iY a abYY.", "Y", "Q") |
pass | pass | pass | n/a
notXP20 |
pass | n/a
notXP30 |
pass | n/a | pass | pass | n/a | pass | pass | pass | pass | |
cbcl-fn-replace-001[+]
X cbcl-fn-replace-001: boolean(replace(if(exists((1 to 10)[. mod 2 = 0])) then "blah" else (),"a","e","m")) |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
cbcl-fn-replace-002[+]
X cbcl-fn-replace-002: replace("a","","b") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
cbcl-fn-replace-003[+]
X cbcl-fn-replace-003: replace(string-join(for $x in (1 to 10)[. mod 2 = 0] return string($x),","),"","c") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
cbcl-fn-replace-004[+]
X cbcl-fn-replace-004: replace(string-join(for $x in (1 to 10)[. mod 2 = 0] return string($x),","),"","c","m") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | |
cbcl-fn-replace-005[+]
X cbcl-fn-replace-005: replace(string-join(for $x in (1 to 10)[. mod 2 = 0] return string($x),","),"","c","m") |
pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass | pass |