3 ms·
Count by grapheme clusters and stop right before it exceeds the limit?
by eviks 3y ago
Count by grapheme clusters and stop right before it exceeds the limit?
- zamadatix 3y agoIsn't that the length of the string? Also there are various things about Unicode that make doing this "right" for an input much harder than it sounds.
- eviks 3y agostring length is a poorly defined concept, but yes, counting real characters (grapheme clusters) counts And what "various things" do you mean that are on top the char split?