textu...epeat(n)

πŸ“¦
version 2.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– 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