https://issues.dlang.org/show_bug.cgi?id=19405
Issue ID: 19405 Summary: Improve backwards UTF-8 decoding in stripRight Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nob...@puremagic.com Reporter: n8sh.second...@hotmail.com The backwards UTF-8 decoding in stripRight can be substantially sped up. With the improvements it also becomes faster than foreach_reverse(dchar c; s) for strings, so we can use it for strings and make them `@nogc` nothrow. --