0 Members and 3 Guests are viewing this topic.
Hi -- welcome to Omnimaga!The peanuts are the way we greet newcomers here -- it's sort of like a meme.What kinds of games/projects are you working on right now?
rplcstr(in,ss,rs)FuncLocal b,c,a,n1→ndim(ss)→bdim(rs)→cdim(in)-b→aWhile n-1≤aIf ss=mid(in,n,b) Thenleft(in,n-1)&rs&right(in,a-n+1)→inn+c-1→na+c-b→aEndIfn+1→nEndWhileReturn inEndFunc
Hi, I'm Stefan Bauwens.I decided to register here because I like 'never gonna give you up) of rick astley and it seems that you rick roll people...(NO, thats NOT the reason).I love programming 68k basic games, and because I'm not really anymore on a forum of calcs i decided to go here.Well... hello.
The last program I made for the 89 was 9 days ago:Code: [Select]rplcstr(in,ss,rs)FuncLocal b,c,a,n1→ndim(ss)→bdim(rs)→cdim(in)-b→aWhile n-1≤aIf ss=mid(in,n,b) Thenleft(in,n-1)&rs&right(in,a-n+1)→inn+c-1→na+c-b→aEndIfn+1→nEndWhileReturn inEndFuncAll it does is search and replace strings. So pretty much you do rplcstr(in,ss,rs) where:in-a string to searchss-what to search for in the stringrs-what to replace the search withSo if you did rplcstr("HELLO","LL","LLO JELL") it will replace any instance of "LL" with "LLO HELL" making it output: "HELLO JELLO"