Revert "unicode.breaks: use find-index-from instead of slices."

This reverts commit 0aeb2174fb.
db4
John Benediktsson 2012-08-24 14:10:19 -07:00
parent 8a872a25b5
commit 29a11cc21a
1 changed files with 3 additions and 3 deletions

View File

@ -252,9 +252,9 @@ word-table set-global
PRIVATE>
: first-word ( str -- i )
[ [ length ] [ first word-break-prop ] bi ] keep
1 swap dup '[ _ word-break-next ] find-index-from
drop nip swap or ;
[ unclip-slice word-break-prop over ] keep
'[ _ word-break-next ] find-index drop
nip swap length or 1 + ;
: >words ( str -- words )
[ first-word ] >pieces ;