• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Solved Learning some new string classes.

J

jianmingyong

Guest
Okay, I know all the string class construct but... I am wondering how similar it the syntax gona be compared to how a usual vb.net/c# programmer people would usually do...

I wanting to use it before the game release but I don't have those syntax and I don't want to do so much wild guess.

The difficult ones are:
<String.split>
<String.regex>

My Initial wild guess was <String.split(string,index,char)> Or similar as I don't think nilllzz gona force us to declare array to use this.

Then It comes to <String.regex>
This is slightly difficult to guess as... Regex itself seem ambiguous.

Probably I am going to assume the matching is
<String.regex(String,Pattern,additional paramenter)> that return something...

The rest should be easy to guess as they are not so ambiguous.

<String.length(String)>
<String.replace(Original Str, Search Pattern, Replace str)>
<String.contains(String,String to check)>
<String.empty(String)>
 

nilllzz

Original Developer
Administrator
P3D Developer
The string class has the following Constructs:
<string.replace>
<string.indexof>
<string.lastindexof>
<string.remove>
<string.trim>
<string.split>
<string.char>
<string.length>
<string.first>
<string.last>
<string.reverse>
<string.startswith>
<string.endswith>
<string.contains>
<string.regex>
<string.toupper>
<string.tolower>
<string.substring>
<string.empty>

All but string.empty take the string you want to manipulate as first argument. Then, depending on the construct, it takes more arguments that work similar to the .Net equivalents.

String.split:
<string.split(str,separator,index)> returns the one item of an enumeration at the defined index.

String.regex:
<string.regex(str,pattern)> returns if the string matches a pattern.
 
Top