Substring - StringUtil: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
m (Correct Parameter Name (str --> s))
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
string Function Substring(string s, int startIndex, int len = 0) global native
string Function Substring(string s, int startIndex, int len = 0) global native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 22: Line 22:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Import StringUtil
Import StringUtil


Line 34: Line 34:
string s4 = Substring(ss, 0, -1)  
string s4 = Substring(ss, 0, -1)  
;"sample string"
;"sample string"
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu