Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
dmd.root.string
This module contains various string related functions.
Compiler implementation of the D programming language
http://dlang.org
Authors:
Walter Bright, http://www.digitalmars.com
License:
Source root/string.d
Documentation https://dlang.org/phobos/dmd_root_string.html
- pure nothrow @nogc @safe string
stripLeadingLineTerminator
(stringstr
); - Strips one leading line terminator of the given string.The following are what the Unicode standard considers as line terminators: | Name | D Escape Sequence | Unicode Code Point | |---------------------|-------------------|--------------------| | Line feed | \n | U+000A | | Line tabulation | \v | U+000B | | Form feed | \f | U+000C | | Carriage return | \r | U+000D | | Next line | | U+0085 | | Line separator | | U+2028 | | Paragraph separator | | U+2029 | This function will also strip \n\r.
Copyright © 1999-2022 by the D Language Foundation | Page generated by
Ddoc on (no date time)