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

Add String::try_push_int in spinoso-string #2082

Merged
merged 6 commits into from
Aug 13, 2022

Conversation

lopopolo
Copy link
Member

Reimplement parts of string::trampoline::append with this new function.

Rename various "push" functions in string trampolines to "append" to match ruby/spec.

Fixes #1981.

…oso-string

Clean up docs to remove some slice syntax.
Move this logic from the string trampoline. This method behaves similarly
to `String::try_push_codepoint` but it accepts non-ASCII bytes for ASCII
strings (and changes the string's encoding to binary).
@lopopolo lopopolo added C-enhancement Category: New feature or request. A-ruby-core Area: Ruby Core types. B-mruby Backend: Implementation of artichoke-core using mruby. labels Aug 13, 2022
@lopopolo lopopolo merged commit 4f03839 into trunk Aug 13, 2022
@lopopolo lopopolo deleted the lopopolo/string-try-push-int branch August 13, 2022 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ruby-core Area: Ruby Core types. B-mruby Backend: Implementation of artichoke-core using mruby. C-enhancement Category: New feature or request.
Development

Successfully merging this pull request may close these issues.

Add String::try_push_int in spinoso-string
1 participant