[Cuis] Updated for 1686

Ken Dickey Ken.Dickey at whidbey.com
Wed Apr 17 23:18:12 CDT 2013


Cuis-Solitaire and Cuis-Unicode

Aside from some code cleanups, more Unicode tricks:

"Get Words"

  str1 := 'The quick ("brown") fox can''t jump 32.3 feet, right?' asUniString.

  str1 wordsBetween: 1 and: str1 size.

    ==> #( 'The' 'quick' 'brown' 'fox' 'can''t' 'jump' '32.3' 'feet' 'right') ).


"Display possible line breaks in the editor (useful for debug)"

  str2 := '123a b567c 
d90! foo, Yes bar. then x.
' asUniString.

  breakArray := str2 possibleLineBreaksBetween: 1 and: str2 size.

  (str2 breakDisplayUniString: breakArray) edit.


Enjoy!
-KenD
-- 
Ken [dot] Dickey [at] whidbey [dot] com




More information about the Cuis mailing list