Bug 19403 – Make std.string.stripLeft on char array @nogc nothrow

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-11-15T20:53:19Z
Last change time
2018-11-18T00:10:47Z
Assigned to
No Owner
Creator
Nathan S.

Comments

Comment #0 by n8sh.secondary — 2018-11-15T20:53:19Z
std.string.stripLeft on char array could be @nogc nothrow by using std.utf.decode!(UseReplacementDchar.yes) instead of string front/popFront.
Comment #1 by n8sh.secondary — 2018-11-15T20:57:00Z
Comment #2 by github-bugzilla — 2018-11-18T00:10:46Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/63a2198003db698dd27c0e51d01fd79bd286c989 Fix Issue 19403 - Make std.string.stripLeft on char array nogc nothrow https://github.com/dlang/phobos/commit/df938a337fc93017b286eb706a52359cc4de91c3 Merge pull request #6769 from n8sh/issue-19403 Fix Issue 19403 - Make std.string.stripLeft on char array nogc nothrow