New string functions.
Status: Beta
Brought to you by:
ftassin
This patch adds the following 'external'
functions :-
sub stringj
sub stringblockl
sub stringblockr
sub stringblockc
sub stringblockj
sub stringblock_get_nolines
The stringj function mimics the existing
stringX functions but justifies one line of text.
The stringblockX function prints a whole number of
lines within a clipped rect. The strings
is broken at characters which match '\s'
The stringblock_get_nolines function can be used
to determine how much space a string will
take up before printing.
Thanks to my brother Paul for the original work that
forms this patch.
block and justify routines as a patch.
Fixed block and justify routines as patch .
Logged In: YES
user_id=12168
The stringblock_get_line bug had an bug which could cause
an endless loop if there was a word in it's input longer
than the block width.
This /alternative/ patch fixes that.
Please apply instead of original. Old patch deleted.