W3cubDocs

/D

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:
Boost License 1.0
Source
root/string.d
Documentation
https://dlang.org/phobos/dmd_root_string.html
Coverage
https://codecov.io/gh/dlang/dmd/src/master/src/dmd/root/string.d
pure nothrow @nogc @safe string stripLeadingLineTerminator(string str);

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.

© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_root_string.html