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

Feature request: more string manipulation functions #1

Closed
Diggsey opened this issue Apr 5, 2016 · 1 comment
Closed

Feature request: more string manipulation functions #1

Diggsey opened this issue Apr 5, 2016 · 1 comment
Assignees
Projects

Comments

@Diggsey
Copy link

Diggsey commented Apr 5, 2016

It would really help if some of these features existed on WideStr and WideCStr:

  • Slicing/indexing (more than just RangeFull)
  • Mutations (remove, pop, trim, etc.)
  • String matching (starts_with, ends_with, contains, find, matches, etc.)
  • String splitting
  • String replacing
  • Iteration (iterate by u16, iterate by (char | malformed utf16), iterate with indices)

It would also be nice to better document the behaviour of to_os_string/from_str on non-windows platforms where there's no canonical 1:1 relationship between an OsString and a WideString.

@starkat99 starkat99 self-assigned this Apr 11, 2016
@starkat99
Copy link
Owner

Yes, I've been mulling over some of these recently, I definitely want this functionality on WideString.

Currently, the crate doesn't compile on non-windows platforms. Since I originally made it to work with Windows APIs I didn't bother with other platforms. The relationship could definitely be defined better even for Windows platform.

@starkat99 starkat99 added this to To do in 1.0 Roadmap Sep 12, 2021
1.0 Roadmap automation moved this from To do to Done Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
1.0 Roadmap
  
Done
Development

No branches or pull requests

2 participants