StringiFor
StringiFor copied to clipboard
Implement new string methods
desiderata new methods
Python-str-like methods
- [x] UPPER/lower case transformation
- [x] capitalize
- [x] end_with suffix check
- [x] start_with prefix check
- [x] is_digit
- [x] is_upper/is_lower
- [x] partition
- [x] replace
- [x] split
- [x] strip
- [x] swapcase
Assignments
- [x] from string
- [x] from characters
- [x] from integer (any kinds)
- [x] from real (any kinds)
Miscellanea
- [x] unique
- [x] basename like filter
- [x] basedir like filter
- [x] extension filter
- [x] free
- [x] is_number
- [x] is_integer
- [x] is_real
- [x] reverse
- [x] escape
- [x] unescape
- [x] join
- [ ] encode/decode utf8
- [x] encode/decode base64
- [x] startcase
- [x] camelcase
- [x] snakecase
- [x] fill
- [x] number (cast to number)
- [x] insert
- [x] search (for a substring enclosed into start/end tags, e.g. xml like)
- [x] listdir or glob to list files in directories
- [x] generate random name for temporary files
LeetCode methods
- [ ] zigzag-conversion
- [ ] longest-common-prefix
- [ ] compare-version-numbers
- [ ] reverse-words-in-a-string
- [ ] length-of-last-word
- [ ] text-justification
- [ ] valid-anagram
- [ ] convert-a-number-to-hexadecimal
References
[1] John Burkardt's collection.
[2] ISO_VARYING_STRING and recent variation of it by Ian Harvy.