How to remove all characters from a string, except the integers?

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Mar 4 21:04:38 UTC 2022


On Fri, Mar 04, 2022 at 08:38:11PM +0000, ag0aep6g via Digitalmars-d-learn wrote:
[...]
> The second version involves auto-decoding, which isn't actually
> needed. You can work around it with `str.byCodeUnit.filter!...`. On my
> machine, times become the same then.
[...]

And this here is living proof of why autodecoding is a Bad Idea(tm).

Whatever happened to Andrei's std.v2 effort?!  The sooner we can shed
this baggage, the better.


T

-- 
The two rules of success: 1. Don't tell everything you know. -- YHL


More information about the Digitalmars-d-learn mailing list