Thread overview
[Issue 9045] Feature request for std.asscii => function isNewline
Mar 22, 2016
Dmitry Olshansky
Mar 22, 2016
Dmitry Olshansky
Oct 22, 2018
ARaspiK
Nov 19, 2019
berni44
Nov 19, 2019
Parmigiano2
Nov 19, 2019
Parmigiano2
Nov 20, 2019
berni44
Nov 20, 2019
Vladimir Panteleev
Nov 20, 2019
Vladimir Panteleev
Dec 17, 2022
Iain Buclaw
March 22, 2016
https://issues.dlang.org/show_bug.cgi?id=9045

--- Comment #12 from Dmitry Olshansky <dmitry.olsh@gmail.com> ---
(In reply to Nick Sabalausky from comment #10)
> While an 'isNewline(dchar)' func wouldn't work for reasons already discussed, what *would* work and be very helpful IMO, is something similar to the 'std.conv.parse(...)' functions. Ie, just like this, but properly templated, range-ified and UTF8/16-ified:

skipNewLine taking string by ref that would return a bool indicating if there was a new line would indeed be useful.

--
March 22, 2016
https://issues.dlang.org/show_bug.cgi?id=9045

--- Comment #13 from Dmitry Olshansky <dmitry.olsh@gmail.com> ---
(In reply to Nick Sabalausky from comment #10)
> While an 'isNewline(dchar)' func wouldn't work for reasons already discussed, what *would* work and be very helpful IMO, is something similar to the 'std.conv.parse(...)' functions. Ie, just like this, but properly templated, range-ified and UTF8/16-ified:

skipNewLine taking string by ref that would return a bool indicating if there was a new line would indeed be useful.

--
October 22, 2018
https://issues.dlang.org/show_bug.cgi?id=9045

ARaspiK <araspik@protonmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |araspik@protonmail.com

--- Comment #14 from ARaspiK <araspik@protonmail.com> ---
Bump: When is this going to get implemented into Phobos? It makes my life much easier, mainly because 'newline' is a 'string' but since I'm using 'dstring' I require the usage of 'assumeWontThrow' everywhere. Example:

dstring str = "..."d;
str.findSkip(newline); // not nothrow
str.findSkip(newline).assumeWontThrow; // Ugh, long
str.findSkip!isNewline; // What would be nice _AND_ nothrow

--
November 19, 2019
https://issues.dlang.org/show_bug.cgi?id=9045

berni44 <bugzilla@d-ecke.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@d-ecke.de
           Severity|normal                      |enhancement

--
November 19, 2019
https://issues.dlang.org/show_bug.cgi?id=9045

Parmigiano2 <i6o34a+7y7j1p606trkc@sharklasers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P5
             Status|NEW                         |ASSIGNED
                 CC|                            |i6o34a+7y7j1p606trkc@sharkl
                   |                            |asers.com
          Component|phobos                      |druntime

--
November 19, 2019
https://issues.dlang.org/show_bug.cgi?id=9045

Parmigiano2 <i6o34a+7y7j1p606trkc@sharklasers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |MOVED

--
November 20, 2019
https://issues.dlang.org/show_bug.cgi?id=9045

--- Comment #15 from berni44 <bugzilla@d-ecke.de> ---
Where has this been moved to?

--
November 20, 2019
https://issues.dlang.org/show_bug.cgi?id=9045

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |dlang-bugzilla@thecybershad
                   |                            |ow.net
         Resolution|MOVED                       |---

--
November 20, 2019
https://issues.dlang.org/show_bug.cgi?id=9045

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P5                          |P2
             Status|REOPENED                    |NEW
          Component|druntime                    |phobos

--- Comment #16 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
Undoing vandalism(?) by Parmigiano

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=9045

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--