1,482
edits
m (Correct Parameter Name (str --> s)) |
m (Convert source tags to syntaxhighlight) |
||
| Line 7: | Line 7: | ||
== Syntax == | == Syntax == | ||
< | <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 | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 22: | Line 22: | ||
== Examples == | == Examples == | ||
< | <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" | ||
</ | </syntaxhighlight> | ||
== Notes == | == Notes == | ||