Menu

#4 New string functions.

open
nobody
None
5
2001-09-13
2001-09-13
No

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.

Discussion

  • Roger Gammans

    Roger Gammans - 2001-09-13

    block and justify routines as a patch.

     
  • Roger Gammans

    Roger Gammans - 2002-04-12

    Fixed block and justify routines as patch .

     
  • Roger Gammans

    Roger Gammans - 2002-04-12

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.