3 ms·
> ... but I don't think you typically need that ... Yes. String processing often occurs in a loop (like for trim, contains, split ...).
by vmorgulis 11y ago
> ... but I don't think you typically need that ...
Yes. String processing often occurs in a loop (like for trim, contains, split ...).
- jstimpfle 11y agotrim, contains, split (at whitespace, or at a given byte position) can all be implemented efficiently in UTF-8.