You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice if int_of_string and related functions could skip over any leading
or trailing spaces in their arguments, rather than raising Failure like it was a
malformed numeric string. Also, versions that take a argument for what base to
convert from would be useful, instead of having to add a prefix to a string
before calling int_of_string.
The text was updated successfully, but these errors were encountered:
This seems out of scope: the "XXX_of_string" functions in the stdlib are not meant to be used as general parsing functions; they are "merely" the inverses of the string_of_XXX.
To skip leading & trailing whitespace one can simply call String.trim on the argument of int_of_string.
Original bug ID: 2262
Reporter: administrator
Status: acknowledged
Resolution: open
Priority: normal
Severity: feature
Category: standard library
Bug description
Full_Name: Shawn Wagner
Version: 3.07+2
OS: linux
Submission from: dialup-67.75.195.222.dial1.seattle.level3.net (67.75.195.222)
It'd be nice if int_of_string and related functions could skip over any leading
or trailing spaces in their arguments, rather than raising Failure like it was a
malformed numeric string. Also, versions that take a argument for what base to
convert from would be useful, instead of having to add a prefix to a string
before calling int_of_string.
The text was updated successfully, but these errors were encountered: