-
Notifications
You must be signed in to change notification settings - Fork 26
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
Adding a String library #105
Comments
For anyone following this ticket, @EliasC and I are working on this. We have a fork where string literals actually give rise to new string objects with a semi-rich interface. This is the current, mostly self-explanatory interface of Encore strings. If you are missing a feature, please write here.
This work is intended to att Strings as the first library class which is loaded automatically by all programs. |
I think the |
having a |
@kikofernandez: is this the intended semantics of equals?
? |
@TheGrandmother Non-destructive, I guess too? |
Yes, that would work.
|
Thanks! |
@TobiasWrigstad
|
Tack! |
FYI This is the extended String interface:
|
What does |
Delete removes occurrences of a string from another. It is like replace, but more efficiently implemented. The get_ should go — it is not needed anymore (was for getting to underlying C string). |
All occurrences? |
What is the difference between |
@supercooldave All occurrences. |
@supercooldave
Fast (might not even leave the stack for intermediate strings):
|
Implemented as of 42c83e3 |
(Tobias) I am changing this discussion. The new topic of this issue will be "String library".
The text was updated successfully, but these errors were encountered: