Skip to content

Conversation

colinleach
Copy link
Contributor

@colinleach colinleach commented Aug 31, 2025

I'm a bit confused about the way Kotlin implements Unicode as fixed-width 16-bit, so I'll ask for clarification on the forum before marking this ready for review.

@colinleach
Copy link
Contributor Author

Extended Unicode discussion, based on your forum post.

There's now a (still too long) introduction, so I'll move this PR out of draft.

@colinleach colinleach marked this pull request as ready for review September 1, 2025 18:43
@colinleach colinleach changed the title Add Chars concept [DRAFT] Add Chars concept Sep 1, 2025
Comment on lines +85 to +89
- Test character type with:
- [`isLetter()`][ref-isletter], covers many alphabets
- [`isDigit()`][ref-isdigit], in range 0..9
- `isLetterOrDigit()`, combines the previous two
- [`isWhitespace()`][ref-iswhitespace], any whitespace character
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Test character type with:
- [`isLetter()`][ref-isletter], covers many alphabets
- [`isDigit()`][ref-isdigit], in range 0..9
- `isLetterOrDigit()`, combines the previous two
- [`isWhitespace()`][ref-iswhitespace], any whitespace character
- Test character type with:
- [`isLetter()`][ref-isletter], covers many alphabets (the Lu, Ll, Lt, Lm, and Lo categories in unicode)
- [`isDigit()`][ref-isdigit], in range 0..9 (the Nd category in unicode)
- `isLetterOrDigit()`, combines the previous two
- [`isWhitespace()`][ref-iswhitespace], any whitespace character (the Cc, Zp, Zl, and Zs categories in unicode)

I think this is the correct markdown format.

For about.md only, I think we can explain how it's implemented by specifying the unicode categories (that's how these functions work!)

kt.joinToString("_") // => "k_o_t_l_i_n"
```

Note that `joinToString()` operates on a List or Array.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Note that `joinToString()` operates on a List or Array.
Note that `joinToString()` operates on a List or Array.

What was the reason for this sentence?

colinleach and others added 6 commits September 1, 2025 20:11
Co-authored-by: Derk-Jan Karrenbeld <[email protected]>
Co-authored-by: Derk-Jan Karrenbeld <[email protected]>
Co-authored-by: Derk-Jan Karrenbeld <[email protected]>
Co-authored-by: Derk-Jan Karrenbeld <[email protected]>
Co-authored-by: Derk-Jan Karrenbeld <[email protected]>
Co-authored-by: Derk-Jan Karrenbeld <[email protected]>
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.

2 participants