The past two days, I've re-written the string functions and tested them thoroughly. I've originally written it for my own projects, but with a few small modifications I suppose it should meet the reborn framework standards.
I'm not sure actually; many ideas where tossed around but I don't know what (if anything) was decided on. At the moment, it's also standalone, meaning I haven't written a 'reborn/framework.scr' script or edited the
'reborn_loader.scr' script to initialize the functions.
I don't believe that anyone should feel the need to write his/her own functions when they have access to a whopping 46 functions, covering the entire spectrum of what one would need to process strings with.
Here's a list and I think the function names are be self-explanatory:I don't believe I have an account or access to the GIT Razo set up so I can't see what's already there.Code:SplitStr InStr SearchStr RemoveStr ReplaceStr ConcatenateStr CompareStr ToUpper ToLower ValidateFormat Left Right CutLeft CutRight LeftOf RightOf CutLeftOf CutRightOf CutRange SubString CutStr SubStr IsWhat Remove Replace ToTitle ReverseStr TrimStr TrimLeft TrimRight CharToInt IntToChar CutterStr MakeLn StripLn AddDblQuotes CommentStr UncommentStr AddTabs DelTabs IsCharDataSafe MakeCharDataSafe //Internal functions, but they are available for those who need them: IsString IsStringType ConvertPosToChar ConvertCharToPos
There are two perks you will notice while glancing over the script. One, I've added the option to register functions without most of the error-checking for faster results if you know what you're doing
and there will be ASCII-support in all functions that compare strings/characters. I'll just copy-&-paste the entire library to a new file and edit the functions there directly, so it doesn't get too messy or bloated.
Next up are array.func and file.func libraries, followed by the admin spectator mode and an updated version of the admin variables.