mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
strings: split_nth and add tests
This commit is contained in:

committed by
Alexander Medvednikov

parent
ec15bfb7d1
commit
5ff387bbe4
@ -63,10 +63,6 @@ pub fn (s string) split(delim string) []string {
|
||||
return s.split(delim)
|
||||
}
|
||||
|
||||
pub fn (s string) split_single(delim byte) []string {
|
||||
return s.split(delim.str())
|
||||
}
|
||||
|
||||
pub fn (s string) split_into_lines() []string {
|
||||
return s.split('\n')
|
||||
}
|
||||
|
Reference in New Issue
Block a user