manpagez: man pages & more
man repeat(n)
Home | html | info | man
textutil::repeat(n)



______________________________________________________________________________


NAME

       textutil::repeat - Procedures to repeat strings.


SYNOPSIS

       package require Tcl  8.2

       package require textutil::repeat  ?0.7?

       ::textutil::repeat::strRepeat text num

       ::textutil::repeat::blank num

_________________________________________________________________


DESCRIPTION

       The package textutil::repeat provides commands to generate long strings
       by repeating a shorter string many times.

       The complete set of procedures is described below.

       ::textutil::repeat::strRepeat text num
              This command returns a string containing the text  repeated  num
              times.  The  repetitions  are  joined without characters between
              them. A value of num <= 0 causes the command to return an  empty
              string.

              Note: If the Tcl core the package is loaded in provides the com-
              mand string repeat then this command will be implemented in  its
              terms,  for maximum possible speed. Otherwise a fast implementa-
              tion in Tcl will be used.

       ::textutil::repeat::blank num
              A convenience command. Returns a string of num spaces.



BUGS, IDEAS, FEEDBACK

       This document, and the package it describes, will  undoubtedly  contain
       bugs  and  other problems.  Please report such in the category textutil
       of       the       Tcllib       SF       Trackers       [http://source-
       forge.net/tracker/?group_id=12883].   Please  also report any ideas for
       enhancements you may have for either package and/or documentation.


SEE ALSO

       regexp(n), split(n), string(n)


KEYWORDS

       blanks, repetition, string


CATEGORY

       Text processing



textutil                             0.7.1                 textutil::repeat(n)

Mac OS X 10.8 - Generated Wed Sep 12 15:13:42 CDT 2012
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.