io.encodings.utf7: skip over first char when searching.
parent
605dad2406
commit
7deab681c6
|
@ -34,7 +34,7 @@ TUPLE: utf7codec dialect buffer ;
|
||||||
|
|
||||||
: split-chunk ( str -- after before printable? )
|
: split-chunk ( str -- after before printable? )
|
||||||
dup first printable? [
|
dup first printable? [
|
||||||
dupd '[ printable? _ = not ] find drop
|
[ 1 over ] dip '[ printable? _ = not ] find-from drop
|
||||||
[ cut-slice ] [ f ] if* swap
|
[ cut-slice ] [ f ] if* swap
|
||||||
] keep ;
|
] keep ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue