Gentee Programming Language > Documentation > Libraries Download documentation

str.fill

Fill a string to the left or to the right.
 
str str.fill(
      str   val,
      uint   count,
      uint   flag
)

Parameters

valThe string that will be filled.
countThe number of additions.
flagFlags.
$FILL_LEFTAdd to the left.
$FILL_LENThe count parameter contains the final string size.
$FILL_CUTCut if longer than the final size. Used together with FILL_LEN.

Return value

Returns the object which method has been called.

See also

    Strings


 Copyright © 2004-2006 Gentee Inc. All rights reserved.