unicode.case: slightly faster >title.
parent
8637c1c012
commit
625da03282
|
@ -107,10 +107,11 @@ HINTS: >upper string ;
|
|||
PRIVATE>
|
||||
|
||||
: capitalize ( string -- title )
|
||||
unclip 1string [ >lower ] [ (>title) ] bi* prepend ; inline
|
||||
unclip-slice 1string [ >lower ] [ (>title) ] bi*
|
||||
"" prepend-as ; inline
|
||||
|
||||
: >title ( string -- title )
|
||||
final-sigma >words [ capitalize ] map concat ;
|
||||
final-sigma >words [ capitalize ] map! concat ;
|
||||
|
||||
HINTS: >title string ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue