![]() |
|
LRIM/RTRIM/TRIM built in 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: LRIM/RTRIM/TRIM built in functions (/showthread.php?tid=1153) |
LRIM/RTRIM/TRIM built in functions - RandomiserUsr - 2021-08-01 It would be handy to have a LTRIM RTRIM TRIM functions built in to ZXB I know you could right one but I wonder if there is a faster way to be compiled? thanks RE: LRIM/RTRIM/TRIM built in functions - boriel - 2021-08-03 (2021-08-01, 11:00 AM)RandomiserUsr Wrote: It would be handy to have a Good idea. I will include them in the next release.Indeed there is a duplicated str library, and one of them will be removed. I'll keep you updated with this. RE: LRIM/RTRIM/TRIM built in functions - boriel - 2021-08-07 (2021-08-01, 11:00 AM)RandomiserUsr Wrote: It would be handy to have a Ok, I've implemented ltrim(s, subs), rtrim(s, subs) and trim(s, sub) which trim the string subs in the respective side of s. They're in #include <string.bas> in this new version: http://www.boriel.com/files/zxb/zxbasic-1.15.1-beta1.tar.gz http://www.boriel.com/files/zxb/zxbasic-1.15.1-beta1.zip http://www.boriel.com/files/zxb/zxbasic-1.15.1-beta1-win32.zip http://www.boriel.com/files/zxb/zxbasic-1.15.1-beta1-linux64.tar.gz http://www.boriel.com/files/zxb/zxbasic-1.15.1-beta1-macos.tar.gz Please, try it and tell me An example: Code: #include <string.bas>RE: LRIM/RTRIM/TRIM built in functions - RandomiserUsr - 2021-08-13 Thanks for doing this :-) nice one |