linksplatform / linksplatform/Converters
Better support for string convertions
@murmelex is already working on this.
Since Feb 5, 2022.
- Dominant language
- C#
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
```
std::string -> std::u8string
std::u8string -> std::string
```
https://godbolt.org/z/hvbWsohjh
We should also support possible conversions between:
```
std::u8string
std::u16string
std::u32string
```
And somewhere here:
https://github.com/linksplatform/Converters/blob/ca74a9616cd53ce3f5e571c48d157ea7ff0a32c7/cpp/Platform.Converters/StringConverter.h#L9-L69
We should support these converstions:
```
std::u8string -> std::string
std::u16string -> std::u8string -> std::string
std::u32string -> std::u8string -> std::string
```
But only if `std::string` is set up to use UTF-8 encoding by compiler.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.