Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WIP implementation of bit:partition and basic tests for fn:starts-with and fn:ends-with #43

Merged
merged 5 commits into from
Jun 20, 2022

Conversation

AlvinKuruvilla
Copy link
Contributor

This commit adds basic tests for fn:starts-with and fn:ends-with
from the w3 XML spec. UTF-8 codepoint tests do not work as expected,
for example:

fn:starts-with ( "abcd***e---f*--*ghi", "abcdef",
"http://www.w3.org/2013/collation/UCA?lang=en;alternate=blanked;strength=primary")

does not return true as expected

This commit implements the fn:ends-with xquery function (or tries to
anyway)
This commit removes a duplicate implementation of fn:ends-with which was implemented in SubstringMatch.java
This commit adds basic tests for fn:starts-with and fn:ends-with
from the w3 xml spec. UTF-8 codepoint tests do not work as expected,
with for example:
```
fn:starts-with ( "abcd***e---f*--*ghi", "abcdef",
"http://www.w3.org/2013/collation/UCA?lang=en;alternate=blanked;strength=primary")
```
so more investigation is needed
@JohannesLichtenberger JohannesLichtenberger merged commit f647fa6 into sirixdb:master Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants