![]() |
String functions - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Wishlist (https://www.boriel.com/forum/forumdisplay.php?fid=14) +---- Thread: String functions (/showthread.php?tid=2581) |
String functions - baltasarq - 12-13-2024 I've found myself writing these functions: Code: ' Duplicates the string for times times. I can prepare a PR if there is interest. RE: String functions - boriel - 12-14-2024 Indeed I was thinking to incorporate this as a basic operation ala Python: "string" * 5 produces "stringstringstringstringstring" But I´d like to consult this with the community. What do you think? RE: String functions - baltasarq - 12-14-2024 > Indeed I was thinking to incorporate this as a basic operation ala Python: > "string" * 5 produces "stringstringstringstringstring" Well, that'd be ideal. I mean, at least for Multiplystr(). What do you think of FormatStr()? |