Skip to content

Make compile on 0.7.0, Remove string struct, and update older code. #6

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

hugh-fox
Copy link

@hugh-fox hugh-fox commented Dec 6, 2020

Adds findFirstSubstring which results in a faster contains function. Changes replace to copy by slices instead of elements. Fixes a bug in the KMP algorithm that wasn't counting overlapping substrings. Changes tests to use the testing allocator.

Copy link
Owner

@hwu1001 hwu1001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor comments. I tested on 0.8.0-dev.1066+78d2f2b81 and tests were passing for me

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.

2 participants