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

skipWhite in conv.parse #827

Closed
wants to merge 2 commits into from
Closed

skipWhite in conv.parse #827

wants to merge 2 commits into from

Conversation

monarchdodra
Copy link
Collaborator

Spliced from pull 817
#817

This is the developement discussed in 817: It adds a "skipWhite" function in std.conv that works on anything Range!Character, and operates by reference.

This "fixes" the leading ws "problem" in parse.

This was referenced Oct 1, 2012
* Example:
* string ss = "123 12.5";
* int i = parse!int(ss);
* skipWhite(s);
Copy link
Contributor

Choose a reason for hiding this comment

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

s/skipWhite(s)/skipWhite(ss)/;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. TY.

@9rnsr
Copy link
Contributor

9rnsr commented Oct 2, 2012

I think this is a good addition to std.conv.
@jmdavis and @andralex , I'd to expect that you agree with this.

@monarchdodra
Copy link
Collaborator Author

Closing until we decide where to go with parse.

@monarchdodra monarchdodra deleted the skipwhite branch April 8, 2014 17:31
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