Skip to content

KSXGitHub/lines-inclusive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lines-inclusive

Split a string into multiple lines, every line may end with \n

Example

use lines_inclusive::LinesInclusive;

let lines: Vec<_> = "ABC\nDEF\nGHI".lines_inclusive().collect();
assert_eq!(lines, ["ABC\n", "DEF\n", "GHI"]);

License

MIT © Hoàng Văn Khải

About

Split a string into multiple lines, every line may end with `\n`

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors 2

  •  
  •  

Languages