![]() |
|
String functions - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Wishlist (https://forum.boriel.com/forumdisplay.php?fid=14) +---- Thread: String functions (/showthread.php?tid=2581) |
String functions - baltasarq - 2024-12-13 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 - 2024-12-14 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 - 2024-12-14 > 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()? |