textu...epeat(n)
π textu...epeat(n) β the repeat girlies of textutil π
okay so bestie, welcome to the manual page for textutil::repeat, which lives in the Text and string utilities, macro processing corner of the Tcllib universe. this page is literally your group chat for making one lil string turn into a HUGE string. slay. β¨
πΈ NAME πΈ
textutil::repeat β procedures to repeat strings. that's it. that's the whole job. and she does it flawlessly. π
β¨ SYNOPSIS β¨
package require Tcl 8.5 9
package require textutil::repeat ?0.8?
::textutil::repeat::strRepeat text num
::textutil::repeat::blank num
π¦ DESCRIPTION π¦
so the textutil::repeat package is giving "i can make long strings out of a short string by repeating it a million times" energy. that's the whole vibe. no cap.
the complete set of procedures is described below β and yes, we're doing all of them, we don't skip. periodt.
π« ::textutil::repeat::strRepeat text num
this command returns a string containing the text repeated num times. π the repetitions get joined together with nothing between them β no spaces, no separators, no little garnish, just pure back-to-back repetition. it's giving seamless.
and if num is <= 0? bestie, you get an empty string. that's it. nothing. ghosted. π
note (this part matters!!): if the Tcl core that the package is loaded in provides the command string repeat, then this command gets implemented in terms of that, for maximum possible speed. otherwise, a fast implementation in Tcl is used. either way you're eating good. π₯
π ::textutil::repeat::blank num
a convenience command, she's just here to help. returns a string of num spaces. that's literally it. iconic. β
π BUGS, IDEAS, FEEDBACK π
ngl, this document and the package it describes will undoubtedly contain bugs and other problems. it's not a vibe, but it's the truth.
please report such things in the category textutil of the Tcllib Trackers:
http://core.tcl.tk/tcllib/reportlist
also please report any ideas for enhancements you may have for either the package and/or the documentation. we want the ideas fr fr. π«Ά
when proposing code changes, please provide unified diffs, i.e the output of diff -u. don't be mysterious about it. π
also note: attachments are strongly preferred over inlined patches. attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. yes, the left-most one. the leftiest. π
π SEE ALSO π
π KEYWORDS π
blanks, repetition, string
π§ CATEGORY π§
Text processing
so yeah, that's the page β brought to you by tcllib, version 0.8, and the manual name up top is textu...epeat(n) in case you were wondering where you were. mwah. stay repetitive, bestie. πβ¨π
π¦ where this page comes from
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms