Skip to content

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

License

Notifications You must be signed in to change notification settings

KSXGitHub/lines-inclusive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

 

Languages