-
Notifications
You must be signed in to change notification settings - Fork 43
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.*' command group #59
Comments
See also 3b9b5e7 |
I create 2 new methods that should work like
These can be chained together as well:
This group suppose to deal with "strings" and do some manipulation on them, but it behaves differently than the Thanks Edit: I picked |
Here's the usage examples for the |
A string is a list of chars, I don't see the need for a new group name. That they implicitly convert values is not enough ‘different’ for me. Things are complicated enough, and adding a stink of PHP doesn't help. ;) |
:D :D :D You can rename them in ps, and I will rename it in ch if the setup project will reach 1.0 (I want to do couple of nontrivial things until then). That's why I asked for your opinion back then. It matters for me! |
https://rtorrent-docs.readthedocs.io/en/latest/cmd-ref.html#string-functions
string.len
→ valuestring.substr
→ stringstring.strip
→ string (optional char sequence to strip, lstrip / rstrip?)string.replace
→ stringstring.map
→ stringstring.split
→ liststring.join
→ string – likecat
, but with a delimiterstring.contains[_i]
→ valuestring.equals
→ valuestring.endswith
→ valuestring.startswith
→ valuestring.chop
– seestring.substr
string.[lr]pad
→ stringThe text was updated successfully, but these errors were encountered: