unicode.case: rename title-word to capitalize and make it public
parent
77385e8715
commit
f0f3252113
|
@ -109,13 +109,13 @@ HINTS: >upper string ;
|
||||||
lt? [ lithuanian>upper ] when
|
lt? [ lithuanian>upper ] when
|
||||||
[ title>> ] [ ch>title ] map-case ; inline
|
[ title>> ] [ ch>title ] map-case ; inline
|
||||||
|
|
||||||
: title-word ( string -- title )
|
|
||||||
unclip 1string [ >lower ] [ (>title) ] bi* prepend ; inline
|
|
||||||
|
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
||||||
|
: capitalize ( string -- title )
|
||||||
|
unclip 1string [ >lower ] [ (>title) ] bi* prepend ; inline
|
||||||
|
|
||||||
: >title ( string -- title )
|
: >title ( string -- title )
|
||||||
final-sigma >words [ title-word ] map concat ;
|
final-sigma >words [ capitalize ] map concat ;
|
||||||
|
|
||||||
HINTS: >title string ;
|
HINTS: >title string ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue