linksplatform / linksplatform/Converters

Better support for string convertions

Open
#76 2 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.