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

Adding the support for Char #176

Merged
merged 4 commits into from
Jan 5, 2023
Merged

Adding the support for Char #176

merged 4 commits into from
Jan 5, 2023

Conversation

orchestr7
Copy link
Owner

What's done:

  • conversion from string to char
  • enabling some old tests
  • still we need unicode conversion

### What's done:
- conversion from string to char
- enabling some old tests
- still we need unicode conversion
### What's done:
- conversion from a literal string to char
- enabling some old tests
- still we need unicode conversion and fixes for literal strings
@orchestr7 orchestr7 marked this pull request as ready for review January 5, 2023 06:39
### What's done:
- conversion from a literal string to char
- enabling some old tests
- still we need unicode conversion and fixes for literal strings
### What's done:
- conversion from a literal string to char
- enabling some old tests
- still we need unicode conversion and fixes for literal strings
override fun decodeChar(): Char = invalidType("Char", "String")
override fun decodeChar(): Char {
val keyValue = decodeKeyValue()
return when (val value = keyValue.value) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will give users a possibility to decode Char from integer or from a literal

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

char1 = 156
char2 = '5'

TOML standard does not support Char, but we will have it out of the box

@orchestr7
Copy link
Owner Author

@aSemy @nulls @NightEule5 @BOOMeranGG I hope you don't mind if I will merge it without review, anyway we will polish it later...

@orchestr7 orchestr7 merged commit d29d42c into main Jan 5, 2023
@orchestr7 orchestr7 deleted the feature/char branch January 5, 2023 10:43
@orchestr7 orchestr7 linked an issue Jan 5, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Followups for integer types
1 participant