-
Notifications
You must be signed in to change notification settings - Fork 465
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
Fix str-slice
function to work with utf8 strings
#1047
Conversation
Number* n = ARG("$start-at", Number); | ||
Number* m = ARG("$end-at", Number); | ||
double start_at = ARG("$start-at", Number)->value(); | ||
double end_at = ARG("$end-at", Number)->value(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it really need to be double
, and not something integral?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it will be used as a size_t
anyway. But the value passed by value()
is a double, so I thought this makes it more clear that there is a conversion (and we may have to add correct behavior according to ruby sass what happens if non integers are passed in).
432d635
to
e89d616
Compare
e89d616
to
3467e60
Compare
Fix `str-slice` function to work with utf8 strings
No description provided.