File .. byLine
    Steven Schveighoffer 
    schveiguy at gmail.com
       
    Mon Dec  3 14:56:19 UTC 2018
    
    
  
On 12/3/18 2:03 AM, Joel wrote:
> On Monday, 3 December 2018 at 06:55:50 UTC, Nicholas Wilson wrote:
>> On Monday, 3 December 2018 at 06:09:21 UTC, Joel wrote:
>>> [...]
>>
>> https://run.dlang.io/is/h0ArAB
>>
>> works for me. If you want it as a string not  char[] then byLineCopy 
>> should work, if not just `.idup` `line`.
> 
> Oh, I was using std.algorithm's 'stripLeft' instead of std.string's 
> 'stripLeft'.
Interesting. I can see the reason too -- there is no "should be 
stripped" property for all types, just character types (is it a space).
-Steve
    
    
More information about the Digitalmars-d-learn
mailing list