[Issue 10933] findSplitBefore/After should have needle-less overloads
https://issues.dlang.org/show_bug.cgi?id=10933 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --
[Issue 10933] findSplitBefore/After should have needle-less overloads
https://issues.dlang.org/show_bug.cgi?id=10933 berni44 changed: What|Removed |Added CC||bugzi...@d-ecke.de Severity|normal |enhancement --
[Issue 10933] findSplitBefore/After should have needle-less overloads
https://issues.dlang.org/show_bug.cgi?id=10933 --- Comment #1 from Luís Marques--- Yup, I've ran into the same issue multiple times. This last time with the plain findSplit; I don't recall if also with findSplitBefore/After. This workaround works: range.byCodeUnit.findSplit!((a, b) => a.isWhite)(" "); Interestingly, if you use "" instead of " " it won't work, which arguably is a bug, since the predicate doesn't even use b. --
[Issue 10933] findSplitBefore/After should have needle-less overloads
https://issues.dlang.org/show_bug.cgi?id=10933 Luís Marqueschanged: What|Removed |Added CC||l...@luismarques.eu --