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

enhance std.string.indexOf(substring) with ranges #3179

Merged
merged 1 commit into from
Apr 26, 2015

Conversation

WalterBright
Copy link
Member

This adds range support to overload number 3.

http://dlang.org/phobos/std_string.html#.indexOf.3

100% unit test coverage

if (cs == CaseSensitive.yes ? c != s2.front
: toLower(c) != toLower(s2.front)
)
goto Lnext;
Copy link
Member

Choose a reason for hiding this comment

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

Use labelled break

edit:

Nevermind, I see it doesn't break the outer loop.

@JakobOvrum
Copy link
Member

LGTM

@JakobOvrum
Copy link
Member

Auto-merge toggled on

JakobOvrum added a commit that referenced this pull request Apr 26, 2015
enhance std.string.indexOf(substring) with ranges
@JakobOvrum JakobOvrum merged commit eff45fa into dlang:master Apr 26, 2015
@WalterBright WalterBright deleted the indexOf-Range3 branch April 26, 2015 19:34
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.

3 participants