3 ms·
I think that's too extreme. There are many legitimate reasons to slice non-ASCII text - for example, to split it on newlines.
by int_19h 8y ago
I think that's too extreme. There are many legitimate reasons to slice non-ASCII text - for example, to split it on newlines.
- mlindner 8y agoThat's not trivial and different languages vary in how they handle new line characters even. https://stackoverflow.com/questions/44995851/how-do-i-check-if-a-character-is-a-unicode-new-line-character-not-only-ascii-i https://stackoverflow.com/questions/44995851/how-do-i-check-...