Function dmd.root.string.stripLeadingLineTerminator
Strips one leading line terminator of the given string.
string stripLeadingLineTerminator
(
string str
) pure nothrow @nogc @safe;
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 \r\n.
Authors
Walter Bright, http://www.digitalmars.com