mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
join: add support for multibyte separators (#6736)
* join: add test for multibyte separators * join: implement support for multibyte separators * join: use a trait instead of an enum for separator * join: test whitespace merging
This commit is contained in:
parent
d8eb4e2214
commit
a51a731704
6 changed files with 251 additions and 89 deletions
1
tests/fixtures/join/contiguous_separators.txt
vendored
Normal file
1
tests/fixtures/join/contiguous_separators.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
a ,,,b
|
1
tests/fixtures/join/multibyte_sep.expected
vendored
Normal file
1
tests/fixtures/join/multibyte_sep.expected
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
a§b§c
|
1
tests/fixtures/join/multibyte_sep_1.txt
vendored
Normal file
1
tests/fixtures/join/multibyte_sep_1.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
a§b
|
1
tests/fixtures/join/multibyte_sep_2.txt
vendored
Normal file
1
tests/fixtures/join/multibyte_sep_2.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
a§c
|
Loading…
Add table
Add a link
Reference in a new issue